Table of Contents

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

modelPath string

Path to the ONNX model.

maxKeypoints int

Maximum number of keypoints, or -1 for all detections.

scoreThreshold float

Minimum score that a keypoint must exceed.

inputSize Size?

Network input size. Defaults to 640 by 640.

backend int

DNN backend ID.

target int

DNN target ID.

Returns

XFeat

The detector.