树莓派上在opencv3.2.0中出现AttributeError: module 'cv2.face' has no attribute 'recognizer = cv2.face.LBPHFaceRecognizer_create' 我的python版本为3.7.3
Traceback (most recent call last):
File "/home/pi/Desktop/mycodetest/opencv/09训练数据.py", line 45, in
recognizer=cv2.face.LBPHFaceRecognizer_create()
AttributeError: module 'cv2.face' has no attribute 'LBPHFaceRecognizer_create'
你有这个嘛?opencv-contrib-python
没有就
pip install opencv-contrib-python
pip install opencv-contrib-python