This example shows how you can use Tensorflow Lite for Microcontrollers to run a neural network to classify images of clothing. It is designed to run on ESP32 platform.
Here ESP32 was used as standalone computational device.
It is LILYGO® TTGO T-Camera ESP32 WROVER that was bought here.
Sometimes it makes sense using more than one MCU in the IoT project. In this project, I decided to consider ESP32 MCU as a standalone computational device. In my case, I did not want to dig in ESP32 camera API and wanted to be focused on ML functionality. I wanted just only send data from my PC to the microcontroller to feed NN and then receive results back. Almost all microcontrollers have at least one UART controller which makes such an approach quite universal (at least for testing your NN on certain hardware).
I used the Fashion MNIST dataset provided by TensorFlow Datasets to build model with input images 14x14 pixels size. I deployed the model with TensorFlow Lite for Microcontrollers to ESP32. Then I run Test_TFLite_Micro.ipynb to send test data to MCU and receive predictions back to PC.