It seems to be an error yes, but I'm not able to find it
line 196, in processKnownPeopleImages
known_encodings.append(encs[0])
IndexError: list index out of range
I copied and pasted your code and I created the folders you indicated. I added photos to the dateset and peoples
To test:
apparently if I use
image = face_recognition.load_image_file(imgPath)
rather than
image=cv2.resize(image,(0,0),fx=0.2,fy=0.2,interpolation=cv2.INTER_LINEAR)
It works up to a certain point in the code. And it crashes again at:
line 263, in processDatasetImages
cv2.rectangle(image,(left,top),(right,bottom),color=(255,0,0),thickness=2)
UnboundLocalError: local variable 'left' referenced before assignment