# 前提条件

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

在运行基于 Python 的示例应用程序之前，请完成这些前提条件。

- 要在设备上创建目录，请在 shell 中运行以下命令：

        mount -o remount,rw /Copy to clipboard

        mkdir -p /opt/data/Copy to clipboard
- 确保模型和标签文件在设备上可用。相关说明，可参见[下载模型和标签文件](https://docs.qualcomm.com/doc/80-70018-50SC/topic/download-model-and-label-files.html)。
- 根据正在使用的应用程序重命名模型和标签文件。
- 启用显示器：

        export XDG_RUNTIME_DIR=/dev/socket/weston && export WAYLAND_DISPLAY=wayland-1Copy to clipboard
- 将文件从主机推送到目标设备：

        scp <video.mp4> root@<IP address of target device>:/opt/data/Copy to clipboard
- 要启用摄像头，请在目标设备 shell 中运行 `setenforce 0`。

如果启用摄像头或显示器时遇到问题，请参阅[故障排除](https://docs.qualcomm.com/doc/80-70018-50SC/topic/download-model-and-label-files.html#download-model-and-label-files)。

## 另可参见

- [摄像头指南](https://docs.qualcomm.com/bundle/publicresource/topics/80-70018-17/camera-overview.html)
- [视频指南](https://docs.qualcomm.com/bundle/publicresource/topics/80-70018-20/overview.html)
- [音频指南](https://docs.qualcomm.com/bundle/publicresource/topics/80-70018-16/overview.html)

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

Last Published: Nov 12, 2025

[Previous Topic
Python 应用程序](https://docs.qualcomm.com/bundle/publicresource/80-70018-50SC/topics/python-sample-applications.md) [Next Topic
摄像头编码](https://docs.qualcomm.com/bundle/publicresource/80-70018-50SC/topics/camera-encode.md)