1. Python 개발 환경
Thonny Python IDE, Python V3.7.3
2. Python용 OpenCV 모듈 설치
최신 버전을 설치하지 않고 아래 버전을 설치한다.
3점대 Major Version에서는 3.4.6.27보다 최신 버전이 있으나 그 버전을 설치하면 에러가 난다.
undefined symbol: __atomic_fetch_add_8ImportError: /usr/local/lib/python3.7/dist-packages/cv2/cv2.cpython-37m-arm-linux-gnueabihf.so: undefined symbol: __atomic_fetch_add_8
sudo pip3 install opencv-python==3.4.6.27
sudo pip3 install opencv_contrib-python==3.4.6.27
3. 추가 모듈 설치
sudo apt-get update
ImportError: libcblas.so.3: cannot open shared object file: No such file or directory
sudo apt-get install libatlas-base-dev
ImportError: libjasper.so.1: cannot open shared object file: No such file or directory
sudo apt-get install libjasper-dev
ImportError: libQtGui.so.4: cannot open shared object file: No such file or directory
sudo apt-get install libqtgui4
ImportError: libQtTest.so.4: cannot open shared object file: No such file or directory
sudo apt-get install libqt4-test