public class KeypointsModel extends Model
| Constructor and Description |
|---|
KeypointsModel(Net network)
Create model from deep learning network.
|
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.
|
| Modifier and Type | Method and Description |
|---|---|
static KeypointsModel |
__fromPtr__(long addr) |
MatOfPoint2f |
estimate(Mat frame)
Given the
input frame, create input blob, run net |
MatOfPoint2f |
estimate(Mat frame,
float thresh)
Given the
input frame, create input blob, run net |
getNativeObjAddr, predict, setInputCrop, setInputMean, setInputParams, setInputParams, setInputParams, setInputParams, setInputParams, setInputParams, setInputScale, setInputSize, setInputSize, setInputSwapRB, setPreferableBackend, setPreferableTargetpublic KeypointsModel(Net network)
network - Net object.public KeypointsModel(java.lang.String model)
model and config arguments does not matter.model - Binary file contains trained weights.public KeypointsModel(java.lang.String model,
java.lang.String config)
model and config arguments does not matter.model - Binary file contains trained weights.config - Text file contains network configuration.public static KeypointsModel __fromPtr__(long addr)
public MatOfPoint2f estimate(Mat frame)
input frame, create input blob, run netframe - automatically generatedpublic MatOfPoint2f estimate(Mat frame, float thresh)
input frame, create input blob, run netthresh - minimum confidence threshold to select a keypointframe - automatically generatedGenerated on 2021-12-25 08:13:27 / OpenCV 4.5.5