[−][src]Trait opencv::dnn::prelude::KeypointsModelTrait
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
pub fn as_raw_KeypointsModel(&self) -> *const c_void
[src]
pub fn as_raw_mut_KeypointsModel(&mut self) -> *mut c_void
[src]
Provided methods
pub fn estimate(
&mut self,
frame: &dyn ToInputArray,
thresh: f32
) -> Result<Vector<Point2f>>
[src]
&mut self,
frame: &dyn 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