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