module ‘cv2‘ has no attribute ‘face‘

报错

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

解决方案

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

你可能感兴趣的:(OpenCV,python,开发语言,opencv)