Class KeypointsModel
This class represents high-level API for keypoints models.
public class KeypointsModel : Model, IDisposable
- Inheritance
-
KeypointsModel
- Implements
- Inherited Members
Constructors
KeypointsModel(Net)
Create model from deep learning network.
public KeypointsModel(Net net)
Parameters
net
NetDNN Network
KeypointsModel(string, string)
Create a new keypoints model
public KeypointsModel(string model, string config = null)
Parameters
model
stringBinary file contains trained weights.
config
stringText file contains network configuration.
Methods
DisposeObject()
Release the memory associated with this keypoints model.
protected override void DisposeObject()
Estimate(IInputArray, float)
Given the input frame, create input blob, run net.
public PointF[] Estimate(IInputArray frame, float thresh = 0.5)
Parameters
frame
IInputArrayThe input image.
thresh
floatminimum confidence threshold to select a keypoint
Returns
- PointF[]
A vector holding the x and y coordinates of each detected keypoint