首页 > 编程语言 > 详细

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

时间:2018-08-05 20:45:55      阅读:412      评论:0      收藏:0      [点我收藏+]

学习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()
来获取对象

 

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

原文:https://www.cnblogs.com/Lin-Yi/p/9427030.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!