初心者です、ラズパイにて、下記Opencvのプログラミングを、実行しようとしましたが、エラーが出てしまいました。内容は下記参照。アドバイスいただけたら助かります。
opencv 3.4.17.61
○実行内容
import cv2
VideoCapture オブジェクトを取得します
capture = cv2.VideoCapture(0)
while(True):
ret, frame = capture.read()
cv2.imshow('frame',frame)
if cv2.waitKey(1) &0xFF == ord('q'):
break
capture.release()
cv2.destroyAllWindows()
○エラー内容
Traceback (most recent call last):
File "/home/pi/Desktop/111.py", line 8, in <module>cv2.imshow('frame',frame)
cv2.error: OpenCV(3.4.17) /tmp/pip-install-27kq8871/opencv-contrib-python_2da9e28665d54f68be7be2f44f368826/opencv/modules/highgui/src/window.cpp:659: error: (-2: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 function 'cvShowImage'

回答1件
あなたの回答
tips
プレビュー