Windows directly puts Cv2.pyd under Anaconda2 anaconda2\lib\site-packages\.
But Anaconda3 reference:
windows+python3.6.0 (ANACONDA3) +opencv3.2.0 installation configuration
http://blog.csdn.net/lwplwf/article/ details/61616493
OpenCV Download
http://www.lfd.uci.edu/~gohlke/pythonlibs/
This configuration, Because Python is installed in the 3.6.0 version, the corresponding selection, the installation of OPENCV_PYTHON‑3.2.0‑CP36‑CP36M‑WIN32.WHL this. After downloading, copy the files to the Anaconda3\lib\site-packages folder
-Press Win+r enter CMD to open the Command Prompt window and go to the Anaconda3\lib\site-packages folder
- Execute command pip install OPENCV_PYTHON‑3.2.0‑CP36‑CP36M‑WIN32.WHL
-test, input python into Python, enter import cv2 carriage return, do not complain to indicate that the installation configuration succeeded
cvimage = Cv2.imread ("image.png") #using OpenCV 2 type (cvimage) Out:numpy.ndarray #dtype is UIn T8 pltimage = Plt.imread ("image.png") #using matplotlib type (pltimage) Out:numpy.ndarray #dtype is float plt.imshow ( Cvimage) # works great Cv2.imshow (cvimage) typeerror:required argument ' Mat ' (pos 2) not Found cvimage = Cv2.imread (' Image.png ') followed by Cv2.imshow (' Image ', cvimage)