From ec99892e4532d96ca70e7d51c4970135320b2ab9 Mon Sep 17 00:00:00 2001 From: Prashant Choudhary <81732236+Mr-Dark-debug@users.noreply.github.com> Date: Wed, 29 May 2024 22:27:58 +0530 Subject: [PATCH] Update facerec_from_webcam.py updated the grammer in line 40,44 and 46 --- examples/facerec_from_webcam.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/examples/facerec_from_webcam.py b/examples/facerec_from_webcam.py index c8dfab2de..f37572951 100644 --- a/examples/facerec_from_webcam.py +++ b/examples/facerec_from_webcam.py @@ -37,11 +37,11 @@ # Convert the image from BGR color (which OpenCV uses) to RGB color (which face_recognition uses) rgb_frame = frame[:, :, ::-1] - # Find all the faces and face enqcodings in the frame of video + # Find all the faces and face encodings in the frame of the video face_locations = face_recognition.face_locations(rgb_frame) face_encodings = face_recognition.face_encodings(rgb_frame, face_locations) - # Loop through each face in this frame of video + # Loop through each face in this frame of the video for (top, right, bottom, left), face_encoding in zip(face_locations, face_encodings): # See if the face is a match for the known face(s) matches = face_recognition.compare_faces(known_face_encodings, face_encoding)