UmairMirza commited on
Commit
24e70f6
1 Parent(s): 4bd3008

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -43,7 +43,7 @@ def Attandance(text,video,image):
43
  if framecount>totalframescount:
44
  break
45
  elif framecount%100==0:
46
- framecount=framecount+1
47
  ret, frame = cap.read()
48
  #faces = cv2.resize(frame, (0, 0), None, 0.25, 0.25)
49
  faces = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB)
@@ -61,6 +61,7 @@ def Attandance(text,video,image):
61
  name = personNames[matchIndex].upper()
62
  if names.count(name) == 0:
63
  names.append(name)
 
64
 
65
  cv2.waitKey(1)
66
  except:
 
43
  if framecount>totalframescount:
44
  break
45
  elif framecount%100==0:
46
+
47
  ret, frame = cap.read()
48
  #faces = cv2.resize(frame, (0, 0), None, 0.25, 0.25)
49
  faces = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB)
 
61
  name = personNames[matchIndex].upper()
62
  if names.count(name) == 0:
63
  names.append(name)
64
+ framecount=framecount+1
65
 
66
  cv2.waitKey(1)
67
  except: