# Python sample applications

Source: [https://docs.qualcomm.com/doc/80-70015-50/topic/python-sample-applications.html](https://docs.qualcomm.com/doc/80-70015-50/topic/python-sample-applications.html)

The python sample applications provide custom use cases that realize the multimedia
        capabilities of Qualcomm Linux.

The Qualcomm IM SDK includes support for the Python bindings for the plugins. Run the
            custom use cases using Python to show the use of Qualcomm Linux AI/ML features with
            TensorFlow Lite (TFLite) models.

## Prerequisites

- - To create the directory on the device, run the following commands in a
                            shell:

            mount -o remount,rw /Copy to clipboard

            mkdir -p /opt/data/Copy to clipboard
    - Ensure that the model and label files are available on the device. For
                            instructions, see [Download model and label files for TFLite from AI Hub](https://docs.qualcomm.com/doc/80-70015-50/topic/ai-ml-sample-applications.html#ai-ml-sample-applications__section_fsl_lgz_scc).
    - Ensure that the model and label file are renamed according to the
                            application in use.
    - Push the files from the host machine to the
                            device:

            scp <video.mp4> root@<IP address of target device>:/opt/data/Copy to clipboard

- **[Camera encoding](https://docs.qualcomm.com/doc/80-70015-50/topic/camera-encode.html)**  

The **gst-camera-encode-example** application allows you to record and encode a         single camera stream.
- **[Object detection and display](https://docs.qualcomm.com/doc/80-70015-50/topic/camera-detection-display.html)**  

The **gst-camera-detect-display.py** script uses a YOLO v8 TFLite model to detect         objects in the camera stream, draw bounding boxes around the identified objects, and then         display the results.
- **[Object detection and encode](https://docs.qualcomm.com/doc/80-70015-50/topic/camera-detection-encode.html)**  

The **gst-camera-detection-encode.py** uses a YOLOv8 TFLite model to identify the         object in a scene from a camera stream and overlay the bounding boxes over the detected         object, and then save the output to a file.
- **[Decode and object detection](https://docs.qualcomm.com/doc/80-70015-50/topic/decode-detection-display.html)**  

The **gst-decode-detect-display.py** uses a YOLOv8 TFLite model to identify the         object in a scene from a video stream, overlay the bounding boxes over the detected objects,         and then display the results.
- **[Object detection and classification](https://docs.qualcomm.com/doc/80-70015-50/topic/camera-ai-detection-overlay-composer-display.html)**  

The **gst-camera-two-stream-detection-and-classification-side-by-side.py** script         uses a YOLOv8 TFLite model to detect and classify objects in the scene displayed by the AI         overlay composer.
- **[Transform and encode a camera stream](https://docs.qualcomm.com/doc/80-70015-50/topic/camera-transform-downscale-and-rotate-encode.html)**  

The **gst-camera-rotate-downscale-file.py** script rotates, downscales, and         encodes a camera stream. The transformed stream is then saved to a file.
- **[Camera encode, object detection, and display](https://docs.qualcomm.com/doc/80-70015-50/topic/camera-encode-file-detection-yolov8-overlay-display.html)**  

The **gst-camera-two-stream-encode-file-detection-display.py** script encodes the         camera stream and saves it to a file.
- **[Object detection, classification, and segmentation](https://docs.qualcomm.com/doc/80-70015-50/topic/object-detection-classification-and-segmentation-python-sample-app.html)**  

The **gst-filesrc-2detection-classification-segmentation-side-by-side.py** script         identifies an object from a scene in a camera stream, overlays the bounding boxes over the         detected objects, classifies scenes from the video stream, and produces semantic         segmentations for the video. The output is displayed side by side on a screen.

**Parent Topic:** [Sample applications](https://docs.qualcomm.com/doc/80-70015-50/topic/example-applications.html)

Last Published: Oct 27, 2025

[Previous Topic
Video composition](https://docs.qualcomm.com/bundle/publicresource/80-70015-50/topics/gst-weston-composition-example.md) [Next Topic
Camera encoding](https://docs.qualcomm.com/bundle/publicresource/80-70015-50/topics/camera-encode.md)