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

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

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

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