Table of Contents

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

model string

path to the .tflite file with binary flatbuffers description of the network architecture.

engine EngineType

DNN engine to use. The default is Auto.

Returns

Net

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

bufferModel byte[]

buffer containing the content of the tflite file.

engine EngineType

DNN engine to use. The default is Auto.

Returns

Net

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

bufferModel ReadOnlySpan<byte>

buffer containing the content of the tflite file.

engine EngineType

DNN engine to use. The default is Auto.

Returns

Net

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

bufferModelStream Stream

stream containing the content of the tflite file.

engine EngineType

DNN engine to use. The default is Auto.

Returns

Net