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
modelPathstringPath to the ONNX model file.
inputSizeSize?Input image size for the network. Default is 640x640.
normalizeDescriptorsboolWhether to L2-normalize descriptors. Default is true.
engineintDNN engine type (cv::dnn::EngineType). Default is 2 (ENGINE_NEW).
backendintDNN backend (see Backend). Default is 0 (DEFAULT).
targetintDNN target (see Target). Default is 0 (CPU).