{"id":15636560,"url":"https://github.com/pinto0309/mediapipe-bin","last_synced_at":"2025-04-14T03:15:08.877Z","repository":{"id":37440866,"uuid":"371949560","full_name":"PINTO0309/mediapipe-bin","owner":"PINTO0309","description":"MediaPipe Python Wheel installer for RaspberryPi OS aarch64, Ubuntu aarch64, Debian aarch64 and Jetson Nano.","archived":false,"fork":false,"pushed_at":"2023-12-10T23:23:43.000Z","size":46,"stargazers_count":123,"open_issues_count":2,"forks_count":20,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-04-14T03:14:57.587Z","etag":null,"topics":["aarch64","armv8","debian","jetson-nano","mediapipe","opencv","opencv-contrib-python","opencv-python","raspberry-pi","raspberrypi","ubuntu","wheel"],"latest_commit_sha":null,"homepage":"","language":"Shell","has_issues":false,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/PINTO0309.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2021-05-29T10:59:07.000Z","updated_at":"2025-02-11T05:56:31.000Z","dependencies_parsed_at":"2024-01-13T16:29:01.839Z","dependency_job_id":"ced3b1e5-7685-4265-a03a-a4bbc596048f","html_url":"https://github.com/PINTO0309/mediapipe-bin","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PINTO0309%2Fmediapipe-bin","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PINTO0309%2Fmediapipe-bin/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PINTO0309%2Fmediapipe-bin/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/PINTO0309%2Fmediapipe-bin/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/PINTO0309","download_url":"https://codeload.github.com/PINTO0309/mediapipe-bin/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248813803,"owners_count":21165634,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["aarch64","armv8","debian","jetson-nano","mediapipe","opencv","opencv-contrib-python","opencv-python","raspberry-pi","raspberrypi","ubuntu","wheel"],"created_at":"2024-10-03T11:05:03.615Z","updated_at":"2025-04-14T03:15:08.834Z","avatar_url":"https://github.com/PINTO0309.png","language":"Shell","funding_links":[],"categories":[],"sub_categories":[],"readme":"# mediapipe-bin\nMediaPipe Python Wheel installer for RaspberryPi OS aarch64, Ubuntu aarch64 Debian aarch64, L4T/Jetson Nano aarch64.\n\n## 1. Binary type\n|Device|OS|Distribution|Architecture|Python ver|Numpy ver|Note|\n|:--|:--|:--|:--|:--|:--|:--|\n|RaspberryPi3/4|RaspberryPiOS/Debian|Buster|aarch64 / armv8|3.7.3|1.19/1.20|64bit, glibc2.28|\n|RaspberryPi3/4|Ubuntu 18.04|Bionic|aarch64 / armv8|3.6.9|1.19|64bit, glibc2.27|\n|RaspberryPi3/4|Ubuntu 20.04|Focal|aarch64 / armv8|3.8.2|1.19/1.20|64bit, glibc2.31|\n|(Experimental/WIP) Jetson Nano|L4T (Ubuntu 18.04)|32.5.1|aarch64 / armv8|3.6.9|(mandatory) 1.19.4|64bit, glibc2.27, Pose/Holistic/Selfie Segmentation/Multi Hand Tracking/FaceDetection/FaceMesh only,OpenGL ES3.2|\n|(Experimental) RaspberryPi3/4|Debian|Bullseye|aarch64 / armv8|3.9.2|1.20|64bit, glibc2.31, gcc-8.5|\n|RaspberryPi3/4|Ubuntu 21.04|Hirsute|aarch64 / armv8|3.9.5|1.20|64bit, glibc2.33, gcc-7.5|\n\n## 2. Wheels download\n```bash\n$ git clone https://github.com/PINTO0309/mediapipe-bin.git \u0026\u0026 cd mediapipe-bin\n$ sudo chmod +x ./v0.8.4/download.sh \u0026\u0026 ./v0.8.4/download.sh\n$ sudo chmod +x ./v0.8.5/download.sh \u0026\u0026 ./v0.8.5/download.sh\n```\n## 3. Sample\n### 3-1. RaspberryPi4 + RaspberryPi OS 64bit (aarch64) + Python3.7 + CPU only (9.0FPS)\n```bash\n$ cd ~\n$ git clone https://github.com/Kazuhito00/mediapipe-python-sample \u0026\u0026 cd mediapipe-python-sample\n$ python3 sample_hand.py\n```\n![ezgif com-gif-maker (7)](https://user-images.githubusercontent.com/33194443/120130242-a4774300-c200-11eb-8a74-d7f74384a4eb.gif)\n### 3-2. Jetson Nano + L4T 32.5.1 64bit (aarch64) + Python3.6 + GPU (22.0FPS)\n```bash\n$ cd ~\n$ git clone https://github.com/Kazuhito00/mediapipe-python-sample \u0026\u0026 cd mediapipe-python-sample\n$ python3 sample_hand.py\n```\n![ezgif com-gif-maker (15)](https://user-images.githubusercontent.com/33194443/120900199-76fe1f80-c66e-11eb-9b06-812b38b7600a.gif)\n\n## 4. Build\n### 4-1. Other than Jetson Nano\n```bash\n$ sudo apt update \u0026\u0026 \\\n  sudo apt install -y \\\n  python3-dev cmake protobuf-compiler libprotobuf-dev \\\n  python3-pip git make openjdk-11-jdk-headless\n\n$ sudo pip3 install pip setuptools --upgrade\n\n$ git clone -b v0.8.4 https://github.com/google/mediapipe \u0026\u0026 cd mediapipe\n\n$ sed -i -e \"/\\\"imgcodecs\\\"/d;/\\\"calib3d\\\"/d;/\\\"features2d\\\"/d;/\\\"highgui\\\"/d;/\\\"video\\\"/d;/\\\"videoio\\\"/d\" third_party/BUILD\n$ sed -i -e \"/-ljpeg/d;/-lpng/d;/-ltiff/d;/-lImath/d;/-lIlmImf/d;/-lHalf/d;/-lIex/d;/-lIlmThread/d;/-lrt/d;/-ldc1394/d;/-lavcodec/d;/-lavformat/d;/-lavutil/d;/-lswscale/d;/-lavresample/d\" third_party/BUILD\n\n$ sed -i -e \"/^        # Optimization flags/i \\        \\\"ENABLE_NEON\\\": \\\"OFF\\\",\" third_party/BUILD\n$ sed -i -e \"/^        # Optimization flags/i \\        \\\"WITH_TENGINE\\\": \\\"OFF\\\",\" third_party/BUILD\n\n$ wget https://github.com/PINTO0309/Bazel_bin/raw/main/3.7.2/aarch64/install.sh\n$ sudo chmod +x install.sh\n$ ./install.sh\n\n$ sudo python3 setup.py gen_protos\n$ sudo bazel clean --expunge\n$ sudo python3 setup.py bdist_wheel\n```\n### 4-2. (Experimental / WIP) Jetson Nano\n- **[Verification of mediapipe's GPU-enabled .pbtxt processing method](https://zenn.dev/pinto0309/scraps/71368ef3d74438)**\n\n### 4-3. opencv_contrib_python-4.5.* \n- **[Build the Wheel installer for opencv-contrib-python](https://zenn.dev/pinto0309/scraps/e10bc3a8be82f1)**\n\n\n## 5. Reference\n1. I was inspired by **[jiuqiant's](https://github.com/jiuqiant/mediapipe_python_aarch64)** **[mediapipe_python_aarch64](https://github.com/jiuqiant/mediapipe_python_aarch64)** to create this repository. Thank you so much! 🌠\n2. Article: **[How to enjoy MediaPipe easily with Raspberry Pi - karaage0703 - Zenn](https://zenn.dev/karaage0703/articles/63fed2a261096d)** 🌟\n3. Sample: **[mediapipe-python-sample - Kazuhito00 - GitHub](https://github.com/Kazuhito00/mediapipe-python-sample)** 🌟\n4. OS Image: **https://downloads.raspberrypi.org/raspios_arm64/images/raspios_arm64-2021-05-28/**\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpinto0309%2Fmediapipe-bin","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fpinto0309%2Fmediapipe-bin","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fpinto0309%2Fmediapipe-bin/lists"}