TensorFlow Lite - Person Detection

Using TensorFlow Lite to determine human's presence

Similar projects worth following
The red LED will light up if it determines that there is no person in the previous image captured, and the green LED will light up if it will determines that there is a person.

In this example, you will see how TensorFlow Lite is used to detect human's presence.

For more information:

  • 1 × AmebaD [ AMB23 / AMB21 / AMB22 / BW16 ]
  • 1 × Arducam Mini 2MP Plus OV2640 SPI Camera Module
  • 3 × LED

View project log

  • 1
    Wiring Diagrams

    AMB21 / AMB22 Wiring Diagram:

    Connect the camera and LEDs to the RTL8722 board following the diagram.



    BW16 type C:

  • 2
    Install TensorFlow Lite Library

    Download the Ameba customized version of TensorFlow Lite for Microcontrollers library at
    Follow the instructions at to install it.
    Ensure that the patch files found at are also installed.
    You will also need to install the Ameba_ArduCAM library, found together with the TensorFlow Lite library.
    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 RTL8722DM. Open the following file:
    Make sure that both #define LOAD_SD_LIBRARY and #define LOAD_SDFAT_LIBRARY are 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

  • 3
    Open Example

    Open the example, “Files” -> “Examples” -> “TensorFlowLite_Ameba” -> “person_detection”.

View all 4 instructions

Enjoy this project?



Similar Projects

Does this project spark your interest?

Become a member to follow this project and never miss any updates