Package org.opencv.dnn
Class KeypointsModel
- java.lang.Object
- 
- org.opencv.dnn.Model
- 
- org.opencv.dnn.KeypointsModel
 
 
- 
 public class KeypointsModel extends Model 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
- 
- 
Constructor SummaryConstructors Modifier Constructor Description protectedKeypointsModel(long addr)KeypointsModel(java.lang.String model)Create keypoints model from network represented in one of the supported formats.KeypointsModel(java.lang.String model, java.lang.String config)Create keypoints model from network represented in one of the supported formats.KeypointsModel(Net network)Create model from deep learning network.
 - 
Method SummaryAll Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static KeypointsModel__fromPtr__(long addr)MatOfPoint2festimate(Mat frame)Given theinputframe, create input blob, run netMatOfPoint2festimate(Mat frame, float thresh)Given theinputframe, create input blob, run netprotected voidfinalize()- 
Methods inherited from class org.opencv.dnn.ModelenableWinograd, getNativeObjAddr, predict, setInputCrop, setInputMean, setInputParams, setInputParams, setInputParams, setInputParams, setInputParams, setInputParams, setInputScale, setInputSize, setInputSize, setInputSwapRB, setPreferableBackend, setPreferableTarget
 
- 
 
- 
- 
- 
Constructor Detail- 
KeypointsModelprotected KeypointsModel(long addr) 
 - 
KeypointsModelpublic KeypointsModel(java.lang.String model, java.lang.String config)Create keypoints model from network represented in one of the supported formats. An order ofmodelandconfigarguments does not matter.- Parameters:
- model- Binary file contains trained weights.
- config- Text file contains network configuration.
 
 - 
KeypointsModelpublic KeypointsModel(java.lang.String model) Create keypoints model from network represented in one of the supported formats. An order ofmodelandconfigarguments does not matter.- Parameters:
- model- Binary file contains trained weights.
 
 - 
KeypointsModelpublic KeypointsModel(Net network) Create model from deep learning network.- Parameters:
- network- Net object.
 
 
- 
 - 
Method Detail- 
__fromPtr__public static KeypointsModel __fromPtr__(long addr) 
 - 
estimatepublic MatOfPoint2f estimate(Mat frame, float thresh) Given theinputframe, create input blob, run net- Parameters:
- thresh- minimum confidence threshold to select a keypoint
- frame- automatically generated
- Returns:
- a vector holding the x and y coordinates of each detected keypoint
 
 - 
estimatepublic MatOfPoint2f estimate(Mat frame) Given theinputframe, create input blob, run net- Parameters:
- frame- automatically generated
- Returns:
- a vector holding the x and y coordinates of each detected keypoint
 
 
- 
 
-