Table of Contents

Method CreateFromMemory

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

CreateFromMemory(ReadOnlySpan<byte>, int, float, Size?, int, int)

Loads an XFeat ONNX model from memory.

public static XFeat CreateFromMemory(ReadOnlySpan<byte> modelData, int maxKeypoints = -1, float scoreThreshold = 0.5, Size? inputSize = null, int backend = 0, int target = 0)

Parameters

modelData ReadOnlySpan<byte>

Buffer containing 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.