Gtk-WARNING **: cannot open display: raspberry pi opencv

  • Raspberry Pi3 ModelB
  • OpenCV 3.0.0
  • python 3.6.x

Nicht zeigen kann, Bild via openCV. ex) imshow()
hier ist mein source-code.

def show_captured_image(path):
    img = cv2.imread(path, 1)
    resize_img = cv2.resize(img, (480, 320))
    xy_axis = cv2.flip(resize_img, -1)
    cv2.imshow("img", xy_axis)
    cv2.moveWindow("img", 0, 0)
    cv2.waitKey(0)

(img:2984): Gtk-WARNING **: cannot open display:
tritt in dieser Zeile.

bitte sagen Sie mir die Lösung!

Schreibe einen Kommentar