[][src]Trait opencv::dnn::prelude::KeypointsModelTrait

pub trait KeypointsModelTrait: ModelTrait {
    pub fn as_raw_KeypointsModel(&self) -> *const c_void;
pub fn as_raw_mut_KeypointsModel(&mut self) -> *mut c_void; pub fn estimate(
        &mut self,
        frame: &dyn ToInputArray,
        thresh: f32
    ) -> Result<Vector<Point2f>> { ... } }

This class represents high-level API for keypoints models

KeypointsModel allows to set params for preprocessing input image. KeypointsModel creates net from file with trained weights and config, sets preprocessing input, runs forward pass and returns the x and y coordinates of each detected keypoint

Required methods

Loading content...

Provided methods

pub fn estimate(
    &mut self,
    frame: &dyn ToInputArray,
    thresh: f32
) -> Result<Vector<Point2f>>
[src]

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
Loading content...

Implementors

impl KeypointsModelTrait for KeypointsModel[src]

Loading content...