MediaPipe for Apple Silicon
Prebuilt Google MediaPipe packages for Apple Silicon (arm64
).
To install the prebuilt packages, use the following command to install from PyPi. The package is called mediapipe-silicon but is a drop-in-replacement for the mediapipe package.
pip install mediapipe-silicon
As mentioned in cansik#1 maybe it is necessary to limit the protobuf
version, because the most recent one is not compatible:
pip install protobuf<=3.20.1
To use this library version in a requirements.txt
it is recommended to use the following structure.
mediapipe-silicon; platform_system == "Darwin" and platform.machine == 'arm64'
To build the libraries yourself, please first install the following dependencies and run the build script.
brew install wget cmake protobuf bazelisk opencv@3
brew uninstall --ignore-dependencies glog
./build-macos.sh
The pre-built wheel packages should be in the dist
directory.
MIT License - Copyright (c) 2022 Florian Bruggisser