Application Code

This directory contains embedded applications that run AI models on STM32 microcontrollers and STM32MP Linux platforms. The models can be trained, quantized, and evaluated with the STM32 model zoo services, or taken as the pretrained models from the ST Edge AI Model Explorer. For STM32 microcontrollers, ST Edge AI Core converts the model into optimized C code that the application integrates. On STM32MP platforms, the model runs with X-LINUX-AI. Each application can be used as a standalone project or through the deployment service of the model zoo services.

The catalog below summarizes each use case and links to the available application-code guides. Follow the guide for your target platform for hardware requirements, build instructions, and deployment details.

Use cases and application code

Use case

What the application does

Available application-code guides

Audio event detection

Classifies sounds captured by a microphone as an environmental events.

STM32N6 · STM32H7P · STM32U3 · STM32U5

Speech enhancement

Improves speech quality and intelligibility through audio processing and inference.

STM32N6

Face detection

Detects faces in camera images and displays their locations and keypoints.

STM32N6

Hand posture

Classifies static hand postures using data from a time-of-flight (ToF) sensor.

STM32F4

Human activity recognition

Recognizes human activities from 3-D accelerometer data.

STM32U5

Image classification

Predicts a class label for a camera image.

STM32H7 · STM32MP Linux · STM32N6

Instance segmentation

Detects individual objects and produces a pixel mask for each instance.

STM32N6

Object detection

Identifies objects in camera images and locates them with bounding boxes.

STM32H7 · STM32MP Linux · STM32N6

Pose estimation

Estimates a person’s pose by detecting and drawing body keypoints in camera images.

STM32MP Linux · STM32N6

Re-identification

Tracks detected people and displays a tracking ID for each person.

STM32N6

Semantic segmentation

Assigns a class to each image pixel and displays the resulting segmentation map.

STM32MP Linux · STM32N6

The listed links cover the application-code/platform combinations in this directory; availability differs by use case and target. This is not a complete list of all STM32 Model Zoo use cases, since some use cases do not have application code here.

For STM32N6 hardware and development tools, see the STM32N6 AI development tools page. For application source and instructions, use the public GitHub guides linked in the table above.

Using application code with the STM32 Model Zoo

The STM32 Model Zoo can train and evaluate supported models, then use the target-specific application code to deploy them. For the overall workflow, see the STM32 Model Zoo README. Use the relevant use-case documentation in the repository for deployment configuration and target-specific steps.