Table of Contents

Method Create

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

Create(string, float, int, int, LightGlueType)

Creates a LightGlueMatcher from a model file path. On Windows, a non-ASCII path is read into memory and passed through CreateFromMemory(byte[], float, int, int, LightGlueType) instead, since the native path overload is marshaled through the ANSI code page.

public static LightGlueMatcher Create(string modelPath, float scoreThreshold = 0, int backend = 0, int target = 0, LightGlueType type = LightGlueType.Aliked)

Parameters

modelPath string

Path to the ONNX model file.

scoreThreshold float

Match confidence threshold.

backend int

DNN backend (see Backend). Default is 0 (DEFAULT).

target int

DNN target (see Target). Default is 0 (CPU).

type LightGlueType

Variant of the ONNX model.

Returns

LightGlueMatcher