0

I'm getting error on this line, while my opencv-python version is 3.4.6.27 and opencv-contrib-python is 4.1.1.26.

Anyone know what's the problem?

recognizer = cv2.face.LBPHFaceRecognizer_create()
Community
  • 1
  • 1
Chan Xiang
  • 11
  • 2
  • Does this answer your question? [attributeerror: module 'cv2.face' has no attribute 'createlbphfacerecognizer'](https://stackoverflow.com/questions/45655699/attributeerror-module-cv2-face-has-no-attribute-createlbphfacerecognizer) – Dmitry Leiko Sep 07 '20 at 09:31

1 Answers1

-1

it work after i install a lower version of opencv-contrib-python which is same as my opencv-python version.

pip install opencv-contrib-python==3.4.6.27
Chan Xiang
  • 11
  • 2