Ask Your Question

Revision history [back]

debian 8 (jessie) opencv 3.2 python3.4

Hi please note: that i have managed to get this same code to run with python2.7 and 3.6 (anaconda), but for some reason it does not run with python3.4:

import cv2 
img = cv2.imread('./images/old.wood.jpg',1)
cv2.imshow('Input image', img)
cv2.waitKey(0)
cv2.destroyAllWindows()

This is the error I get:

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 "first.program.py", line 4, in <module>
cv2.imshow('Input image', img)
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

i do have libgtk2.0-dev installed:

sudo aptitude search libgtk2.0-dev and pkg-config:
i   libgtk2.0-dev                 - development files for the GTK+ library
p   libgtk2.0-dev:i386            - development files for the GTK+ library
i   pkg-config                    - manage compile and link flags for libr
p   pkg-config:i386               - manage compile and link flags for libr

How would i run cmake to include