Was sagt mir diese Fehlermeldung?
Verfasst: Freitag 31. August 2018, 08:35
[GCC 6.3.0 20170124] on linux
Type "copyright", "credits" or "license()" for more information.
>>> import numpy as np
>>> import cv2
>>> cap = cv2.VideoCapture(0)
>>> cap.isOpened()
True
>>> while (True):
ret, frame = cap.read()
gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
cv2.imshow('frame',gray)
if cv2.waitKey(1) & 0xFF == ord('q'):
break
Traceback (most recent call last):
File "<pyshell#10>", line 4, in <module>
cv2.imshow('frame',gray)
cv2.error: /home/pi/opencv-3.2.0/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
Was sagt mir diese Fehlermeldung? Es gibt den Befehl cv2.imshow('frame',gray) nicht. Aber wie löse ich das Problem?
Danke für eure Hilfe!
Type "copyright", "credits" or "license()" for more information.
>>> import numpy as np
>>> import cv2
>>> cap = cv2.VideoCapture(0)
>>> cap.isOpened()
True
>>> while (True):
ret, frame = cap.read()
gray = cv2.cvtColor(frame, cv2.COLOR_BGR2GRAY)
cv2.imshow('frame',gray)
if cv2.waitKey(1) & 0xFF == ord('q'):
break
Traceback (most recent call last):
File "<pyshell#10>", line 4, in <module>
cv2.imshow('frame',gray)
cv2.error: /home/pi/opencv-3.2.0/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
Was sagt mir diese Fehlermeldung? Es gibt den Befehl cv2.imshow('frame',gray) nicht. Aber wie löse ich das Problem?
Danke für eure Hilfe!