ubuntu python opencv3 cv2.cv2 has no attribute 'face' 'cv2.face' has no attribute 'createEigenFaceRecognizer'

时间:2018-08-05 21:34:14   收藏:0   阅读:1669

学习opencv过程中遇到错误:

1  cv2.cv2 has no attribute ‘face‘

 

经过一顿查,,,各种走弯路 最后一下子就解决了:

pip install opencv-python

pip install opencv0-contrib-python

这俩装完了就行了

 

 2  ‘cv2.face‘ has no attribute ‘createEigenFaceRecognizer‘

这个错误 查完了人家让你看文档,很无聊,

opencv改接口了 现在用

cv2.face.EigenFaceRecognizer_create()
来获取对象

 

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!