Trait opencv::dnn::ClassificationModelTrait
source · [−]pub trait ClassificationModelTrait: ClassificationModelTraitConst + ModelTrait {
fn as_raw_mut_ClassificationModel(&mut self) -> *mut c_void;
fn classify(
&mut self,
frame: &dyn ToInputArray,
class_id: &mut i32,
conf: &mut f32
) -> Result<()> { ... }
}Required Methods
fn as_raw_mut_ClassificationModel(&mut self) -> *mut c_void
Provided Methods
Given the @p input frame, create input blob, run net and return top-1 prediction.
Parameters
- frame: The input image.