python-opencv报错:QObject::moveToThread: Current thread

报错:
QObject::moveToThread: Current thread (0x55ab2a343120) is not the object’s thread (0x55ab2a4f8820).

Cannot move to target thread (0x55ab2a343120)
尝试了一些方法:
卸载pyqt5
用​​ ​conda install pyqt​​ 安装 无效

最终的解决方案:
降低opencv的版本,如果安装了 opencv-contrib 也要相应的降低版本

这里我一开始的opencv-python == 4.4.0.46

后来修改成 opencv-python==4.1.1.26 完美解决
相应代码

如果有用的话请喜欢,年轻人应该谈谈武术!

[En]

Please like it if it is useful, young people should talk about martial arts!

Original: https://blog.51cto.com/u_15279692/5520738
Author: AI算法与图像处理
Title: python-opencv报错:QObject::moveToThread: Current thread

原创文章受到原创版权保护。转载请注明出处:https://www.johngo689.com/504716/

转载文章受原作者版权保护。转载请注明原作者出处!

(0)

大家都在看

亲爱的 Coder【最近整理,可免费获取】👉 最新必读书单  | 👏 面试题下载  | 🌎 免费的AI知识星球