OpenCV 2.3 Python Configuration in Eclipse

Hi, I am just starting to use python and OpenCV, my IDE is eclipse.

Now I installed NumPy and SciPy and OpenCV 2.3 and Python 2.7

and I think that I am setting up all the parameters of the path and the interpreter (maybe I can’t),

there is a problem:

this is the screen shot of my IDE, all the cv-related are marked wrong in the editor but actually when I run it, it turns out to be fine

so my question is how to make it work fine, like in other languages ​​like Java?

thanks

+4
source share
1 answer

In Eclipse, go to

Window->Preferences->PyDev->Interpreters->Python Interpreter=> [Forced Builtins] (tab)

Add cv (or cv2) and apply - everything will be fine.

+7
source

All Articles