Note : Currently only RaspberryPi OS 32 bit version is supported by the built mediapipe package. It might not work on other OS's.
Project Homepage : https://github.com/google/mediapipe
- Install FFmpeg and OpenCV from official repository OR Build from sources using this Guide .
sudo apt install ffmpeg python3-opencv python3-pip
Note: FFmpeg and OpenCV from official repository have been built with less optimisations. It is recommended to build from sources with the supported optimisations.
- Install these dependency packages if you have installed the pre-built packages without building from sources.
sudo apt install libxcb-shm0 libcdio-paranoia-dev libsdl2-2.0-0 libxv1 libtheora0 libva-drm2 libva-x11-2 libvdpau1 libharfbuzz0b libbluray2 libatlas-base-dev libhdf5-103 libgtk-3-0 libdc1394-22 libopenexr23
sudo pip3 install mediapipe-rpi4
sudo pip3 uninstall mediapipe-rpi4
sudo pip3 install mediapipe-rpi3
sudo pip3 uninstall mediapipe-rpi3