TensorFlow Lite - Person Detection
Materials
AMB82-mini x 1
Arducam Mini 2MP Plus OV2640 SPI Camera Module x 1
LED up to 3
Example
Connect the camera and LEDs to the Ameba board.
Download Ameba_ArduCAM library at GitHub Repo Follow the instructions at Arduino document to install it.
In the Arduino IDE library manager, install the “JPEGDecoder” library. This example has been tested with version 1.8.0 of the JPEGDecoder library. Once the library has installed, you will need to configure it to disable some optional components that are not compatible with the Ameba. Open the following file:
Arduino/libraries/JPEGDecoder/src/User_Config.hMake sure that both#define LOAD_SD_LIBRARYand#define LOAD_SDFAT_LIBRARYare commented out, as shown in this excerpt from the file:
//#define LOAD_SD_LIBRARY // Default SD Card library
//#define LOAD_SDFAT_LIBRARY // Use SdFat library instead, so SD Card SPI can be bit bashed
Open the example, Files -> Examples -> AmebaTensorFlowLite -> person_detection
Code Reference
More information on TensorFlow Lite for Microcontrollers can be found at: https://www.tensorflow.org/lite/microcontrollers
