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
modelPathstringPath to the ONNX model file.
scoreThresholdfloatMatch confidence threshold.
backendintDNN backend (see Backend). Default is 0 (DEFAULT).
targetintDNN target (see Target). Default is 0 (CPU).
typeLightGlueTypeVariant of the ONNX model.