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
Enable Wi-Fi and SSH on the device
Set the user environment variable on the host computer
Sign in to the target device using SSH
Download and run the download_artifacts_2.x.sh script
Enable qticamsrc
camera use-case is not supported on IQ-2390.(Optional) Download the YOLOv8 model
- Download with a script
- Export with AI Hub APIs
- Generate a batch model
Create a Qualcomm AI Hub account
Copy your API key
Run the export script on the host computer
<API_KEY> with your API key:export_assets directory.Copy the model to the ${HOME}/Downloads/qimsdk_samples/models/ directory on the device
Run the sample application
On the host computer, set the user environment variable
Sign in to the device using SSH
Run the application with the sample configuration file
/etc/configs/config_classification.json.To view the available command-line options, run:Run the application with a custom configuration file (optional)
--config-file:--config-file is specified, the application uses that file. Otherwise, it searches for config_classification.json in the following order:configurations.Ctrl+C.
Configure the application
Edit theconfig_classification.json file to specify your model, input source, and output preferences.
Configuration template
${HOME}/Downloads/qimsdk_samples/models/— model files${HOME}/Downloads/qimsdk_samples/labels/— label files${HOME}/Downloads/qimsdk_samples/media/— video files
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.

