Tutorial: Installation for Py OpenCV
Last updated
Was this helpful?
Last updated
Was this helpful?
(updated 2022.4)
This installation guide is for programming Python OpenCV. Make sure you install the correct software version as instructed.
For DLIP Lectures:
Python >3.9
Anaconda for Python >3.9
OpenCV 4.x
Anaconda : Python and libraries package installer.
Follow:
Python 3.9 (2022-1)
Python is already installed by installing Anaconda. But, we will make a virtual environment for a specific Python version.
Open Anaconda Prompt(admin mode)
First, update conda and pip
Then, Create virtual environment for Python 3.9.
Name the $ENV as py39
. If you are in base, enter conda activate py39
After installation, activate the newly created environment
The image file must be in the same folder as the source file
Create a new source file as TU_OpenCVtest.py
Run python code and submit the final output image
Run python code and submit the final output image
Follow:
Follow:
Follow:
First, download the test image file: