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改接口了 现在用

扫描二维码关注公众号,回复: 2566755 查看本文章
cv2.face.EigenFaceRecognizer_create()
来获取对象

猜你喜欢

转载自www.cnblogs.com/Lin-Yi/p/9427030.html