Table of Contents

Method Create

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

Create(string, Size?, bool, int, int, int)

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

public static ALIKED Create(string modelPath, Size? inputSize = null, bool normalizeDescriptors = true, int engine = 2, int backend = 0, int target = 0)

Parameters

modelPath string

Path to the ONNX model file.

inputSize Size?

Input image size for the network. Default is 640x640.

normalizeDescriptors bool

Whether to L2-normalize descriptors. Default is true.

engine int

DNN engine type (cv::dnn::EngineType). Default is 2 (ENGINE_NEW).

backend int

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

target int

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

Returns

ALIKED