Spaces:
Sleeping
Sleeping
UmairMirza
commited on
Commit
•
bab769d
1
Parent(s):
021bcf8
Update app.py
Browse files
app.py
CHANGED
@@ -38,8 +38,8 @@ def Attandance(video):
|
|
38 |
while True:
|
39 |
#try:
|
40 |
ret, frame = cap.read()
|
41 |
-
faces = cv2.resize(frame, (0, 0), None, 0.25, 0.25)
|
42 |
-
faces = cv2.cvtColor(
|
43 |
|
44 |
facesCurrentFrame = face_recognition.face_locations(faces)
|
45 |
encodesCurrentFrame = face_recognition.face_encodings(faces, facesCurrentFrame)
|
|
|
38 |
while True:
|
39 |
#try:
|
40 |
ret, frame = cap.read()
|
41 |
+
#faces = cv2.resize(frame, (0, 0), None, 0.25, 0.25)
|
42 |
+
faces = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB)
|
43 |
|
44 |
facesCurrentFrame = face_recognition.face_locations(faces)
|
45 |
encodesCurrentFrame = face_recognition.face_encodings(faces, facesCurrentFrame)
|