【发布时间】: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