问题
更新代码后在ubuntu的docker中运行,然后报错如下
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/usr/local/lib/python3.6/dist-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.
--------------------------------------
C++ Traceback (most recent call last):
--------------------------------------
No stack trace in paddle, may be caused by external reasons.
----------------------
Error Message Summary:
----------------------
FatalError: `Process abort signal` is detected by the operating system.
[TimeInfo: *** Aborted at 1663125653 (unix time) try "date -d @1663125653" if you are using GNU date ***]
[SignalInfo: *** SIGABRT (@0x7) received by PID 7 (TID 0x7fc16b8fe740) from PID 7 ***]
问题原因:
在代码中添加了cv2.imshow()代码,导致此报错,删除imshow方法后恢复正常