Python (OpenCV)

How to setup

Install

  • Requirement have python3 installed
  • create a dedicated virtual env
$ virtualenv -p python3 py-opencv # this create a folder py-opencv
$ cd py-opencv
$ virtualenv -p python3 py-opencv # this create a folder py-opencv
$ pip3 install --force-reinstall -v "opencv-python==4.5.4"	# will list available version if not found

$ pip3 install opencv-python	  # or get latest version	

Test Install

python3
>>>import cv2
>>>print(cv2.__version__)

see also

Written on March 8, 2023, Last update on March 11, 2023
python opencv