743815e2bf5cb89ab4984f1d63a82aaa52584a6d,examples/facerec_from_webcam.py,,,#,12
Before Change
match = face_recognition.compare_faces([obama_face_encoding], face_encoding)
name = "Unknown"
if match[0]:
name = "Barack"
// Draw a box around the face
cv2.rectangle(frame, (left, top), (right, bottom), (0, 0, 255), 2)
// Draw a label with a name below the face
cv2.rectangle(frame, (left, bottom - 35), (right, bottom), (0, 0, 255), cv2.FILLED)
After Change
// If a match was found in known_face_encodings, just use the first one.
if True in matches:
first_match_index = matches.index(True)
name = known_face_names[first_match_index]
// Draw a box around the face
cv2.rectangle(frame, (left, top), (right, bottom), (0, 0, 255), 2)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 6
Instances Project Name: ageitgey/face_recognition
Commit Name: 743815e2bf5cb89ab4984f1d63a82aaa52584a6d
Time: 2018-01-26
Author: ageitgey@gmail.com
File Name: examples/facerec_from_webcam.py
Class Name:
Method Name:
Project Name: facebookresearch/pytext
Commit Name: 900b9a7f2884aaf419e62508be7497b0ad3e1f62
Time: 2021-02-24
Author: debo@fb.com
File Name: pytext/metric_reporters/squad_metric_reporter.py
Class Name: SquadMetricReporter
Method Name: _unnumberize
Project Name: ageitgey/face_recognition
Commit Name: 743815e2bf5cb89ab4984f1d63a82aaa52584a6d
Time: 2018-01-26
Author: ageitgey@gmail.com
File Name: examples/facerec_from_webcam_faster.py
Class Name:
Method Name: