# 自定义 Python 示例应用程序

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

用户可以使用此过程中的说明开发自定义示例应用程序。

## About this task

本过程中使用了[摄像头编码](https://docs.qualcomm.com/doc/80-70022-50SC/topic/camera-encode.html)示例应用程序作为示例。

Note: 以下步骤适用于 Qualcomm Linux。对于 Ubuntu Server，您可以在目标设备上修改文件。

## Procedure

1. 将 Python 应用程序源代码从目标设备拉取至主机。
                
scp root@<IP address of target device>:/usr/bin/gst-camera-encode.py> <destination directory>Copy to clipboard
2. 根据需要，执行您的自定义。
3. 将自定义源代码推送到目标设备。 
                
scp <filename> root@<IP address of target device>:/<directory>/Copy to clipboard
4. 在目标设备上运行示例应用程序。
                
例如：

        python3 /<pushed-file-directory>/gst-camera-encode.pyCopy to clipboard

**Parent Topic:** [运行基于 Python 的应用程序](https://docs.qualcomm.com/doc/80-70022-50SC/topic/python-sample-applications.html)

Last Published: Nov 05, 2025

[Previous Topic
使用 Python 进行菊花链检测和姿态检测](https://docs.qualcomm.com/bundle/publicresource/80-70022-50SC/topics/daisy-chain-detection-and-pose-detection-using-python.md) [Next Topic
将 Qualcomm IM SDK 部署为容器](https://docs.qualcomm.com/bundle/publicresource/80-70022-50SC/topics/application-deployment-within-container-api-gstd.md)