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

 


免责声明!

本站转载的文章为个人学习借鉴使用,本站对版权不负任何法律责任。如果侵犯了您的隐私权益,请联系本站邮箱yoyou2525@163.com删除。



 
粤ICP备18138465号  © 2018-2025 CODEPRJ.COM