Opencv3 can be easily installed in windows by following the steps discussed below
- Windows version 10
- Anaconda distribution
Opencv3 in anaconda is supported by python 3.5+. You can use the following steps to install opencv in windows
- You need to start anaconda prompt in admninistrator mode (just search for anaconda prompt in search bar then left click and select "Run as administrator" option).
- Now install opencv3 by typing the following lines of code in the anaconda prompt:
conda install -c conda-forge opencv
- After the installation is done, check if everything is working fine by starting an ipython shell by typing the following in the anaconda prompt
ipython
- Once the shell starts type:
import cv2
import numpy
import pandas
import matplotlib
If this code runs without error, then congratulations you have successfully installed opencv3 on a windows machine. If you face any issues please comment below. I will be actively maintaining this gist
cv2 needs a c/c++ compiler. Check what versions of windows c compiler you have.