Skip to content

About

This repository contains comprehensive vision examples for NXP i.MX processors with ARA240 DNPU acceleration. It demonstrates real-time multi-stream video processing with AI/ML inference capabilities including object detection, classification, pose estimation, and semantic segmentation.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Repository files navigation

Ara240 Vision Examples

License Platforms Language AI/ML BSP

See how Ara240 transforms edge vision AI with real-time object detection running on NXP i.MX platforms. This repository contains comprehensive vision examples for i.MX Application Processors, using the Ara240 Discrete Neural Processing Unit (DNPU) accelerator. Demonstrating real-time video processing with AI/ML inference capabilities at the edge. Including object detection, object classification, pose estimation, and semantic segmentation.

Table of Contents

  1. Software
  2. Hardware
  3. Setup
  4. Results
  5. FAQs
  6. Support
  7. Release Notes

1. Software

Available examples

Snapshot Name       Supported Platforms       Implementation       Supported Models
multistream_yolo multistream_yolo
  • FRDM i.MX 8M Plus
  • FRDM i.MX 95
  • FRDM i.MX 95 PRO
      C++
  • YOLOv8n, YOLOv8s, YOLOv8m, YOLOv8l, YOLOv8x
  • YOLOxt, YOLOxs, YOLOxm, YOLOxl, YOLOxx
  • YOLO11n, YOLO11s, YOLO11m, YOLO11l, YOLO11x

1.1 Multi-stream Yolo

This solution processes one or multiple video streams, generating visual outputs with bounding boxes around detected objects, along with classification labels and confidence scores. Designed to showcase the performance, scalability, and responsiveness of the Ara240 architecture, this application highlights how advanced AI workloads can be executed locally at the edge. By leveraging the Ara240 compute capabilities for on-device inference, the system reduces latency, minimizes cloud dependency, and enables faster decision-making for next-generation smart cameras, industrial automation systems, and intelligent edge devices. The application supports both single-stream and multi-stream operation, demonstrating how Ara240 can efficiently scale from basic vision use cases to complex deployments requiring simultaneous analysis of multiple video feeds.

1.1.1 Multi-stream Yolo Software Architecture

ara2-vision-examples-architecture

2. Hardware

2.1 Supported Platforms

Platform Supported
FRDM i.MX 8M Plus ✅
FRDM i.MX 95 ✅
FRDM i.MX 95 PRO ✅

2.2 Required hardware

  • Supported FRDM i.MX platform
  • microSD card (recommended size >=64 GB)
  • Ara240 16GB M.2 Module
  • USB-C power supply (5V/3A recommended)
  • 1920x1080 HDMI display monitor
  • 1920x1080 USB camera
  • HDMI cable
  • USB mouse
  • Two USB-C to USB-A debug cables
  • USB hub (optional)

3. Setup

Since Ara240 Vision Examples is already part of i.MX Linux BSP, you can simply download a pre-built BSP image from NXP's Official website and flash it to your FRDM i.MX board to install it. The detailed steps for testing this application are provided below.

3.1 Installation

  1. Donwload the Linux i.MX image (version 6.18.20_2.0.0 or greater) corresponding to your FRDM i.MX board from Embedded Linux for i.MX.
  2. Download the Universal Update Utility (release version 1.5.243 or latest).
  3. Configure the Boot Switch on the FRDM board to serial downloader mode (make sure the board is turned off), please refer to the Quick Start Guide corresponding to yout FRDM i.MX board for this step:
  4. Insert the SD card in the FRDM i.MX board.
  5. Connect your FRDM i.MX board to the power supply and connect its USB-C and DEBUG ports to your host machine.
  6. Open a terminal in your host machine and run the Universal Update Utility using the following command along with the .bin-flash file and the .wic image corresponding to your FRDM i.MX board:
    .\uuu.exe -b sd_all <imx-boot-*.bin-flash> <imx-image-full-*.wic>
  7. Power on the FRDM i.MX board and wait for the flashing process to complete.

