2012-08-06 64 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