Skip to content

Commit

Permalink
Fixed a mistake
Browse files Browse the repository at this point in the history
  • Loading branch information
anandbaburajan authored and ageitgey committed Jun 30, 2019
1 parent ab190f6 commit 6ede62f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/face_recognition_svm.py
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@
for person_img in pix:
# Get the face encodings for the face in each image file
face = face_recognition.load_image_file("/train_dir/" + person + "/" + person_img)
face_enc = face_recognition.face_encodings(pic)[0]
face_enc = face_recognition.face_encodings(face)[0]

# Add face encoding for current image with corresponding label (name) to the training data
encodings.append(face_enc)
Expand Down

0 comments on commit 6ede62f

Please sign in to comment.