use following sudo commands
sudo apt-get install libhdf5-dev libhdf5-serial-dev libhdf5-103
sudo apt-get install libqtgui4 libqtwebkit4 libqt4-test
sudo apt-get install libatlas-base-dev
sudo apt-get install libjasper-dev
wget bootstrap.pypa.io/get-pip.py
sudo python3 get-pip.py
sudo pip3 install opencv-contrib-python
**Edit : While importing opencv if you get error like "ImportError: /usr/local/lib/python3.7/dist-packages/cv2/cv2.cpython-37m-arm-linux-gnueabihf.so: undefined symbol: __atomic_fetch_add_8" ,then use
"sudo pip3 install opencv-contrib-python==3.4.6.27" - this command as the latest version of openCV doesn't work with RPi.
After this if you get "ImportError: libhdf5_serial.so.103: cannot open shared object file: No such file or directory" - this error then use the below command:
sudo apt-get install python3-h5py
Негізгі бет Ғылым және технология Supper Easiest Way to install OpenCV in Raspberry pi 3,3b+,4,4b
Пікірлер: 1