Yoleen的博客

为学日益,为道日损。

0%

出现原因

在ubuntu服务器上运行cv.imshow()方法时就会报以下错误

1
2
3
4
5
qt.qpa.xcb: could not connect to display
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/root/anaconda3/lib/python3.8/site-packages/cv2/qt/plugins" even though it was found.
This application failed to start because no Qt platform plugin could be initialized. Reinstalling the application may fix this problem.

Available platform plugins are: xcb, eglfs, minimal, minimalegl, offscreen, vnc
阅读全文 »