Tuesday, May 22, 2018

Installing Opencv 3.4.1 in Anaconda Python 2.7.14 in WINDOWS 10

1. Go to opencv website and download the latest package:

                   https://opencv.org/opencv-3-4-1.html

2. Extract the folder to C:\Opencv_3_4_1

3. Find cv2.pyd (Python DLL ) in : "C:\Opencv3_4_1\opencv\build\python\2.7\x64" and copy it.

4. Open Anconda folder and go to site-packages and  paste the cv2.pyd :
                                             
                                E:\MachineLearning-Conda\Lib\site-packages
                             (and/or)   E:\MachineLearning-Conda\envs\opencv\Lib\site-packages

5. Open Environment variable editor: system properties -----> Environment Variables

   In user Variable:

               Variable Name : %OPENCV_DIR%
                Variable Value : C:\Opencv3_4_1\opencv\build\x64\vc14

  In System Variable: Add
         
                path : %OPENCV_DIR%\bin

  step 5 has to be done to make use of ffmpeg.

Check:

External Link:

https://stackoverflow.com/questions/23119413/how-do-i-install-python-opencv-through-conda

No comments:

Post a Comment