简体   繁体   English

模块 'cv2' 没有属性 'face'

[英]module 'cv2' has no attribute 'face'

I try to make face recognition using opencv.我尝试使用 opencv 进行人脸识别。 But iam facing some attribute error.但我面临一些属性错误。 I also installed pip install opencv-contrib-python library and reinstalled python.org software but still facing that error我还安装了 pip install opencv-contrib-python 库并重新安装了 python.org 软件,但仍然面临该错误

The code and output screen代码和output屏

I fix this problem with using this commands.我用这个命令解决了这个问题。

pip uninstall opencv-contrib-python

pip install opencv-contrib-python==4.4.0.46

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM