使用服务器出现error:cannot connect to X server

清疚 2023-02-23 08:20 111阅读 0赞

1.问题

使用服务器时出现error:cannot connect to X server

2.分析

原因是,服务器没有图形界面,所以没办法使用cv.imshow等操作。

3.解决

注释:

  1. # cv2.namedWindow("YOLO4_Deep_SORT", 0);
  2. # cv2.resizeWindow('YOLO4_Deep_SORT', 1024, 768);
  3. # cv2.imshow('YOLO4_Deep_SORT', frame)

发表评论

表情:
评论列表 (有 0 条评论,111人围观)

还没有评论,来说两句吧...

相关阅读