2012-08-06 70 views
4

嗨,我刚刚开始使用python和OpenCV,我的IDE是eclipse。在Eclipse中配置Python的OpenCV 2.3

现在我已经安装了与NumPy和SciPy的和OpenCV 2.3和Python 2.7

,我想我配置所有的路径和解释器选项(可能是可能不是),

这里来的问题:

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

所以我的问题是如何使它正常工作在其他语言如Java?

感谢

回答

7

在Eclipse中去

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

添加CV(或CV2)和应用 - 一切都会好起来的。

+0

我加了cv2(不是cv [for my version]),现在一切正常。 – JxAxMxIxN 2016-03-27 09:34:01

+0

需要重启eclipse,但现在工作正常 - 谢谢。 – ppasler 2016-12-07 07:17:50

+0

添加之前是否需要安装cv?我是一个总新手请帮忙。 @Coderzelf – iPeter 2017-06-10 07:47:40