ラズパイでカメラを使ったプロジェクトに挑戦しようと、画像処理のサンプルコードを動かしてみたら、import cv2の一行目でいきなりエラーが…。『ModuleNotFoundError: No module named 'cv2'』と表示され、先に進めなくて困った経験はありませんか? このエラーは ...
GRAY2BGRにしていたせいでした。サジェストをよく確認せず、2BGRのところだけ見て適当にぽちぽちしてしまったのが敗因。
Welcome to OpenCV Python Beginners Tutorial Part 3. In case if you missed reading the Second tutorial of OpenCV python, then it is recommended to read the second part at OpenCV Python Tutorial Part 2.