gst-ai-classification sample application demonstrates hardware-accelerated image classification on a video stream. The pipeline receives input from a camera, file source, Real-Time Streaming Protocol (RTSP) stream or USB camera, performs preprocessing, runs inference on the AI hardware, and displays the results on screen.
gst-ai-classification application is part of the Qualcomm Intelligent Multimedia (QIM) SDK and is available on the device after flashing. You must push the model and label files to the device before running the application.
Download model and label files
1
Enable Wi-Fi and SSH on the device
The device requires an internet connection to download the artifacts needed to run sample applications. If SSH and Wi-Fi are already configured, skip this step.Follow Setup an SSH connection to enable Wi-Fi and SSH on the device.
2
Set the user environment variable on the host computer
3
Sign in to the target device using SSH
4
Download and run the download_artifacts.sh script
On the target device, download and run the
download_artifacts.sh script to download the model and label files:5
(Optional) Download the YOLOv8 model
YoloV8 is for detection use case, not needed for classification use case.
- Download with a script
- Export with AI Hub APIs
- Generate a batch model
1
Create a Qualcomm AI Hub account
Create a Qualcomm AI Hub account.
2
Copy your API key
Go to Settings in the upper right corner and copy your API key.
3
Run the export script on the host computer
<API_KEY> with your API key:export_assets directory.4
Copy the model to the /etc/models/ directory on the device
Run the sample application
1
Set the user environment variable on the host computer
2
Sign in to the device using SSH
3
Run the sample application
Ctrl+C.
Configure the application
This section uses the following default file locations:
/etc/models/— model files/etc/labels/— label files/etc/media/— video files/etc/configs/— configuration files
/etc/configs/config_classification.json file to specify your model, input source, and output preferences.
Configuration template:
Notes
-
To stop the application, press
Ctrl+C. -
To enable GStreamer debug logging, set the
GST_DEBUGenvironment variable. For example, to log all warnings:For more troubleshooting options, see Troubleshooting.

