pub trait ModelTraitConst {
    // Required method
    fn as_raw_Model(&self) -> *const c_void;

    // Provided methods
    fn predict(
        &self,
        frame: &dyn ToInputArray,
        outs: &mut dyn ToOutputArray
    ) -> Result<()> { ... }
    fn get_network_(&self) -> Result<Net> { ... }
}
Expand description

Constant methods for crate::dnn::Model

Required Methods§

Provided Methods§

source

fn predict( &self, frame: &dyn ToInputArray, outs: &mut dyn ToOutputArray ) -> Result<()>

Given the @p input frame, create input blob, run net and return the output @p blobs.

Parameters
  • frame: The input image.
  • outs:[out] Allocated output blobs, which will store results of the computation.
source

fn get_network_(&self) -> Result<Net>

Implementors§