pub trait KeypointsModelTrait: KeypointsModelTraitConst + ModelTrait {
    // Required method
    fn as_raw_mut_KeypointsModel(&mut self) -> *mut c_void;

    // Provided method
    fn estimate(
        &mut self,
        frame: &impl ToInputArray,
        thresh: f32
    ) -> Result<Vector<Point2f>> { ... }
}
Expand description

Mutable methods for crate::dnn::KeypointsModel

Required Methods§

Provided Methods§

source

fn estimate( &mut self, frame: &impl ToInputArray, thresh: f32 ) -> Result<Vector<Point2f>>

Given the @p input frame, create input blob, run net

Parameters
  • frame: The input image.
  • thresh: minimum confidence threshold to select a keypoint
Returns

a vector holding the x and y coordinates of each detected keypoint

C++ default parameters
  • thresh: 0.5

Implementors§