Spaces:
Sleeping
Sleeping
Commit
·
a50c577
1
Parent(s):
d3de5ea
Update app.py
Browse files
app.py
CHANGED
@@ -38,10 +38,11 @@ def Attandance(text,video,image):
|
|
38 |
index=1
|
39 |
while True:
|
40 |
try:
|
41 |
-
if framecount
|
42 |
-
|
43 |
else:
|
44 |
framecount=framecount+1
|
|
|
45 |
ret, frame = cap.read()
|
46 |
#faces = cv2.resize(frame, (0, 0), None, 0.25, 0.25)
|
47 |
faces = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB)
|
|
|
38 |
index=1
|
39 |
while True:
|
40 |
try:
|
41 |
+
if framecount%20==0:
|
42 |
+
pass
|
43 |
else:
|
44 |
framecount=framecount+1
|
45 |
+
continue
|
46 |
ret, frame = cap.read()
|
47 |
#faces = cv2.resize(frame, (0, 0), None, 0.25, 0.25)
|
48 |
faces = cv2.cvtColor(frame, cv2.COLOR_BGR2RGB)
|