[][src]Struct opencv::dnn::Net

pub struct Net { /* fields omitted */ }

This class allows to create and manipulate comprehensive artificial neural networks.

Neural network is presented as directed acyclic graph (DAG), where vertices are Layer instances, and edges specify relationships between layers inputs and outputs.

Each network layer has unique integer id and unique string name inside its network. LayerId can store either layer name or layer id.

This class supports reference counting of its instances, i. e. copies point to the same instance.

Implementations

impl Net[src]

pub fn as_raw_Net(&self) -> *const c_void[src]

pub fn as_raw_mut_Net(&mut self) -> *mut c_void[src]

impl Net[src]

pub fn default() -> Result<Net>[src]

pub fn read_from_model_optimizer(xml: &str, bin: &str) -> Result<Net>[src]

Create a network from Intel's Model Optimizer intermediate representation (IR).

Parameters

  • xml: XML configuration file with network's topology.
  • bin: Binary file with trained weights. Networks imported from Intel's Model Optimizer are launched in Intel's Inference Engine backend.

pub fn read_from_model_optimizer_1(
    buffer_model_config: &Vector<u8>,
    buffer_weights: &Vector<u8>
) -> Result<Net>
[src]

Create a network from Intel's Model Optimizer in-memory buffers with intermediate representation (IR).

Parameters

  • bufferModelConfig: buffer with model's configuration.
  • bufferWeights: buffer with model's trained weights.

Returns

Net object.

pub fn read_from_model_optimizer_2(
    buffer_model_config_ptr: &u8,
    buffer_model_config_size: size_t,
    buffer_weights_ptr: &u8,
    buffer_weights_size: size_t
) -> Result<Net>
[src]

Create a network from Intel's Model Optimizer in-memory buffers with intermediate representation (IR).

Parameters

  • bufferModelConfigPtr: buffer pointer of model's configuration.
  • bufferModelConfigSize: buffer size of model's configuration.
  • bufferWeightsPtr: buffer pointer of model's trained weights.
  • bufferWeightsSize: buffer size of model's trained weights.

Returns

Net object.

Trait Implementations

impl Boxed for Net[src]

impl Drop for Net[src]

impl NetTrait for Net[src]

impl Send for Net[src]

Auto Trait Implementations

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.