This tutorial elaborates how to install MediaPipe on the Jetson Nano.
This is the 2022 version with the last Jetpack (Q1 2022)
just follow the steps and you will get the Mediapipe install on your jetson nano
The link for the video : https://youtu.be/ij9bIET4rCU
You can find more similar tutorials in my blog posts page here : https://eranfeit.net/blog/
You can find more Nvidia Jetson Nano tutorials here : https://eranfeit.net/how-to-classify-objects-using-jetson-nano-inference-and-opencv/
You can find a link to the code here : https://ko-fi.com/s/7a72f61abe
Here are some files used in the tutorial :
Setup.txt
pip install setup wget https://bootstrap.pypa.io/get-pip.py sudo python3 get-pip.py rm get-pip.py sudo pip3 install pip --upgrade sudo pip3 install opencv_contrib_python git clone https://github.com/PINTO0309/mediapipe-bin cd mediapipe-bin ./v0.8.5/numpy119x/mediapipe-0.8.5_cuda102-cp36-cp36m-linux_aarch64_numpy119x_jetsonnano_L4T32.5.1_download.sh sudo pip3 install \ numpy-1.19.4-cp36-none-manylinux2014_aarch64.whl \ mediapipe-0.8.5_cuda102-cp36-none-linux_aarch64.whl
You can find a link to the code here : https://ko-fi.com/s/7a72f61abe
How to Install MediaPipe on jetson-nano
#How to install Media pipe on jetson nano 2022 # The starting point is a flashed new SD card with Jetpack 4.6 # Increase swap for more swap ram # =============================== git clone https://github.com/JetsonHacksNano/installSwapfile.git cd installSwapfile ./installSwapfile.sh # setup - pre install include Python and pip # =================== sudo apt update sudo apt-get update sudo apt-get install python3-pip sudo pip3 install -U pip testresources setuptools==49.6.0 # python libraries for Tensorflow # ================================ sudo apt-get install libhdf5-serial-dev hdf5-tools libhdf5-dev zlib1g-dev zip libjpeg8-dev liblapack-dev libblas-dev gfortran # Install more Python libraries # ================================= sudo pip3 install -U --no-deps numpy==1.19.4 future==0.18.2 mock==3.0.5 keras_preprocessing==1.1.2 keras_applications==1.0.8 gast==0.4.0 protobuf pybind11 cython pkgconfig # part of Numpy -> store large amount of data in binary format sudo env H5PY_SETUP_REQUIRES=0 pip3 install -U h5py==3.1.0 sudo apt-get install python3-opencv #install media pipe from the source code #======================================= git clone https://github.com/google/mediapipe.git cd mediapipe # install more libraries for the media pipe setup # =============================================== sudo apt-get install -y libopencv-core-dev libopencv-highgui-dev libopencv-calib3d-dev libopencv-features2d-dev libopencv-imgproc-dev libopencv-video-dev # set permissions for the setup script file sudo chmod 744 setup_opencv.sh # run installation from source code : about 30 minutes # ==================================================== ./setup_opencv.sh # last step sudo pip3 install opencv_contrib_python git clone https://github.com/PINTO0309/mediapipe-bin cd mediapipe-bin sudo apt install curl ./v0.8.5/numpy119x/mediapipe-0.8.5_cuda102-cp36-cp36m-linux_aarch64_numpy119x_jetsonnano_L4T32.5.1_download.sh sudo pip3 install numpy-1.19.4-cp36-none-manylinux2014_aarch64.whl sudo pip3 install mediapipe-0.8.5_cuda102-cp36-none-linux_aarch64.whl pip3 install dataclasses #download examples from here : https://github.com/feitgemel/BodyPos/tree/master/MediaPipe/Demo git clone https://github.com/feitgemel/BodyPos.git cd BodyPos cd MediaPipe cd Demo python3 MediaPipe-Holistic.py
You can find a link to the code here : https://ko-fi.com/s/7a72f61abe
Connect :
☕ Buy me a coffee — https://ko-fi.com/eranfeit
🖥️ Email : feitgemel@gmail.com
🤝 Fiverr : https://www.fiverr.com/s/mB3Pbb
Enjoy,
Eran