debajyoty / Mask-Face-recog-Project

10 stars 6 forks source link

pls solve this error bro #2

Open MANI1805 opened 2 years ago

MANI1805 commented 2 years ago

def find_encodings(images):

for names in images :

for img in images:
    encodings = face_recognition.face_encodings(img)[0]
    encode_list.append(encodings)

return encode_list

encodeListKnown = find_encodings(images)

Traceback (most recent call last): File "E:/Mask-Face-recog-Project-main/Face_recog.py", line 138, in encode_list = find_encodings(images) File "E:/Mask-Face-recog-Project-main/Face_recog.py", line 132, in find_encodings encodings = face_recognition.face_encodings(img)[0] TypeError: face_encodings() missing 1 required positional argument: 'facesCurFrame'