运行深度学习相关代码报错:
QObject::moveToThread: Current thread (0x132c1570) is not the object's thread (0x13a9f610).
Cannot move to target thread (0x132c1570)
qt.qpa.plugin: Could not load the Qt platform plugin "xcb" in "/home/lucinda/anaconda3/envs/cmp/lib/python3.11/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.
安装opencv-python-headless包解决:
pip install opencv-python-headless