[Tutorial] How to Install MediaPipe on Raspberry Pi

แชร์
ฝัง
  • เผยแพร่เมื่อ 30 ก.ย. 2024

ความคิดเห็น • 30

  • @saitama2978
    @saitama2978 5 วันที่ผ่านมา +1

    Following the instructions about installing Bazel, it says that there’s no objective “requirements”, also it doesn’t found libnopenexr23 and the others. What i have to do?, please help!

    • @make2explore
      @make2explore  4 วันที่ผ่านมา

      Dear Saitama, @saitama2978
      *Thank you very much* 🙏 for your interest in our channel.
      *_Q_* - _...there’s no objective “requirements”, also it doesn’t found libnopenexr23 and the others_
      ➡️ We had not encountered these type errors while we were experimenting. These must be new pre-requisite packages you need to install other than mentioned in video.
      As this video tutorial is too old. So there may be some difference in options.
      ➡️ As this MediaPipe Python Package is originally developed for to work on Raspberry Pi 3 / 4.
      🔗 pypi.org/project/mediapipe-rpi4/
      🔗 github.com/superuser789/MediaPipe-on-RaspberryPi
      *IMP* Keep note - As per our findings it only works on 32 bit OS, since it is build for it. The MediaPipe python package we used here for raspberry is built on (Debian 10) Buster legacy version(32 bit). You can use same OS and test it.
      If you still have any issues/suggestions about this Tutorial, or any of our DIY project, feel free to ping us on WhatsApp/Telegram (Links given below) for further support.
      Tech support - (𝗖𝗵𝗮𝘁 𝗢𝗻𝗹𝘆) Telegram/WhatsApp - 11:00 AM - 05:00 PM (Mon-Fri) IST
      🚀 𝗧𝗲𝗹𝗲𝗴𝗿𝗮𝗺 🔗 t.me/make2explore
      💬 𝗪𝗵𝗮𝘁𝘀𝗔𝗽𝗽 🔗 bit.ly/3VXGGEe
      📩 info@make2explore.com / support@make2explore.com
      As per time permits we will try our best to help you out.
      Best Regards 🙏

  • @Ignotus.
    @Ignotus. ปีที่แล้ว +2

    "pip install mediapipe-rpi4"
    you're welcome. no need to watch the whole video.

    • @make2explore
      @make2explore  ปีที่แล้ว

      Dear @Ignotus, 🙏 *Thank you very much* for your interest in our channel.
      *_Q_* - _ pip install mediapipe-rpi4_
      ➡️ Yes! you're absolutely right. That is the main command to install *MediaPipe Python Package* for Raspberry Pi. But there few pre-requisites/dependencies. (Like - ffmpeg, opencv, and other library packages) to be installed before you execute above mentioned command. This video is just demonstration of that procedure, about how to install MediaPipe Python Package for fresh "Raspberry Pi OS". Check out following Project description page on pypi.org for more details -
      🌐 MediaPipe Python Package (Unofficial) for RaspberryPi OS(32 bit) on Raspberry Pi 3 / 4
      🔗 pypi.org/project/mediapipe-rpi4/
      If you still facing any issues in replicating any of our DIY Project/tutorial, feel free to ping us on WhatsApp/Telegram (Links given below) for further support.
      Tech support - (𝗖𝗵𝗮𝘁 𝗢𝗻𝗹𝘆) Telegram/WhatsApp - 11:00 AM - 05:00 PM (Mon-Fri) IST
      🚀 𝗧𝗲𝗹𝗲𝗴𝗿𝗮𝗺 🔗 t.me/make2explore
      💬 𝗪𝗵𝗮𝘁𝘀𝗔𝗽𝗽 🔗 bit.ly/3VXGGEe
      📩 info@make2explore.com / support@make2explore.com
      As per time permits we will try our best to help you out.
      Best Regards 🙏

  • @Yu-ou5qw
    @Yu-ou5qw ปีที่แล้ว +1

    i install mediapie and when i play this,
    error about pip
    I have to
    pip install upgrade -pip
    But when i do this, python3.7 is change to python3.4.3
    How solve this problem???

    • @make2explore
      @make2explore  ปีที่แล้ว

      Dear Friend @Yu-ou5qw, 🙏 *Thank you very much* for your interest in our channel.
      *_Q_* - _About python and Pip version_
      ➡️ There are *both versions of Python (2 & 3) preinstalled* on (Debian 10) Buster legacy version. You just need to invoke them using specific command. Like for example if you just use
      ==> python example.py (....default python 2.x will be used)
      and if you use --
      ==> python3 example.py (.....in command, then python 3.x will be used)
      ➡️ For Python Package manager (pip), you should use/invoke its specific version during installation/update/upgrade of any package.
      For example -
      If you want to install "Matplotlib" for *_python2_*, then you just need to enter following command
      ==> pip install matplotlib
      If you want to install "Matplotlib" for *_python3_*, then you just need to enter following command
      ==> pip3 install matplotlib
      🌐 Know more about pip - 🔗 pip.pypa.io/en/stable/cli/pip/
      If you still have any issues replicating this Tutorial, or any of our DIY project, feel free to ping us on WhatsApp/Telegram (Links given below) for further support.
      Tech support - (𝗖𝗵𝗮𝘁 𝗢𝗻𝗹𝘆) Telegram/WhatsApp - 11:00 AM - 05:00 PM (Mon-Fri) IST
      🚀 𝗧𝗲𝗹𝗲𝗴𝗿𝗮𝗺 🔗 t.me/make2explore
      💬 𝗪𝗵𝗮𝘁𝘀𝗔𝗽𝗽 🔗 bit.ly/3VXGGEe
      📩 info@make2explore.com / support@make2explore.com
      As per time permits we will try our best to help you out.
      Best Regards 🙏

  • @yugeshkc9026
    @yugeshkc9026 2 ปีที่แล้ว +2

    Using this approach I have only achieved 4 fps. Could you please share how much FPS were you able to achieve

    • @make2explore
      @make2explore  2 ปีที่แล้ว

      Dear @Yugesh Kc , 🙏 *Thank you very much* for your interest in our channel.
      We have used Raspberry Pi 4 (2GB) version. We also tuned up our raspberry pi for vision based projects, by optimizing OS, increasing SWAP memory, disabling un-necessary services, using proper cooling method for CPU to avoid throttling etc. We got 5-7FPS with screen recorder on, and upto 8-10FPS without screen recording application.
      📌 How to tune-up your Raspberry Pi - ▶️ th-cam.com/video/00c2GTpRaU8/w-d-xo.html
      You can achieve even more FPS, if you used 4GB/8GB RAM RPi4 with 64Bit OS and overclocking CPU to 2GHz. But for that you have to build your own version of MediaPipe Python package, Since the package we mentioned/used in this video tutorial is supported only for 32Bit legacy OS.
      ✅ Building MediaPipe Python package on Raspberry Pi OS for Raspberry Pi 3 / 4 -
      🔗 github.com/superuser789/MediaPipe-on-RaspberryPi
      If you face any issues in replicating this project/tutorial, Feel free to contact us through email
      📩 - *info@**make2explore.com*
      Also, For quick replies, you can always chat with us on 🚀 *_Telegram_*
      🔗 t.me/make2explore
      We'd ❤️ love to help.
      Best Regards 🙏

  • @groupkgones1444
    @groupkgones1444 ปีที่แล้ว +1

    The version of Python that installed on Raspberry Pi Os Legacy is 2.7.16, how to update to pyhton 3.7 as on your video? :(

    • @make2explore
      @make2explore  ปีที่แล้ว

      Dear @groupkgones1444, 🙏 *Thank you very much* for your interest in our channel.
      _The version of Python that installed on Raspberry Pi OS Legacy is 2.7.16, how to update to pyhton 3.7 as on your video? :(_
      ➡️ There are *both versions of Python (2 & 3) preinstalled* on (Debian 10) Buster legacy version. You just need to invoke them using specific command. Like for example if you just use
      python.... (default python 2.x will be used)
      and if you use --
      python3 (.....in command, then python 3.x will be used)
      If you still persist any issues, feel free to ping us on WhatsApp/Telegram (Links given below) for further support.
      Tech support - (𝗖𝗵𝗮𝘁 𝗢𝗻𝗹𝘆) Telegram/WhatsApp - 11:00 AM - 05:00 PM (Mon-Fri) IST
      🚀 𝗧𝗲𝗹𝗲𝗴𝗿𝗮𝗺 🔗 t.me/make2explore
      💬 𝗪𝗵𝗮𝘁𝘀𝗔𝗽𝗽 🔗 bit.ly/3VXGGEe
      As per time permits we will try our best to help you out.
      Best Regards 🙏

  • @penrose0v073
    @penrose0v073 2 ปีที่แล้ว +1

    Traceback (most recent call last):
    File "", line 1, in
    File "/usr/local/lib/python3.9/dist-packages/mediapipe/__init__.py", line 16, in
    from mediapipe.python import *
    File "/usr/local/lib/python3.9/dist-packages/mediapipe/python/__init__.py", line 17, in
    from mediapipe.python._framework_bindings import resource_util
    ModuleNotFoundError: No module named 'mediapipe.python._framework_bindings'
    I'm sure that I have installed the package, but it still shows ModuleNotFoundError...

    • @make2explore
      @make2explore  2 ปีที่แล้ว

      Dear @Penrose0v0r, 🙏 *Thank you very much* for your interest in our channel.
      _ModuleNotFoundError: No module named 'mediapipe.python._framework_bindings'_
      This error usually occurs in latest Raspbian OS *_bullseye (Debian 11)_* . The MediaPipe python package we used here for raspberry is *built for ***_(Debian 10) Buster legacy version_* . That's why it gives errors when you try to install it on bullseye. So you can see, in video, we recommend to use this raspberry pi Buster OS.
      You can also build your own version of this _MediaPipe_ package for *bullseye* or latest OS, if you want. Instruction for that are given on developers GitHub page, links are given in the description box.
      If you still facing any issues in replicating this tutorial, Feel free to contact us through email
      📩 - *info@**make2explore.com*
      Also, For quick replies, you can always chat with us on 🚀 *_Telegram_*
      🔗 t.me/make2explore
      We'd ❤️ love to help.
      Best Regards 🙏

  • @RichardBai-bg4yf
    @RichardBai-bg4yf ปีที่แล้ว +1

    Traceback (most recent call last):
    File "sample_hand.py", line 8, in
    import mediapipe as mp
    File "/home/pi/.local/lib/python3.7/site-packages/mediapipe/__init__.py", line 16, in
    from mediapipe.python import *
    File "/home/pi/.local/lib/python3.7/site-packages/mediapipe/python/__init__.py", line 17, in
    from mediapipe.python._framework_bindings import resource_util
    ModuleNotFoundError: No module named 'mediapipe.python._framework_bindings'
    I am using Debian 10 Buster version, and have all packages installed, but still showing this error

    • @make2explore
      @make2explore  ปีที่แล้ว

      Dear Friend, 🙏 *Thank you very much* for your interest in our channel.
      _ModuleNotFoundError: No module named 'mediapipe.python._framework_bindings_
      ➡️ If you gone through comments on this video, this is the most reported error in Installation of MediaPipe on Raspberry Pi. This error usually occurs in latest Raspbian OS *_bullseye (Debian 11)._* The MediaPipe python package we used here for raspberry is built on *_(Debian 10) Buster legacy version_* . That's why it gives errors when you try to install it on bullseye. So you can see, in video, *_we recommend to use Raspberry Pi Buster legacy OS_* for successful implementation of this tutorial.
      As you mentioned in your comment that, _You are using Debian 10 Buster version_ , So there may be any missing step causing this error. Please retry with fresh image, follow each step in sequence. If problem still persist then feel free to contact us on WhatsApp/Telegram (Links given below) for further support.
      Tech support - (𝗖𝗵𝗮𝘁 𝗢𝗻𝗹𝘆) Telegram/WhatsApp - 11:00 AM - 05:00 PM (Mon-Fri) IST
      🚀 𝗧𝗲𝗹𝗲𝗴𝗿𝗮𝗺 🔗 t.me/make2explore
      💬 𝗪𝗵𝗮𝘁𝘀𝗔𝗽𝗽 🔗 bit.ly/3VXGGEe
      As per time permits we will try our best to help you out.
      Best Regards 🙏

  • @蔡其哲-l4o
    @蔡其哲-l4o 2 ปีที่แล้ว +1

    Traceback (most recent call last):
    File "", line 1, in
    File "/usr/local/lib/python3.7/site-packages/mediapipe/__init__.py", line 16, in
    from mediapipe.python import *
    File "/usr/local/lib/python3.7/site-packages/mediapipe/python/__init__.py", line 17, in
    from mediapipe.python._framework_bindings import resource_util
    ImportError: libIlmImf-2_2.so.23: cannot open shared object file: No such file or directory

    • @make2explore
      @make2explore  2 ปีที่แล้ว

      Dear @蔡其哲, 🙏 *Thank you very much* for your interest in our channel.
      Issue - _ImportError: libIlmImf-2_2.so.23: cannot open shared object file: No such file or directory_
      To resolve above python package issue, Please install following packages :
      sudo apt install libilmbase23
      sudo apt install libopenexr23
      sudo apt install libopenexr-dev
      If you still facing any issues in replicating this tutorial, Feel free to contact us through email
      📩 - *info@**make2explore.com*
      Also, For quick replies, you can always chat with us on 🚀 *_Telegram_*
      🔗 t.me/make2explore
      We'd ❤️ love to help.
      Best Regards 🙏

  • @HoHiuTao
    @HoHiuTao ปีที่แล้ว +1

    Can I install mediapipe on raspberry 2 model B ?

    • @make2explore
      @make2explore  ปีที่แล้ว

      Dear @scarletcrawl7584,
      *Thank you very much* 🙏 for your interest in our channel.
      *_Q_* - _Can I install mediapipe on raspberry 2 model B ?_
      ➡️ Theoretically answer is No. As this MediaPipe Python Package is originally developed for to work on Raspberry Pi 3 / 4.
      🔗 pypi.org/project/mediapipe-rpi4/
      🔗 github.com/superuser789/MediaPipe-on-RaspberryPi
      We never tested it on RPi 2, So we cant comment on its practical working on RPi 2. You can give a try and let us know your findings. Follow same procedure given in above video.
      *IMP* Keep note - As per our findings it only works on 32 bit OS, since it is build for it. The MediaPipe python package we used here for raspberry is built on (Debian 10) Buster legacy version(32 bit). You can use same OS and test it.
      If you still have any issues/suggestions about this Tutorial, or any of our DIY project, feel free to ping us on WhatsApp/Telegram (Links given below) for further support.
      Tech support - (𝗖𝗵𝗮𝘁 𝗢𝗻𝗹𝘆) Telegram/WhatsApp - 11:00 AM - 05:00 PM (Mon-Fri) IST
      🚀 𝗧𝗲𝗹𝗲𝗴𝗿𝗮𝗺 🔗 t.me/make2explore
      💬 𝗪𝗵𝗮𝘁𝘀𝗔𝗽𝗽 🔗 bit.ly/3VXGGEe
      📩 info@make2explore.com / support@make2explore.com
      As per time permits we will try our best to help you out.
      Best Regards 🙏

    • @HoHiuTao
      @HoHiuTao ปีที่แล้ว +1

      @@make2explore thank you very much !

  • @ivanliu1173
    @ivanliu1173 ปีที่แล้ว +1

    Hello,
    Thanks for the informative video. Both instruction and the explanation are very clear!
    I have tried the same appraoch as yours in the video on my Raspberry Pi 3, and I got the most common error due to the OS (Debian 11)😅.
    I still have one Raspberry Pi 4, 64 bit, and I am going to give it a try.
    I am wondering using Ubuntu 20 or Debian 10 OS best suits the Mediapipe framework. I saw other tutorials using these two OS. Could you please suggest a better one?
    Besides, I have also noticed that the Raspberry Pi Python Package is for 32 bit system, does it mean that I can't run it on a 64 bit Raspberry Pi?
    Thanks for reading and reply.🙂

    • @make2explore
      @make2explore  ปีที่แล้ว +1

      Dear Ivan @ivanliu1173,
      *Thank you very much* 🙏 for your interest in our channel and Your words of encouragement. Those means lot to us.
      *_Q_* - _Ubuntu 20 or Debian 10 OS. which OS best suits the Mediapipe framework?_
      ➡️ As per google developer docs (Link given below) - Debian 10 (buster) is older OS, which supports/comes with OpenCV 3.2 and Ubuntu 20.04 LTS is quite newer than Debian 10, which supports/comes with OpenCV 4.2. OpenCV 2.x currently works but interoperability support may be deprecated in the future.
      🔗 developers.google.com/mediapipe/framework/getting_started/install
      The MediaPipe Python Package for RaspberryPi OS is unofficially supported. We used pre-built package from following source. **We never tested it on Ubuntu 20, you can give a try and let us know its performance.
      📜 MediaPipe Python Package (Unofficial) 🔗 pypi.org/project/mediapipe-rpi4/
      *_Q_* - _does it mean that I can't run it on a 64 bit Raspberry Pi?_
      ➡️ Yes! you're absolutely right. As per our findings it only works on 32 bit OS, since it is build for it. The MediaPipe python package we used here for raspberry is built on *_(Debian 10) Buster legacy version(32 bit)_* .
      If you still want to use latest Raspbian distro or any other distro then, you can build your own version of this MediaPipe python package for any distro. Instructions for that are given on developers GitHub page, links are given below as well as in the description box.
      🔗 📜 github.com/superuser789/MediaPipe-on-RaspberryPi
      🔗 📜 developers.google.com/mediapipe/framework/getting_started/install
      If you still have any issues replicating this Tutorial, or any of our DIY project, feel free to ping us on WhatsApp/Telegram (Links given below) for further support.
      Tech support - (𝗖𝗵𝗮𝘁 𝗢𝗻𝗹𝘆) Telegram/WhatsApp - 11:00 AM - 05:00 PM (Mon-Fri) IST
      🚀 𝗧𝗲𝗹𝗲𝗴𝗿𝗮𝗺 🔗 t.me/make2explore
      💬 𝗪𝗵𝗮𝘁𝘀𝗔𝗽𝗽 🔗 bit.ly/3VXGGEe
      📩 info@make2explore.com / support@make2explore.com
      As per time permits we will try our best to help you out.
      Best Regards 🙏

    • @ivanliu1173
      @ivanliu1173 ปีที่แล้ว +1

      Hi @@make2explore ,
      Thanks for the prompt reply and the useful suggestions. 🙂
      I understand, and I will still try the compatible system first and see how it goes.
      Thank you very much😃

  • @บุญญานุภาพผาสุข
    @บุญญานุภาพผาสุข 2 ปีที่แล้ว

    Package 'libopenexr23' has no installation candidate on Raspberrypi 3

    • @make2explore
      @make2explore  2 ปีที่แล้ว +3

      Dear Subscriber/Viewer, 🙏 *Thank you very much* for your interest in our channel.
      _Package 'libopenexr23' has no installation candidate on Raspberrypi 3_
      This error usually occurs in latest Raspbian OS *_bullseye (Debian 11)_* . The MediaPipe python package we used here for raspberry is built on *_(Debian 10) Buster legacy version_* . That's why it gives errors when you try to install it on bullseye. So you can see, in video, we recommend to use this raspberry pi Buster OS.
      You can still bypass this error by installing latest package - *_libopenexr25_*
      but still (mediapipe-rpi4 0.8.8 ) will not work on bullseye. It will get installed, but gives error when you try to invoke/import it in python program. We've checked that. You can also build your own version of this MediaPipe package for bullseye if you want. Instruction for that are given on developers GitHub page, links are in the description box.
      If you still facing any issues in replicating this tutorial, Feel free to contact us through email
      📩 - *info@**make2explore.com*
      Also, For quick replies, you can always chat with us on 🚀 *_Telegram_*
      🔗 t.me/make2explore
      We'd ❤️ love to help.
      Best Regards 🙏

    • @บุญญานุภาพผาสุข
      @บุญญานุภาพผาสุข 2 ปีที่แล้ว +2

      @@make2explore thank

  • @ahmedkimo4118
    @ahmedkimo4118 2 ปีที่แล้ว

    File "", line 1, in
    File "/usr/local/lib/python3.7/dist-packages/mediapipe/__init__.py", line 16, in
    from mediapipe.python import *
    File "/usr/local/lib/python3.7/dist-packages/mediapipe/python/__init__.py", line 17, in
    from mediapipe.python._framework_bindings import resource_util
    ModuleNotFoundError: No module named 'mediapipe.python._framework_bindings'
    what should i do

    • @make2explore
      @make2explore  2 ปีที่แล้ว +1

      Dear @ahmed kimo, 🙏 *Thank you very much* for your interest in our channel.
      _ModuleNotFoundError: No module named 'mediapipe.python._framework_bindings_
      ➡️ This error usually occurs in latest Raspbian OS *_bullseye (Debian 11)._* The MediaPipe python package we used here for raspberry is built on *_(Debian 10) Buster legacy version_* . That's why it gives errors when you try to install it on bullseye. So you can see, in video, *_we recommend to use Raspberry Pi Buster legacy OS_* for successful implementation of this tutorial.
      (mediapipe-rpi4 0.8.8 ) python package will not work on bullseye OS. It will get installed, but throws error whenever you try to invoke/import it in python program. We've checked that practically.
      If you still want to use latest Raspbian distro then, you can build your own version of this MediaPipe python package for any distro. Instructions for that are given on developers GitHub page, links are given below as well as in the description box.
      🔗 github.com/superuser789/MediaPipe-on-RaspberryPi
      If you still facing any issues in replicating this tutorial, Feel free to contact us through email
      📩 - *info@**make2explore.com*
      Also, For quick replies, you can always chat with us on 🚀 *_Telegram_*
      🔗 t.me/make2explore
      We'd ❤️ love to help.
      Best Regards 🙏

    • @ahmedkimo4118
      @ahmedkimo4118 2 ปีที่แล้ว +1

      @@make2explore i donot how to thank you
      thank u verry much you fix a problem it to 2 week to fix thanks verry much

    • @make2explore
      @make2explore  2 ปีที่แล้ว

      Dear @bambang sugeng, 🙏 *Thank you very much* for your interest in our channel.
      sudo apt-get upgrade -y
      Here in this command, 'y' is not case sensitive. you can use either Y or y. If your terminal is not accepting letter 'Y', Then you have to check it outside, in notepad/Text editor. Also make sure that you're using correct keyboard layout as per your system.
      If you still facing any issues in replicating this tutorial, Feel free to contact us through email
      📩 - *info@**make2explore.com*
      Also, For quick replies, you can always chat with us on 🚀 *_Telegram_*
      🔗 t.me/make2explore
      We'd ❤️ love to help.
      Best Regards 🙏

    • @make2explore
      @make2explore  2 ปีที่แล้ว

      Dear @bambang sugeng, 🙏 *Thank you very much* for your interest in our channel.
      The MediaPipe python package we used here for raspberry is built on *_(Debian 10) Buster legacy version_* . We have also explained in video about how to download that legacy OS version.
      ▶️ th-cam.com/video/mlwEJkrHBL8/w-d-xo.html
      📌 You can find all Raspbian OS archives on following link
      Index of /raspbian/images -
      🔗 downloads.raspberrypi.org/raspbian/images/
      📌 The OS we used is available on following link, just follow along video
      Raspberry Pi OS (Legacy) -
      🔗 www.raspberrypi.com/software/operating-systems/
      If you still facing any issues in replicating this tutorial, Feel free to contact us through email
      📩 - *info@**make2explore.com*
      Also, For quick replies, you can always chat with us on 🚀 *_Telegram_*
      🔗 t.me/make2explore
      We'd ❤️ love to help.
      Best Regards 🙏