Method ReadNetFromTFLite
- Namespace
- OpenCvSharp.Dnn
- 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. The default is Auto.
Returns
- Net
Network object that ready to do forward, throw an exception in failure cases.
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. The default is Auto.
Returns
- Net
Network object that ready to do forward, throw an exception in failure cases.
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. The default is Auto.
Returns
- Net
Network object that ready to do forward, throw an exception in failure cases.