2017-07-02 122 views
-1

試圖運行一個python腳本,它引發以下錯誤:OpenCV的(功能未實現)

OpenCV Error: Unspecified error (The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script) in cvNamedWindow, file /root/mc-x64-2.7/conda-bld/opencv-3_1482255590695/work/opencv-3.1.0/modules/highgui/src/window.cpp, line 527 
Traceback (most recent call last): 
    File "C1_DrawBboxesOnImages.py", line 90, in <module> 
    cv2.namedWindow("AnnotationWindow") 
cv2.error: /root/mc-x64-2.7/conda-bld/opencv-3_1482255590695/work/opencv-3.1.0/modules/highgui/src/window.cpp:527: error: (-2) The function is not implemented. Rebuild the library with Windows, GTK+ 2.x or Carbon support. If you are on Ubuntu or Debian, install libgtk2.0-dev and pkg-config, then re-run cmake or configure script in function cvNamedWindow 

我已經安裝了libgtk2.0-dev的和pkg配置,但仍然得到同樣的錯誤任何人都可以幫助我。

回答

0

然後重新運行cmake或配置腳本

庫沒有與此內置功能,如果你建的lib自己,你需要重建,因爲它說。如果你下載它作爲一個包,你需要找到一個版本與內置的gtk支持

+0

我這樣做,但仍然得到相同的錯誤:( – samira

+0

您可能需要刪除cmake緩存,所以它拿起新的lib –