Creating an environment from opencv-course.yml file.
pip3 install --upgrade pip
pip install wheel numpy scipy matplotlib scikit-image scikit-learn ipython dlib
pip install opencv-contrib-python
Check if it has been installed correctly or not
conda activate opencv-course
python
>>> import cv2
>>> print(cv2.__version__)