安装pyqt5,运行yoloV5开源界面程序报错QObject::moveToThread: Current thread (0x5566f598cec0) is not the object‘s t

本文记录了解决OpenCV与PyQt版本冲突的问题过程。通过卸载OpenCV并将其版本降至opencv-python==4.2.0.34,成功避免了QObject::moveToThread错误及qt.qpa.plugin无法加载Qtplatform插件的问题。

摘要生成于 C知道 ,由 DeepSeek-R1 满血版支持, 前往体验 >

QObject::moveToThread: Current thread (0x5566f598cec0) is not the object's t

qt.qpa.plugin: Could not load the Qt platform plugin “xcb“ in

网上查了很多,一般方法和i解决方案:QObject::moveToThread: Current thread (***) is not the object‘s thread_江南蜡笔小新的博客-优快云博客三照着弄了一下,不行

发现我比文章多了一点报错

QObject::moveToThread: Current thread (0x5566f598cec0) is not the object's t

经查是opencv和pyqt冲突,卸载opencv🔛测试pyqt可用,之后降级 opencv-python ==4.2.0.34即可解决。

总结:不要安装最新版opencv,降级!!---------------时间2022.3.29
 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值