Spaces:
Sleeping
Sleeping
Commit
·
a81583b
1
Parent(s):
b1a3048
Update app.py
Browse files
app.py
CHANGED
@@ -19,8 +19,6 @@ def faceEncodings(images):
|
|
19 |
def Attandance(text,video,image):
|
20 |
data=cv2.VideoCapture(video)
|
21 |
totalframescount = data.get(cv2.CAP_PROP_FRAME_COUNT)
|
22 |
-
fps = data.get(cv2.CAP_PROP_FPS)
|
23 |
-
seconds = round(totalframescount / fps)
|
24 |
framecount=0
|
25 |
names=[]
|
26 |
path = text
|
@@ -42,10 +40,9 @@ def Attandance(text,video,image):
|
|
42 |
index=1
|
43 |
while True:
|
44 |
try:
|
45 |
-
|
46 |
if framecount>totalframescount:
|
47 |
break
|
48 |
-
elif framecount%
|
49 |
pass
|
50 |
else:
|
51 |
framecount=framecount+1
|
|
|
19 |
def Attandance(text,video,image):
|
20 |
data=cv2.VideoCapture(video)
|
21 |
totalframescount = data.get(cv2.CAP_PROP_FRAME_COUNT)
|
|
|
|
|
22 |
framecount=0
|
23 |
names=[]
|
24 |
path = text
|
|
|
40 |
index=1
|
41 |
while True:
|
42 |
try:
|
|
|
43 |
if framecount>totalframescount:
|
44 |
break
|
45 |
+
elif framecount%100==0:
|
46 |
pass
|
47 |
else:
|
48 |
framecount=framecount+1
|