I am following the tutorial of opencv(using python), when i want to show a picture, i meet a problem that says: Gtk-WARNING **: cannot open display:
I have open Xming, when run the pythin code. I can not find what the problem is.
the command I type in are:
(cv) pi@raspberrypi:~/Documents/opencvtutorial $ ls
(cv) pi@raspberrypi:~/Documents/opencvtutorial $ ls
imread.py me.jpg
(cv) pi@raspberrypi:~/Documents/opencvtutorial $ python imread.py
(image:1419): Gtk-WARNING **: cannot open display:
And the python code is:
import numpy as np
import cv2
#load a color image in color
img = cv2.imread('me.jpg',1)
#show an image
cv2.imshow('image',img)