【发布时间】:2018-07-27 16:11:05
【问题描述】:
- 树莓派3型号B
- OpenCV 3.0.0
- python 3.6.x
无法通过 openCV 显示图像。例如)imshow() 这是我的源代码。
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:
出现在这一行。
请告诉我解决方案!
【问题讨论】:
标签: python-3.x opencv raspberry-pi