Method Create
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
Create(string, int, float, Size?, int, int)
Loads an XFeat ONNX model from a file.
public static XFeat Create(string modelPath, int maxKeypoints = -1, float scoreThreshold = 0.5, Size? inputSize = null, int backend = 0, int target = 0)
Parameters
modelPathstringPath to the ONNX model.
maxKeypointsintMaximum number of keypoints, or -1 for all detections.
scoreThresholdfloatMinimum score that a keypoint must exceed.
inputSizeSize?Network input size. Defaults to 640 by 640.
backendintDNN backend ID.
targetintDNN target ID.
Returns
- XFeat
The detector.