ubuntu python opencv3 cv2.cv2 has no attribute 'face' 'cv2.face' has no attribute 'createEigenFaceRecognizer',,学习opencv过程


学习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'

评论关闭