Sunday, September 09, 2018

Solution for OPENCV import error

                        It is the error will occured. I use  python3.6.2 
   Solution
             Install pycharm IDE, download in  official website and download a 
PYCHARM-COMMUNITY IDE 
 link="https://www.jetbrains.com/pycharm/download/#section=windows".
          
         After install pycharm IDE then cretate a new project, then set a configuration settings.

       Then download the packages using settings
File--->settings,one dialogbox will appear then select project---->project interpreter.-----> it list  all the  installed packages.

                           Then  if you want to add or install some other packages in right-top "+" symbol click the symbol then search the wanted packages and install it.
                     if our problem is opencv error, click add symbol and search 
opencv--->it list  some packages related opencv then we select 
opencv-python.

                        In this above image shows an opencv-python then tick the checkbox--->it will enable then select the version--> 
Specify version=3.2.0.8.
                       Then click a install package button.
then you import cv2 in python console or idle it will import.

2 comments: