準備.
sudo apt update pip install --upgrade pip setuptools wheel sudo apt-get install -y libhdf5-dev libhdf5-serial-dev python3-pyqt5 libatlas-base-dev libjasper-dev
安裝可以選擇
pip install opencv-python
或
pip install opencv-contrib-python
亦可指定版本
pip install opencv-contrib-python==4.5.3.56