Skip to content

LightGlueMatcher_create

Features and matchingfunctionOpenCV 5.0.0
import { LightGlueMatcher_create } from '@banou/opencv-wasm'

Use after await initOpenCV(). See the initialization and named imports guide.

ARGUMENTSmodelPath, scoreThreshold, backend, target
FUNCTIONLightGlueMatcher_create
RETURN TYPELightGlueMatcher | null
Call structure. A void return can still write to destination arguments. The parameter descriptions define inputs, outputs and ownership.

Creates LightGlueMatcher from a model file path.

LightGlueMatcher_create(modelPath: EmbindString, scoreThreshold: number, backend: number, target: number): LightGlueMatcher | null;
4 available overloads
LightGlueMatcher_create(modelPath: EmbindString): LightGlueMatcher | null;
LightGlueMatcher_create(modelPath: EmbindString, scoreThreshold: number): LightGlueMatcher | null;
LightGlueMatcher_create(modelPath: EmbindString, scoreThreshold: number, backend: number): LightGlueMatcher | null;
LightGlueMatcher_create(modelPath: EmbindString, scoreThreshold: number, backend: number, target: number): LightGlueMatcher | null;
modelPath

Path to the ONNX model file.

scoreThreshold

Match confidence threshold.

backend

DNN backend

target

DNN target

Returns

The LightGlueMatcher | null result.

These signatures describe this package. Upstream documentation can mention optional backends that are absent from this build. Check runtime compatibility before choosing a backend or file format.