Skip to main content
This section covers QIM SDK AI pipelines that use LiteRT for inference.

Vision AI Pipelines

Object Detection

Single‑Stream Object Detection Pipeline.

Detects objects in each frame using a YOLOX LiteRT model and overlays bounding boxes and labels. Pipeline Diagram
Pipeline Diagram

1

Download Required Files:

If any downloaded file is a .zip archive, extract it on your host machine before copying: unzip filename.zip
2

Copy files to device

Create the required directories and transfer the downloaded files to your device.
3

Connect to device

4

Set environment variables

Run below command on your device
5

Run the pipeline

6

Expected Output

The pipeline overlays bounding boxes and class labels on each video frame. Results are rendered on the display or saved to the output file.Expected Output
Object Detection Pipelines with Various Input and Output Configurations
Make sure you have completed Download Required Files (Step 1) and Set Environment Variables (Step 2) before running the pipelines below.
Render object detection result on display
Pipeline Diagram
Pipeline Diagram
Pipeline Diagram
Pipeline Diagram
Pipeline Diagram
Pipeline Diagram
Pipeline Diagram
Pipeline Diagram
Encode object detection result into file
Pipeline Diagram
Pipeline Diagram
Pipeline Diagram
Pipeline Diagram
Pipeline Diagram
Pipeline Diagram
Pipeline Diagram
Pipeline Diagram

Two‑Stream Object Detection Pipeline

Object detection on Stream 1 with side‑by‑side composition on Stream 2 Pipeline Diagram
Pipeline Diagram

1

Download Required Files:

If any downloaded file is a .zip archive, extract it on your host machine before copying: unzip filename.zip
2

Copy files to device

3

Connect to device

4

Set environment variables

Run below command on your device
5

Run the pipeline

6

Expected Output

The pipeline overlays bounding boxes and class labels on each video frame. Results are rendered on the display or saved to the output file.Expected Output

Three-Stream Object Detection Pipeline

Object detection on Stream 1, side‑by‑side composition on Stream 2, and video encoding to file on Stream 3 Pipeline Diagram
Pipeline Diagram

1

Download Required Files:

If any downloaded file is a .zip archive, extract it on your host machine before copying: unzip filename.zip
2

Copy files to device

3

Connect to device

4

Set environment variables

Run below command on your device
5

Run the pipeline

6

Expected Output

The pipeline overlays bounding boxes and class labels on each video frame. Results are rendered on the display or saved to the output file.Expected Output


Face Detection

Detects faces using a quantized Face Detection Lite model accelerated via QNN (HTP backend). Pipeline Diagram
Pipeline Diagram

1

Download Required Files:

If any downloaded file is a .zip archive, extract it on your host machine before copying: unzip filename.zip
2

Copy files to device

3

Connect to device

4

Set environment variables

Run below command on your device
5

Run the pipeline

6

Expected Output

The pipeline detects faces and overlays bounding boxes on each frame. Results are rendered on the display or saved to the output file.Expected Output


Image Classification

Classifies each video frame into predefined scene categories using the InceptionV3 LiteRT model and overlays the top classification results on the video stream. Pipeline Diagram
Pipeline Diagram

1

Download Required Files:

If any downloaded file is a .zip archive, extract it on your host machine before copying: unzip filename.zip
2

Copy files to device

3

Connect to device

4

Set environment variables

Run below command on your device
5

Run the pipeline

6

Expected Output

The pipeline classifies each frame and overlays the top label in the top-left corner of the frame. Results are rendered on the display or saved to the output file.Image of a elephant classification

Segmentation

Performs pixel-wise semantic segmentation using DeepLabV3+ and blends the segmentation mask with the original video. Pipeline Diagram
Pipeline Diagram

1

Download Required Files:

If any downloaded file is a .zip archive, extract it on your host machine before copying: unzip filename.zip
2

Copy files to device

3

Connect to device

4

Set environment variables

Run below command on your device
5

Run the pipeline

6

Expected Output

The pipeline blends the segmentation mask with the original video frame. Results are rendered on the display or saved to the output file.Expected Output


