File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -56,7 +56,7 @@ known_image = face_recognition.load_image_file("biden.jpg")
56
56
unknown_image = face_recognition.load_image_file(" unknown.jpg" )
57
57
58
58
biden_encoding = face_recognition.face_encodings(known_image)[0 ]
59
- unknown_encoding = face_recognition.face_encodings(unknown_image)
59
+ unknown_encoding = face_recognition.face_encodings(unknown_image)[ 0 ]
60
60
61
61
results = face_recognition.compare_faces([biden_encoding], unknown_encoding)
62
62
```
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ Recognize who appears in each photo.
70
70
unknown_image = face_recognition.load_image_file(" unknown.jpg" )
71
71
72
72
biden_encoding = face_recognition.face_encodings(known_image)[0 ]
73
- unknown_encoding = face_recognition.face_encodings(unknown_image)
73
+ unknown_encoding = face_recognition.face_encodings(unknown_image)[ 0 ]
74
74
75
75
results = face_recognition.compare_faces([biden_encoding], unknown_encoding)
76
76
You can’t perform that action at this time.
0 commit comments