objc[13122]: Class QMacAutoReleasePoolTracker is implemented in both /usr/local/lib/python3.7/site-packages/cv2/.dylibs/QtCore (0x117007700) and /usr/local/lib/python3.7/site-packages/PyQt5/Qt/lib/QtCore.framework/Versions/5/QtCore (0x12f986030). One of the two will be used. Which one is undefined.
之前程序运行一直正常,今天安装了opencv-contrib-python包后就显示上述问题,意思就是现在有两个QtCore,程序不知道使用哪一个,有没有大神出来指点一下。
我安装opencv-contrib-python的原因是 cv2.face.LBPHFaceRecognizer_create()抛出异常,网上说是需要安装opencv-contrib-python包。
https://blog.csdn.net/char_main/article/details/53420673?utm_source=blogxgwz2
我也遇到了这个问题,我的解决方法是安装opencv-contrib-python的headless版本
先卸载你已经安装了的opencv
pip uninstall opencv-contrib-python
再安装headless版本的opencv
pip install opencv-contrib-python-headless
(速度慢的话使用 清华源:https://pypi.tuna.tsinghua.edu.cn/simple )