Pose Estimation

This pipeline performs real-time Human Pose Estimation using the HRNet Pose model. It analyzes video frames to identify individuals and precisely maps their anatomical keypoints (such as shoulders, elbows, knees, and ankles). It then generates a skeletal overlay on the video stream, allowing for the tracking of body posture and movement dynamics. Pipeline Diagram
Pipeline Diagram

1

Download Required Files:

If any downloaded file is a .zip archive, extract it on your host machine before copying: unzip filename.zip
2

Copy files to device

3

Connect to device

4

Set environment variables

Run below command on your device
5

Run the pipeline

6

Expected Output

The pipeline detects persons and overlays skeleton keypoints on each frame. Results are rendered on the display or saved to the output file.Expected Output

AI Wall

This use-case demonstrates the capability to run 4 parallel AI inference sessions simultaneously using InceptionV3, Face Detection Lite, DeepLabV3+, and YOLOX. The results are composed into a single 2x2 grid display. This use case highlights the multi-stream processing and compositing capabilities of the platform. Pipeline Diagram
Pipeline Diagram

1

Download Required Files:

If any downloaded file is a .zip archive, extract it on your host machine before copying: unzip filename.zip
2

Copy files to device

3

Connect to device

4

Set environment variables

Run below command on your device
5

Run the pipeline

6

Expected Output

The pipeline processes multiple streams simultaneously and renders all detection results in a composed multi-stream view on the display.Expected Output

Super Resolution

Real-time AI video upscaling using quicksrnetlarge that reconstructs high-definition details from low-resolution inputs, visualized via a side-by-side comparison. Pipeline Diagram
Pipeline Diagram

1

Download Required Files:

If any downloaded file is a .zip archive, extract it on your host machine before copying: unzip filename.zip
2

Copy files to device

3

Connect to device

4

Set environment variables

Run below command on your device
5

Run the pipeline

6

Expected Output

The pipeline outputs an upscaled high-resolution video. Results are rendered on the display or saved to the output file.Expected Output


Daisy Chain


Detection-Classification Daisy Chain

This section details the Detection-Classification Daisy Chain pipeline. This pipeline demonstrates a cascaded inference approach where the output of the YOLOX detection model is used to crop regions of interest (ROIs) which are then fed into the InceptionV3 classification model. Pipeline Diagram
Pipeline Diagram

1

Download Required Files:

If any downloaded file is a .zip archive, extract it on your host machine before copying: unzip filename.zip
2

Copy files to device

3

Connect to device

4

Set environment variables

Run below command on your device
5

Run the pipeline

6

Expected Output

The pipeline detects one object with the highest confidence, classifies the object detected and overlays the bounding box and top label in the top-left corner of the frame. Results are rendered on the display or saved to the output file.Image of a camel classification

Gesture Recognition

A four-stage cascading pipeline that performs palm detection, hand landmark estimation, gesture embedding, and gesture classification on a live camera stream using ROI-based metadata propagation. Pipeline Diagram
Pipeline Diagram

1

Download Required Files:

Download the gesture recognizer models from Google MediaPipe:
These are FLOAT precision models.
2

Copy files to device

3

Connect to device

4

Set environment variables

Run below command on your device
5

Run the pipeline

6

Expected Output

The pipeline detects hands, estimates keypoints, and recognizes gestures. Results are overlaid on each frame and rendered on the display.Expected Output


Audio AI Pipelines

Audio Classification (FLAC File Decode)

Classifies audio events from a video file containing a FLAC audio track using YAMNet. The audio is decoded and processed in parallel with video playback, with classification results overlaid on the display. Pipeline Diagram
Pipeline Diagram

1

Download Required Files:

If any downloaded file is a .zip archive, extract it on your host machine before copying: unzip filename.zip
2

Copy files to device

3

Connect to device

4

Set environment variables

Run below command on your device
5

Run the pipeline

6

Expected Output

Classification results are printed to the terminal. Each detected audio class with its confidence score is output per audio segment processed.