Method ReadNet
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
ReadNet(string, string, string, EngineType)
Loads a network and infers the format from its file extension. Supports ONNX, TensorFlow Lite and OpenVINO IR.
public static Net ReadNet(string model, string config = "", string framework = "", EngineType engine = EngineType.Auto)
Parameters
modelstringPath to the .onnx, .tflite or .bin model.
configstringPath to the .xml network definition for OpenVINO IR.
frameworkstringExplicit framework name tag to determine a format.
engineEngineTypeDNN engine to use. The default is Auto.