Method ReadNetFromONNX
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
ReadNetFromONNX(string, EngineType)
Reads a network model ONNX https://onnx.ai/ from memory
public static Net? ReadNetFromONNX(string onnxFile, EngineType engine = EngineType.Auto)
Parameters
onnxFilestringengineEngineTypeDNN engine to use. Auto tries the new engine first and falls back to the classic one.
Returns
ReadNetFromONNX(byte[], EngineType)
Reads a network model ONNX https://onnx.ai/ from memory
public static Net? ReadNetFromONNX(byte[] onnxFileData, EngineType engine = EngineType.Auto)
Parameters
onnxFileDatabyte[]memory of the first byte of the buffer.
engineEngineTypeDNN engine to use. Auto tries the new engine first and falls back to the classic one.
Returns
ReadNetFromONNX(ReadOnlySpan<byte>, EngineType)
Reads a network model ONNX https://onnx.ai/ from memory
public static Net? ReadNetFromONNX(ReadOnlySpan<byte> onnxFileData, EngineType engine = EngineType.Auto)
Parameters
onnxFileDataReadOnlySpan<byte>memory of the first byte of the buffer.
engineEngineTypeDNN engine to use. Auto tries the new engine first and falls back to the classic one.
Returns
ReadNetFromONNX(Stream, EngineType)
Reads a network model ONNX https://onnx.ai/ from stream.
public static Net? ReadNetFromONNX(Stream onnxFileStream, EngineType engine = EngineType.Auto)
Parameters
onnxFileStreamStreammemory of the first byte of the buffer.
engineEngineTypeDNN engine to use. Auto tries the new engine first and falls back to the classic one.