.. include:: /index.rst :start-after: start_hello_message :end-before: end_hello_message .. note:: If you are using the pre-installed "Raspberry Pi OS with AI Fusion Lab Kit" image, you can skip this section. This image already includes all the software installations, environment configurations, and example code deployments described in this chapter. .. _mediapipe_install: 0. Setup MediaPipe ==================================================================== About the OS Version ------------------------------- .. warning:: **Recommended OS**: Raspberry Pi OS Bookworm (Debian 12, 64-bit) Raspberry Pi OS Trixie (Debian 13) is not recommended because: * MediaPipe does not yet support Python 3.13. * Picamera2 only works with the system Python. This tutorial will be updated once Trixie becomes supported. If you would like to request official MediaPipe support for Python 3.13, you can submit feedback here: * GitHub Issue: https://github.com/google-ai-edge/mediapipe/issues/5708 * Support Page: https://ai.google.dev/edge/mediapipe/support Before You Start ---------------- .. important:: Before you start, make sure: * The pan-tilt is assembled * You can access the Raspberry Pi desktop * The code package is installed * Fusion HAT+ is installed and configured * OpenCV is installed For detailed instructions, see :ref:`opencv_install`. These preparations ensure MediaPipe can run with full graphical and camera functionality on your Raspberry Pi. Installation Steps ---------------------------------- #. Install MediaPipe Install MediaPipe using pip. On Raspberry Pi OS Bookworm (Debian 12, 64-bit), pip will download the correct wheel automatically. .. code-block:: bash sudo pip install mediapipe --break-system-packages #. Verify the installation Run the following command to confirm that MediaPipe is installed correctly. .. code-block:: bash python3 - <