Try to use the latest Raspbian image, execute the following command to update the system library:

sudo apt update
sudo apt install -y libatlas-base-dev libjasper-dev libqtgui4 python3-pyqt5 libqt4-test libhdf5-dev

pip3 installs opencv4, only certain versions of opencv can be installed

sudo pip3 install opencv-contrib-python==4.1.0.25
# 或者
sudo pip3 install opencv-contrib-python==4.4.0.46

test

python3 -c "import cv2;print(cv2.__version__)"

RobinTang
3.9k 声望37 粉丝