# Run Python-based applications

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

Qualcomm Linux integrates support for Python through the [gstreamer1.0-python](https://git.codelinaro.org/clo/le/meta-qti-gst/-/blob/imsdk.lnx.2.0.0.r2-rel/recipes-gst/packagegroups/packagegroup-qcom-gst.bb?ref_type=heads#L45) package.
        Qualcomm IM SDK supports Python bindings that allow you to create GStreamer-based
        applications using Python. The Python bindings for all the GST plugins are enabled through
        the `gst-python` utility.

Run the custom use cases using Python to use the multimedia and AI/ML features of
            Qualcomm Linux.
Note: As a reference, this guide provides the
                following Python-based sample applications with Python bindings. Complete the [Prerequisites](https://docs.qualcomm.com/doc/80-70022-50/topic/prerequisites-for-python-sample-applications.html) before running these
                applications.

Table : Python applications

| Application | CodeLinaro Git–source path | Demonstrates | QCS6490 | Dragonwing IQ-8275 | Dragonwing IQ-9075 |
| --- | --- | --- | --- | --- | --- |
| [Camera encoding](https://docs.qualcomm.com/doc/80-70022-50/topic/camera-encode.html) | [gst-camera-encode.py](https://git.codelinaro.org/clo/le/platform/vendor/qcom-opensource/gst-plugins-qti-oss/-/blob/imsdk.lnx.2.0.0.r2-rel/gst-python-examples/gst-camera-encode.py?ref_type=heads) | Encode a single camera stream and dump the output. | ✔ | ✖ | ✖ |
| [Camera streaming using OpenCV](https://docs.qualcomm.com/doc/80-70022-50/topic/gst-camera-opencv-resize-py.html) | [gst-camera-opencv-resize.py](https://git.codelinaro.org/clo/le/platform/vendor/qcom-opensource/gst-plugins-qti-oss/-/blob/imsdk.lnx.2.0.0.r2-rel/gst-python-examples/gst-camera-opencv-resize.py?ref_type=heads) | Uses OpenCV API to apply color conversion or re-size the camera<br>                                frame. | ✔ | ✔ | ✔ |
| [Video transformation using OpenCV](https://docs.qualcomm.com/doc/80-70022-50/topic/video-playback-using-opencv.html) | [gst-opencv-transform](https://git.codelinaro.org/clo/le/platform/vendor/qcom-opensource/gst-plugins-qti-oss/-/blob/imsdk.lnx.2.0.0.r2-rel/gst-python-examples/gst-opencv-transform.py?ref_type=heads) | Use OpenCV APIs to capture, transform, and play a video<br>                                stream. | ✔ | ✔ | ✔ |
| [Multi-camera streaming using Python](https://docs.qualcomm.com/doc/80-70022-50/topic/multi-camera-streaming-python-sample-app.html) | [gst-multi-camera-example](https://git.codelinaro.org/clo/le/platform/vendor/qcom-opensource/gst-plugins-qti-oss/-/blob/imsdk.lnx.2.0.0.r2-rel/gst-python-examples/gst-multi-camera-stream-example.py?ref_type=heads) | Stream from two camera sensors simultaneously. | ✔ | ✖ | ✖ |
| [Concurrent video playback (video wall) using Python](https://docs.qualcomm.com/doc/80-70022-50/topic/video-wall-using-python.html) | [gst-concurrent-videoplay-composition.py](https://git.codelinaro.org/clo/le/platform/vendor/qcom-opensource/gst-plugins-qti-oss/-/blob/imsdk.lnx.2.0.0.r2-rel/gst-python-examples/gst-concurrent-videoplay-composition.py?ref_type=heads) | Supports concurrent video playback and renders them on a<br>                                screen. | ✔ | ✔ | ✔ |
| [Object detection and display](https://docs.qualcomm.com/doc/80-70022-50/topic/camera-detection-display.html) | [gst-ai-object-detection.py](https://git.codelinaro.org/clo/le/platform/vendor/qcom-opensource/gst-plugins-qti-oss/-/blob/imsdk.lnx.2.0.0.r2-rel/gst-python-examples/gst-ai-object-detection.py) | Object detection on streams from a camera or a file source and<br>                                the output is either displayed or saved to a file. | ✔ | ✔ | ✔ |
| [Decode and object detection using RTSP stream](https://docs.qualcomm.com/doc/80-70022-50/topic/rts-decode-ai-detection-yolo-v8-overlay-display.html) | [gst-rtspsrc-detection-display.py](https://git.codelinaro.org/clo/le/platform/vendor/qcom-opensource/gst-plugins-qti-oss/-/blob/imsdk.lnx.2.0.0.r2-rel/gst-python-examples/gst-rtspsrc-detection-display.py) | Object detection and display with input from an RTSP<br>                                stream. | ✔ | ✔ | ✔ |
| [Decode JPEG images using Python](https://docs.qualcomm.com/doc/80-70022-50/topic/decode-jpeg-images-using-python.html) | [gst-jpg-image-decode.py](https://git.codelinaro.org/clo/le/platform/vendor/qcom-opensource/gst-plugins-qti-oss/-/blob/imsdk.lnx.2.0.0.r2-rel/gst-python-examples/gst-jpg-image-decode.py?ref_type=heads) | Decode several JPEG images and preview them on a screen. | ✔ | ✔ | ✔ |
| [Object detection and classification](https://docs.qualcomm.com/doc/80-70022-50/topic/camera-ai-detection-overlay-composer-display.html) | [gst-camera-two-stream-detection-and-classification-side-by-side.py](https://git.codelinaro.org/clo/le/platform/vendor/qcom-opensource/gst-plugins-qti-oss/-/blob/imsdk.lnx.2.0.0.r2-rel/gst-python-examples/gst-camera-two-stream-detection-and-classification-side-by-side.py?ref_type=heads) | Object detection and classification of objects in a scene<br>                                displayed by the AI overlay composer. | ✔ | ✔ | ✔ |
| [Transform and encode a camera stream](https://docs.qualcomm.com/doc/80-70022-50/topic/camera-transform-downscale-and-rotate-encode.html) | [gst-camera-rotate-downscale-file.py](https://git.codelinaro.org/clo/le/platform/vendor/qcom-opensource/gst-plugins-qti-oss/-/blob/imsdk.lnx.2.0.0.r2-rel/gst-python-examples/gst-camera-rotate-downscale-file.py?ref_type=heads) | Rotate, downscale, and encode a camera stream. | ✔ | ✔ | ✔ |
| [Camera encode, object detection, and display](https://docs.qualcomm.com/doc/80-70022-50/topic/camera-encode-file-detection-yolov8-overlay-display.html) | [gst-camera-two-stream-encode-file-detection-display.py](https://git.codelinaro.org/clo/le/platform/vendor/qcom-opensource/gst-plugins-qti-oss/-/blob/imsdk.lnx.2.0.0.r2-rel/gst-python-examples/gst-camera-two-stream-encode-file-detection-display.py?ref_type=heads) | Encode a camera stream and save it to a file. | ✔ | ✔ | ✔ |
| [Object detection, classification, and segmentation](https://docs.qualcomm.com/doc/80-70022-50/topic/object-detection-classification-and-segmentation-python-sample-app.html) | [gst-filesrc-2detection-classification-segmentation-side-by-side.py](https://git.codelinaro.org/clo/le/platform/vendor/qcom-opensource/gst-plugins-qti-oss/-/blob/imsdk.lnx.2.0.0.r2-rel/gst-python-examples/gst-filesrc-2detection-classification-segmentation-side-by-side.py?ref_type=heads) | Object detection from a scene in a camera stream, classification<br>                                on scenes from the video stream, and semantic segmentations for the<br>                                video. | ✔ | ✔ | ✔ |
| [Parallel inference using Python](https://docs.qualcomm.com/doc/80-70022-50/topic/parallel-inference-using-python.html) | [gst-parallel-inference.py](https://git.codelinaro.org/clo/le/platform/vendor/qcom-opensource/gst-plugins-qti-oss/-/blob/imsdk.lnx.2.0.0.r2-rel/gst-python-examples/gst-parallel-inference.py?ref_type=heads) | Several AI/ML models run in parallel (object detection,<br>                                classification, segmentation, and pose detection) on streams from a<br>                                camera, file source, or RTSP. | ✔ | ✔ | ✔ |
| [Daisy chain detection and pose detection using Python](https://docs.qualcomm.com/doc/80-70022-50/topic/daisy-chain-detection-and-pose-detection-using-python.html) | [gst-ai-daisychain-detection-pose.py](https://git.codelinaro.org/clo/le/platform/vendor/qcom-opensource/gst-plugins-qti-oss/-/blob/imsdk.lnx.2.0.0.r2-rel/gst-python-examples/gst-daisychain-detection-pose.py?ref_type=heads) | Perform cascaded object detection and pose detection with a<br>                                camera source, file source, or an RTSP stream. | ✔ | ✔ | ✔ |

- **[Prerequisites](https://docs.qualcomm.com/doc/80-70022-50/topic/prerequisites-for-python-sample-applications.html)**  

Complete these preconditions before running the Python-based sample         applications.
- **[Camera encoding](https://docs.qualcomm.com/doc/80-70022-50/topic/camera-encode.html)**  

The **gst-camera-encode-example** application allows you to record and encode a         single camera stream.
- **[Camera streaming using OpenCV](https://docs.qualcomm.com/doc/80-70022-50/topic/gst-camera-opencv-resize-py.html)**  

The **gst-camera-opencv-resize.py** application uses OpenCV APIs to capture a         camera frame from a live camera stream and then apply color conversion or re-size the frame.         The re-sized output is displayed on the screen.
- **[Video transformation using OpenCV](https://docs.qualcomm.com/doc/80-70022-50/topic/video-playback-using-opencv.html)**  

The **gst-opencv-transform.py** application captures and transforms a video frame         and then displays the video on the screen.
- **[Concurrent video playback (video wall) using Python](https://docs.qualcomm.com/doc/80-70022-50/topic/video-wall-using-python.html)**  

The **gst-concurrent-videoplay-composition.py** application supports concurrent         video playback for MP4 AVC (H.264) videos and performs composition on a video wall         display.
- **[Multi-camera streaming using Python](https://docs.qualcomm.com/doc/80-70022-50/topic/multi-camera-streaming-python-sample-app.html)**  

The **gst-multi-camera-stream-example.py** application allows you to stream from two         camera sensors simultaneously. The application composes the camera feeds side by side to         display on a screen or encodes and stores the video streams to files.
- **[Object detection and display](https://docs.qualcomm.com/doc/80-70022-50/topic/camera-detection-display.html)**  

The **gst-ai-object-detection.py** application allows you to detect objects in the         camera stream or a file stream and display the results or save the output to a         file.
- **[Decode and object detection using RTSP stream](https://docs.qualcomm.com/doc/80-70022-50/topic/rts-decode-ai-detection-yolo-v8-overlay-display.html)**  

The **gst-rtspsrc-detection-display.py** script receives an RTSP stream as a         source, decodes it, uses [YOLOv8](https://github.com/ultralytics/ultralytics) LiteRT model to identify the object in a         scene from the camera stream and overlay the bounding boxes over the detected objects. The         results are shown on the display.
- **[Decode JPEG images using Python](https://docs.qualcomm.com/doc/80-70022-50/topic/decode-jpeg-images-using-python.html)**  

The **gst-jpg-image-decode.py** application allows you to decode JPEG images and         view the decoded images on a screen.
- **[Object detection and classification](https://docs.qualcomm.com/doc/80-70022-50/topic/camera-ai-detection-overlay-composer-display.html)**  

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

The **gst-camera-rotate-downscale-file.py** application  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-70022-50/topic/camera-encode-file-detection-yolov8-overlay-display.html)**  

The **gst-camera-two-stream-encode-file-detection-display.py** application encodes         the camera stream and saves it to a file. The application uses a YOLOX LiteRT model to         identify the objects in a scene from a camera stream. The application overlays the bounding         boxes over the detected objects and displays the results.
- **[Object detection, classification, and segmentation](https://docs.qualcomm.com/doc/80-70022-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         segmentation for the video. The output is displayed side by side on a screen.
- **[Parallel inference using Python](https://docs.qualcomm.com/doc/80-70022-50/topic/parallel-inference-using-python.html)**  

The **gst-parallel-inference.py** application receives a video input from a         camera, file, or an RTSP stream and sends it for a four-channel parallel processing by AI         models (classification, object detection, pose detection and segmentation). The output is         displayed as a preview with the overlaid AI models.
- **[Daisy chain detection and pose detection using Python](https://docs.qualcomm.com/doc/80-70022-50/topic/daisy-chain-detection-and-pose-detection-using-python.html)**  

The **gst-ai-daisychain-detection-pose.py** application allows you to perform         cascaded object detection and pose detection with input from a camera, file source, or an         RTSP stream.
- **[Customize a Python sample application](https://docs.qualcomm.com/doc/80-70022-50/topic/customize-a-python-sample-application.html)**  

You can develop custom sample applications using the instructions in this         procedure.

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

Last Published: Feb 20, 2026

[Previous Topic
Video composition](https://docs.qualcomm.com/bundle/publicresource/80-70022-50/topics/gst-weston-composition-example.md) [Next Topic
Prerequisites](https://docs.qualcomm.com/bundle/publicresource/80-70022-50/topics/prerequisites-for-python-sample-applications.md)