3.2 Running Ara240 Vision Examples

This application is already available in NXP's GoPoint for i.MX Applications Processors launcher, to run it follow the next steps:

  1. Connect the HDMI display, USB camera and mouse to your FRDM i.MX board (a USB hub might be needed).
  2. Configure the Boot Switch on the FRDM board to USDHC2 4-bit SD3.0 mode (make sure the board is turned off).
  3. Connect the Ara240 16GB M.2 Module to the FRDM i.MX board.
  4. Power on the FRDM i.MX board and wait for the boot process to complete.
  5. Connect the FRDM i.MX board to the internet, for detailed information about Wi-Fi or Ethernet connectivity please refer to i.MX Linux User's Guide chapter 11.
  6. Once the boot process is completed click the GoPoint icon that appears in the upper left corner of the screen.
  7. Navigate inside GoPoint interface and select Ara240 Vision Examples, then click the Launch Demo button.
  8. Download the available models and video samples inside the Ara240 Vision Examples Interface.
  9. Now you can run the Multi-stream Yolo example using the input source and number of streams of your choice, for detailed information about running this example please refer to multistream_yolo documentation.

4. Results

The following animations show the Multi-stream Yolo example running with different number of video streams.


Preview 1 - Single stream demonstration
Preview 1. Demonstration of Multi-stream Yolo working on a single video stream.



Preview 2 - Four streams demonstration
Preview 2. Demonstration of Multi-stream Yolo working on four video streams.



Preview 3 - Eight streams demonstration
Preview 3. Demonstration of Multi-stream Yolo working on eight video streams.

5. FAQs

5.1 Application won't start

The Multi-stream Yolo Application needs the models and sample videos to be downloaded properly before start, make sure these files exist:

  • Check if the model is downloaded:
     ls /usr/share/cnn/detection
  • Check if the sample videos are downloaded:
     ls /usr/share/ara2-vision-examples/sample_videos

If these directories look empty, there might be an issue with your Internet connection, In that case follow these steps:

  • Make sure the system date is correct using the date command, if it's incorrect, update it:
     date -s 'Tue 6 Oct 09:19:34 PDT 2026'
  • Configure your system's DNS server:
     echo nameserver 8.8.8.8 > /etc/resolv.conf

5.2 Can I set the application to process custom videos?

Yes, you can replace the default sample videos with your own content, just consider the following:

  1. The videos must be stored in location: /usr/share/ara2-vision-examples/sample_videos and named following the pattern: video_N.ts (where N is 0-7).
  2. The videos must have a reasonable resolution (recommended: 640x360 or higher).
  3. The videos should be in H.264/MP4 format, for video format conversion please refer to multistream_yolo documentation.

6. Support

Project Metadata

Board badge Board badge Board badge

Category badge Category badge

Peripheral badge Peripheral badge

Toolchain badge

Questions regarding the content/correctness of this example can be entered as Issues within this GitHub repository.

Note: For more general technical questions regarding NXP Microcontrollers and the difference in expected functionality, enter your questions on the NXP Community Forum

Follow us on Youtube Follow us on LinkedIn Follow us on Facebook Follow us on Twitter

7. Release Notes

Version Description / Update Date
1.0 Initial release on Application Code Hub October 6th 2026

Licensing

NXP Proprietary. This software is owned or controlled by NXP and may only be used strictly in accordance with the applicable license terms. By expressly accepting such terms or by downloading, installing, activating and/or otherwise using the software, you are agreeing that you have read, and that you agree to comply with and are bound by, such license terms. If you do not agree to be bound by the applicable license terms, then you may not retain, install, activate or otherwise use the software.

This repository is licensed under the LA_OPT_Online Code Hosting NXP_Software_License license.

About

This repository contains comprehensive vision examples for NXP i.MX processors with ARA240 DNPU acceleration. It demonstrates real-time multi-stream video processing with AI/ML inference capabilities including object detection, classification, pose estimation, and semantic segmentation.

Resources

Stars

2 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages