Table of Contents

Method ReadNet

Namespace
OpenCvSharp.Dnn
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

model string

Path to the .onnx, .tflite or .bin model.

config string

Path to the .xml network definition for OpenVINO IR.

framework string

Explicit framework name tag to determine a format.

engine EngineType

DNN engine to use. The default is Auto.

Returns

Net