# 自定义 Python 示例应用程序

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

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

## 关于此任务

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

## 过程

1. 将 Python 应用程序源代码从参考平台拉取至主机 PC。
                
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>:/opt/Copy to clipboard
4. 运行示例应用程序。
                
例如：

        python3 /opt/gst-camera-encode.pyCopy to clipboard

**上一级主题：** [Python 应用程序](https://docs.qualcomm.com/doc/80-70017-50SC/topic/python-sample-applications.html)

Last Published: Nov 11, 2025

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