UmairMirza commited on
Commit
e6b4f40
1 Parent(s): a8d7a3d

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -2
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.append(name)
 
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