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

    fn estimate(
        &mut self,
        frame: &dyn ToInputArray,
        thresh: f32
    ) -> Result<Vector<Point2f>> { ... } }

Required Methods§

Provided Methods§

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§