【问题标题】:getting **QObject::moveToThread:** issue while I am running face detection python script using opencv-python在我使用 opencv-python 运行人脸检测 python 脚本时遇到 **QObject::moveToThread:** 问题
【发布时间】:2021-09-16 02:22:11
【问题描述】:

我已经使用 opencv-python 制作了一个用于人脸检测的 python 脚本,并且我正在使用 OpenCV 中基于深度学习的人脸检测器这种人脸检测方法。

当我尝试运行脚本时,它运行良好。除了,对于循环的每次迭代,我都会在终端中遇到这个问题。

QObject::moveToThread: Current thread (0x557189d700e0) is not the object's thread (0x55718a9b9530).
Cannot move to target thread (0x557189d700e0)

QObject::moveToThread: Current thread (0x557189d700e0) is not the object's thread (0x55718a9b9530).
Cannot move to target thread (0x557189d700e0)

QObject::moveToThread: Current thread (0x557189d700e0) is not the object's thread (0x55718a9b9530).
Cannot move to target thread (0x557189d700e0)

我无法找到现实中正在发生的事情。我使用了 StackOverflow 的不同解决方案,但在我的情况下,它们实际上都不起作用。

我正在使用这个版本的opencv和python。

cv2.__version__ --> 4.5.2
Python --> 3.8.3

如果有人知道这个问题的解决方案,请承认我。这对我真的很有帮助。

【问题讨论】:

    标签: python opencv computer-vision cv2


    【解决方案1】:

    我用过这种方式,就我而言,它奏效了。

    解决方案:

    OpenCV 降级

    pip 卸载 opencv-python

    pip install opencv-python==4.1.2.30

    Got solution from this article

    【讨论】:

      猜你喜欢
      • 2014-06-28
      • 1970-01-01
      • 2016-03-13
      • 1970-01-01
      • 2015-12-18
      • 1970-01-01
      • 2016-02-15
      • 2018-09-05
      • 2018-06-30
      相关资源
      最近更新 更多