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

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

 

posted @ 2018-08-05 20:26  稀里糊涂林老冷  阅读(2538)  评论(0编辑  收藏  举报