python openCV installation (memo)

version

・ Mac (Catalina) ・ Python3 (3.7.5) ・ Opencv4 (4.1.2)

reference

https://techblog.gmo-ap.jp/2016/11/28/ruby%E3%81%A8opencv%E3%81%A7%E5%A7%8B%E3%82%81%E3%82%8B%E7%94%BB%E5%83%8F%E5%87%A6%E7%90%86/

https://qiita.com/cfiken/items/44b364b951b605f1e919?fbclid=IwAR0k4LB0t9ik0mSP3wWo2Ih3flLl1y5RDVLGhOLf1sPJeXIr0kzJhfpTUYQ

Contour extraction https://qiita.com/y_kani/items/c9861b1f3517c32491d6

Installation and operation check

brew update
brew install -v cmake
brew tap homebrew/science
brew install opencv
export PYTHONPATH="/usr/local/lib/python3.7/site-packages/:$PYTHONPATH"
python3
>>> import cv2
>>> cv2.__version__

Script execution

python3 <file> name

Recommended Posts

python openCV installation (memo)
Python OpenCV tutorial memo
Python memo
python memo
Python installation
Python memo
OpenCV3 installation for Python3 @macOS
python memo
Python memo
Python installation
Python memo
Python memo
Python memo Anaconda installation (Mac only)
[Python] Memo dictionary
python beginner memo (9.2-10)
Python2.7 + CentOS7 + OpenCV3
python beginner memo (9.1)
OpenCV3 installation battle
Python installation (Windows)
★ Memo ★ Python Iroha
[Python] EDA memo
Python 3 operator memo
OpenCV Samples (Python)
[Note] openCV + python
[My memo] python
Python3 metaclass memo
[Python] Basemap memo
Python beginner memo (2)
Python installation 2020 (macOS)
Python3.4 installation notes
[Python] Numpy memo
My python environment memo
Python module (Python learning memo ④)
Python basic course (2 Python installation)
Reinforcement learning 1 Python installation
Visualization memo by Python
Binarization with OpenCV / Python
django-debug-toolbar installation procedure memo
Python installation method Windows
Python test package memo
[Python] Memo about functions
Summary about Python3 + OpenCV3
python regular expression memo
Binary search (python2.7) memo
Introduction to OpenCV (python)-(2)
Installation of Python 3.3 rc1
Python 2.7 installation (yum) (CentOS 6.8)
[My memo] python -v / python -V
Python3 List / dictionary memo
[Memo] Python3 list sort
Python Tips (my memo)
[Python] Memo about errors
OpenCV3 Python API list
DynamoDB Script Memo (Python)
Python basic memo --Part 2
python recipe book Memo
Basic Python command memo
Python, OpenCV camera capture
Python basic grammar memo
TensorFlow API memo (Python)
OpenCV basic code (python)