错误:
QObject::moveToThread: Current thread (0x55ebcb7d8980) is not the object's thread (0x55ebcbb38fb0).
Cannot move to target thread (0x55ebcb7d8980)
分析
方法一(无效)
网络资料,表示该问题由于缺少QT安装包引起的
安装qt包:
conda install pyqt
Collecting package metadata (current_repodata.json): done
Solving environment: done
==> WARNING: A newer version of conda exists. <==
current version: 4.9.2
latest version: 4.10.1
Please update conda by running
$ conda update -n base -c defaults conda
# All requested packages already installed.
方法二(opencv 版本降级)
当前opencv版本: 4.5.2
查询资料,测试opencv降级解决:
pip uninstall opencv-python
pip install opencv-python==4.1.2.30
问题解决!