2016-11-10 15 views
-1

私はubuntuにopencvをインストールしました。私は関数imshow()を使用しようとしていました。エラーが発生しました。下記をご覧ください。私はubuntuにopencvをインストールしました。私は関数imshow()を使用しようとしていました。それはエラーを与えています

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 cvShowImage, file /io/opencv/modules/highgui/src/window.cpp, line 545

error Traceback (most recent call last) in() ----> 1 cv2.imshow('mask',img)

error: /io/opencv/modules/highgui/src/window.cpp:545: 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 cvShowImage

+0

cmakeの中で、このオプションを使用しようとすることができます – Miki

+0

私はalredy rerun cmakeがまだ動作していない –

答えて

0

あなたが再度実行cmakeの、libgtk2.0-devのとPKG-config設定をインストールし、UbuntuのやDebian上にあるかscript_を設定_if WITH_GTK=ON

OpenCV needs to be compiled with GTK support (WITH_GTK=ON).

関連する問題

 関連する問題