admin管理员组

文章数量:1612097

ERROR:QObject::moveToThread

  • 参考
  • 问题描述
  • 原因
  • 解决方法

参考

QObject::moveToThread: Current thread (0x55c07be39a60) is not the object’s thread (0x55c07c164490). Cannot move to target thread (0x55c07be39a60)

问题描述

  1. 运行环境
  • ubuntu 18.04.5
  • conda
  • python 3.6.12
  • opencv-contrib-python 4.5.1.48
  • pyqt 5.9.2
  1. 使用cv2.waitKey和cv2.imshow时出现如题的报错

原因

opencv内pyqt版本与linux distro中冲突导致

解决方法

降级opencv版本

pip install opencv-contrib-python==4.1.0.25

本文标签: CurrentmoveToThreadQObjectobjectxxxxxxx