Close
0%
0%

TensorFlow Lite - Person Detection

Given an image or a video stream, an object detection model can identify which of a known set of objects might be present.

Similar projects worth following

BW16 is a dual-frequency Wi-Fi + Bluetooth SoC module developed based on RTL8720DN. It supports dual-frequency (2.4GHz or 5GHz) WLAN and low power Bluetooth 5.0; and integratesARMV8 (Cortex-M4F) high-performance MCU, ARM V8M (Cortex-M0) low-power MCU, WLAN (802.11 a / b / g / n), MAC, Bluetooth and RF baseband, and provides a set of configurable GPIO ports for the control of different peripherals.

More Resources:

If you need additional technical documents or the source code for this project. Please visit the official websites and join the Facebook group and forum.

Ameba Official Website: https://www.amebaiot.com/en/ 

Ameba Facebook Group: https://www.facebook.com/groups/amebaioten 

Ameba Forum: https://forum.amebaiot.com/

  • 1 × BW16
  • 1 × Arducam Mini 2MP Plus OV2640 SPI Camera Module
  • 3 × LED Fiber Optics / Emitters

  • 1
    Setup

    Download the Ameba customized version of TensorFlow Lite for Microcontrollers library at https://github.com/ambiot/ambd_arduino/tree/master/Arduino_zip_libraries.
    Follow the instructions at https://docs.arduino.cc/software/ide-v1/tutorials/installing-libraries to install it.
    Ensure that the patch files found at https://github.com/ambiot/ambd_arduino/tree/master/Ameba_misc/ 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:
    Arduino/libraries/JPEGDecoder/src/User_Config.h
    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
    Open the example, “Files” -> “Examples” -> “TensorFlowLite_Ameba” -> “person_detection”.

  • 2
    Final Result

    Upload the code and press the reset button on the Ameba board once the upload has completed.
    Once it is running, you should see the blue LED flashing every seconds, indicating that it has finished processing an image. 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.
    The inference results are also output to the Arduino IDE serial monitor, which appears as follows:

View all instructions

Enjoy this project?

Share

Discussions

Similar Projects

Does this project spark your interest?

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