Method Create
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
Create(string, string, Backend, Target)
Creates an instance of this class with given parameters.
public static FaceRecognizerSF Create(string model, string config, Backend backendId = Backend.DEFAULT, Target targetId = Target.CPU)
Parameters
modelstringthe path of the onnx model used for face recognition
configstringthe path to the config file for compatibility, which is not requested for ONNX models
backendIdBackendthe id of backend
targetIdTargetthe id of target device
Returns
Create(string, byte[], byte[], Backend, Target)
Creates an instance of this class from a buffer containing the model weights and configuration.
public static FaceRecognizerSF Create(string framework, byte[] bufferModel, byte[] bufferConfig, Backend backendId = Backend.DEFAULT, Target targetId = Target.CPU)
Parameters
frameworkstringName of the framework (ONNX, etc.)
bufferModelbyte[]A buffer containing the binary model weights.
bufferConfigbyte[]A buffer containing the network configuration.
backendIdBackendthe id of backend
targetIdTargetthe id of target device