module ‘cv2‘ has no attribute ‘face‘

报错

OpenCV4使用cv2.face报错:module 'cv2' has no attribute 'face'

解决方案

终端输入:pip install opencv-contrib-python,然后重启一下环境即可。

猜你喜欢

转载自blog.csdn.net/DaydreamHippo/article/details/128273751