# Prerequisites

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

Complete these preconditions before running the Python-based sample
        applications.

- 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.
- Rename the model and label files according to the application in use.
- Enable the
                display:

        export XDG_RUNTIME_DIR=/dev/socket/weston && export WAYLAND_DISPLAY=wayland-1Copy to clipboard
- Push the files from the host computer to the target
                device:

        scp <video.mp4> root@<IP address of target device>:/opt/data/Copy to clipboard
- To enable camera, run `setenforce 0` in the target device shell.

If you face issues while enabling camera or display, see troubleshooting.

## See also

- [Camera Guide](https://docs.qualcomm.com/bundle/publicresource/topics/80-70018-17/camera-overview.html)
- [Video Guide](https://docs.qualcomm.com/bundle/publicresource/topics/80-70018-20/overview.html)
- [Audio Guide](https://docs.qualcomm.com/bundle/publicresource/topics/80-70018-16/overview.html)

**Parent Topic:** Python applications

Last Published: Jan 30, 2026

Previous Topic
 
Python applications Next Topic

Camera encoding