Table of Contents

Method Create

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

Create(string, float, int, int)

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) 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)

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).

Returns

LightGlueMatcher