Trait KeypointsModelTrait

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

    // Provided methods
    fn estimate(
        &mut self,
        frame: &impl ToInputArray,
        thresh: f32,
    ) -> Result<Vector<Point2f>> { ... }
    fn estimate_def(
        &mut self,
        frame: &impl ToInputArray,
    ) -> 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
Source

fn estimate_def(&mut self, frame: &impl ToInputArray) -> 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

§Note

This alternative version of KeypointsModelTrait::estimate function uses the following default values for its arguments:

  • thresh: 0.5

Dyn Compatibility§

This trait is not dyn compatible.

In older versions of Rust, dyn compatibility was called "object safety", so this trait is not object safe.

Implementors§