Hid*_*oka 3 opencv python-3.x raspberry-pi
无法通过 openCV 显示图像。ex) 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)
Run Code Online (Sandbox Code Playgroud)
(img:2984): Gtk-WARNING **: cannot open display:
发生在这一行。
请告诉我解决方法!
| 归档时间: |
|
| 查看次数: |
12218 次 |
| 最近记录: |