问题:
AttributeError: 'module' object has no attribute 'face_recognition_model_v1'
解决:
使用dlib19.7.0版本
C:\ProgramData\Anaconda2\python.exe C:/girl-face-rec/girl-face-rec.py shape_predictor_68_face_landmarks.dat dlib_face_recognition_resnet_model_v1.dat C:/girl-face-rec/candidate-faecs test1.jpg
shape_predictor_68_face_landmarks.datTraceback (most recent call last):
File "C:/girl-face-rec/girl-face-rec.py", line 31, in <module>
facerec = dlib.face_recognition_model_v1(face_rec_model_path)
AttributeError: 'module' object has no attribute 'face_recognition_model_v1'
Process finished with exit code 1