> For the complete documentation index, see [llms.txt](https://dev.tesa.or.th/tesa-developer/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://dev.tesa.or.th/tesa-developer/tesa-university-program/rt-thread-iot-os/university-program/edge-ai-workshop/tflite-in-openmv.md).

# TFLite in OpenMV

<figure><img src="/files/AMyjyUSZE5hSYK9yjF35" alt=""><figcaption></figcaption></figure>

## TensorFlow Lite

TensorFlow is a free and open-source machine learning library. The TensorFlow Lite is a special feature and mainly designed for embedded devices like mobile. This uses a custom memory allocator for execution latency and minimum load. It is also explaining the new file format supported Flat Buffers. TensorFlow Lite takes existing models and converts them into an optimized version within the sort of .tflite file.

<figure><img src="/files/dxeJ5dYSxWmkgbaAIyOS" alt=""><figcaption></figcaption></figure>

The tf module is capable of executing Quantized TensorFlow Lite Models on the OpenMV Cam. The final output .tflite model can be directly loaded and run by your OpenMV Cam. The model and the model’s required sratch RAM must fit within the available frame buffer stack RAM on your OpenMV Cam. Alternatively, you can also load a model onto the MicroPython Heap or the OpenMV Cam frame buffer. However, this significantly limits the model size on all OpenMV Cams.

{% hint style="info" %}
**Reference:** [https://github.com/openmv/tensorflow/blob/master/tensorflow/lite/micro/example](https://github.com/openmv/tensorflow/blob/master/tensorflow/lite/micro/examples/person_detection/training_a_model.md)  [s/person\_detection/training\_a\_model.md](https://github.com/openmv/tensorflow/blob/master/tensorflow/lite/micro/examples/person_detection/training_a_model.md)
{% endhint %}

<br>
