Spaces:
Running
Running
Commit
•
e6b4f40
1
Parent(s):
a8d7a3d
Update app.py
Browse files
app.py
CHANGED
@@ -51,8 +51,9 @@ def Attandance(video):
|
|
51 |
matchIndex = np.argmin(faceDis)
|
52 |
|
53 |
if matches[matchIndex]:
|
54 |
-
name = personNames[matchIndex].upper()
|
55 |
-
names.
|
|
|
56 |
|
57 |
cv2.waitKey(1)
|
58 |
|
|
|
51 |
matchIndex = np.argmin(faceDis)
|
52 |
|
53 |
if matches[matchIndex]:
|
54 |
+
name = personNames[matchIndex].upper()
|
55 |
+
if names.count(name) == 0:
|
56 |
+
names.append(name)
|
57 |
|
58 |
cv2.waitKey(1)
|
59 |
|