public class KeypointsModel extends Model
Modifier | Constructor and Description |
---|---|
protected |
KeypointsModel(long addr) |
|
KeypointsModel(Net network)
Create model from deep learning network.
|
|
KeypointsModel(String model)
Create keypoints model from network represented in one of the supported formats.
|
|
KeypointsModel(String model,
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 |
protected void |
finalize() |
predict, setInputCrop, setInputMean, setInputParams, setInputParams, setInputParams, setInputParams, setInputParams, setInputParams, setInputScale, setInputSize, setInputSize, setInputSwapRB
connect, dump, dumpToFile, empty, enableFusion, forward, forward, forward, forward, forward, getFLOPS, getFLOPS, getFLOPS, getFLOPS, getLayer, getLayerId, getLayerNames, getLayersCount, getLayerTypes, getMemoryConsumption, getMemoryConsumption, getMemoryConsumption, getNativeObjAddr, getParam, getParam, getPerfProfile, getUnconnectedOutLayers, getUnconnectedOutLayersNames, readFromModelOptimizer, readFromModelOptimizer, setHalideScheduler, setInput, setInput, setInput, setInput, setInputShape, setInputsNames, setParam, setPreferableBackend, setPreferableTarget
protected KeypointsModel(long addr)
public KeypointsModel(Net network)
network
- Net object.public KeypointsModel(String model, String config)
model
and config
arguments does not matter.model
- Binary file contains trained weights.config
- Text file contains network configuration.public KeypointsModel(String model)
model
and config
arguments does not matter.model
- Binary file contains trained weights.public static KeypointsModel __fromPtr__(long addr)
public MatOfPoint2f estimate(Mat frame, float thresh)
input
frame, create input blob, run netthresh
- minimum confidence threshold to select a keypointframe
- automatically generatedpublic MatOfPoint2f estimate(Mat frame)
input
frame, create input blob, run netframe
- automatically generatedCopyright © 2020. All rights reserved.