Method ReadNetFromTFLite
- Namespace
- OpenCvSharp
- Assembly
- OpenCvSharp.dll
ReadNetFromTFLite(string, EngineType)
Reads a network model stored in TFLite (https://www.tensorflow.org/lite) framework's format.
public static Net? ReadNetFromTFLite(string model, EngineType engine = EngineType.Auto)
Parameters
modelstringpath to the .tflite file with binary flatbuffers description of the network architecture.
engineEngineTypeDNN engine to use. Auto tries the new engine first and falls back to the classic one.
Returns
ReadNetFromTFLite(byte[], EngineType)
Reads a network model stored in TFLite framework's format from memory.
public static Net? ReadNetFromTFLite(byte[] bufferModel, EngineType engine = EngineType.Auto)
Parameters
bufferModelbyte[]buffer containing the content of the tflite file.
engineEngineTypeDNN engine to use. Auto tries the new engine first and falls back to the classic one.
Returns
ReadNetFromTFLite(ReadOnlySpan<byte>, EngineType)
Reads a network model stored in TFLite framework's format from memory.
public static Net? ReadNetFromTFLite(ReadOnlySpan<byte> bufferModel, EngineType engine = EngineType.Auto)
Parameters
bufferModelReadOnlySpan<byte>buffer containing the content of the tflite file.
engineEngineTypeDNN engine to use. Auto tries the new engine first and falls back to the classic one.
Returns
ReadNetFromTFLite(Stream, EngineType)
Reads a network model stored in TFLite framework's format from stream.
public static Net? ReadNetFromTFLite(Stream bufferModelStream, EngineType engine = EngineType.Auto)
Parameters
bufferModelStreamStreamstream containing the content of the tflite file.
engineEngineTypeDNN engine to use. Auto tries the new engine first and falls back to the classic one.