私は私が-D BUILD_NEW_PYTHON_SUPPORT = ON ONPythonのOpenCVの関数imshowエラー
cmakeの-D CMAKE_BUILD_TYPE = RELEASE -D CMAKE_INSTALL_PREFIX =は/ usr/local -D WITH_TBBを=構築 ..いくつかの裁判にしてみてください-D WITH_V4L = ON -D INSTALL_C_EXAMPLES = ON -D INSTALL_PYTHON_EXAMPLES = -D WITH_QT = ON -D WITH_GTK = -D WITH_OPENGL = ON ON ON -D BUILD_EXAMPLES = ..
と私のpythonにしようとした場合ON:
import cv2
print(cv2。 バージョン)
3.2.0
私の完全なコード: (https://www.solarianprogrammer.com/2016/09/17/install-opencv-3-with-python-3-on-windows/)
import cv2
image = cv2.imread("/home/reigin/Pictures/games.jpg")
gray_image = cv2.cvtColor(image, cv2.COLOR_BGR2GRAY)
cv2.imshow("Over the Clouds", image)
cv2.imshow("Over the Clouds - gray", gray_image)
cv2.waitKey(0)
cv2.destroyAllWindows()
私はこの上のエラーを得た:私は私のdpk-を設定
cv2.imshow("Over the Clouds", image)
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 583
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
cv2.error: /io/opencv/modules/highgui/src/window.cpp:583: 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
configure:
[email protected]:~$ echo $PKG_CONFIG_PATH
/usr/local/lib/pkgconfig:/usr/lib/x86_64-linux-gnu/pkgconfig:/usr/lib/pkgconfig
私は私のイメージはありません任意の問題を示し以外行う場合..
は助けることはできません。
opencv 3.0 python imshow error
http://vinllen.com/solve-error-libgtk2-0-dev-and-pkg-config-when-install-opencv/
http://answers.opencv.org/question/57945/opencv-gui-with-gtk-2-solved/
https://askubuntu.com/questions/210210/pkg-config-path-environment-variable
を0ご注意いただきありがとうございます。
多分それは助けです。 http://stackoverflow.com/questions/13151514/matplotlib-plot-window-wont-appear –