运行深度学习相关代码报错:
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
在运行深度学习相关代码时遇到错误,涉及到QObject的线程迁移问题以及Qt无法加载Qtplatformpluginxcb插件。建议尝试卸载并安装opencv-python-headless包来解决问题。


被折叠的 条评论
为什么被折叠?



