Search code examples
pythoneclipseopencvpydev

Configuration of OpenCV 2.3 of Python in Eclipse


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

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

and I think I configure all the path and interpreter options (may be may not),

here comes the 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 as in other languages as Java?

Thanks


Solution

  • In Eclipse go to

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

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