Loading spinner

Making buildings and offices smarter means placing people at the heart of the environments we live and work in. This paradigm shift requires a particular attention by our surrounding electronics on the sensing intelligence. In this context, the people counting functionality becomes of paramount importance to adjust in real-time heater, HVAC or occupancy management. It results in more comfort for occupants and higher energy management efficiency.

Approach

  • This prototype can count in real-time and with a high level of accuracy the restaurant's attendance.
  • This is achieved thanks to the artificial intelligence algorithm embedded on the STM32 microcontroller and the use of a thermal infrared technology.
  • We've used the FP-AI-VISION1 function pack code example running on an STM32H747I-D + B-CAMS-OMV board.

Sensor

Vision: Camera module bundle (reference: B-CAMS-OMV)

Data

Data format
Single class: people
RGB color images

Results

Model: YOLO Low Complexity quantized neural network
Input size: 240x240x3
Memory footprint:
277 KB Flash for weights
233 KBRAM for activations
Accuracy: 55.88% Average Precision using a 50% IoU against the PASCAL VOC test dataset
Performance on STM32H747* (High-perf) @ 400 MHz 
Inference time: 371 ms
Frame rate:  2.7 fps
* As measured with STM32CubeAI 7.1.0 in FP-AI-VISION1 3.1.0
Optimized with
STM32Cube.AI
STM32Cube.AI
Compatible with

STM32H7 series

STM32H7 series

Resources

Optimized with STM32Cube.AI

A free STM32Cube expansion package, X-CUBE-AI allows developers to convert pretrained AI algorithms automatically, such as neural network and machine learning models, into optimized C code for STM32.

STM32Cube.AI STM32Cube.AI STM32Cube.AI

Compatible with STM32H7 series

The STM32 family of 32-bit microcontrollers based on the Arm Cortex®-M processor is designed to offer new degrees of freedom to MCU users. It offers products combining very high performance, real-time capabilities, digital signal processing, low-power / low-voltage operation, and connectivity, while maintaining full integration and ease of development.

STM32H7 series STM32H7 series STM32H7 series
You might also be interested by

Vision | STM32Cube.AI | STM32 AI MCU | Partner | Video | Smart home | Smart building

How to personalize smart home with familiar face identification

embedUR's on-device face authentication embedded on STM32N6 with easy mobile enrollment

Vision | STM32Cube.AI | STM32 AI MCU | Partner | Smart home | Wearables | Microphone | Accelerometer | Tutorial

Handheld development platform for real-time vision, motion, and voice at the edge

All‑in‑one STM32N6‑based platform for on‑device edge AI with NPU acceleration

Industrial | Smart city | Vision | STM32Cube.AI | STM32 AI MCU | Partner | Video | Smart home

Secure entry systems using id3 face recognition with liveness detection

Edge processing with RGB camera and ToF sensor ensures rapid and secure anti-spoofing for access control using the STM32N6 MCU.