Spaces:
Runtime error
Runtime error
Update app.py
Browse files
app.py
CHANGED
@@ -65,8 +65,8 @@ def capture_function(vid):
|
|
65 |
capture.set(cv2.CAP_PROP_POS_FRAMES, i)
|
66 |
ret, frame_f = capture.read(i)
|
67 |
#frame_ff = cv2.cvtColor(frame_f, cv2.COLOR_BGR2RGB)
|
68 |
-
cv2.imwrite(f'{uid}-frames/{i}.png',frame_f)
|
69 |
-
fbox.append(f'{uid}-frames/{i}.png')
|
70 |
frame_num=f'Working on {i+1} of {frame_count1}'
|
71 |
|
72 |
yield fbox,fbox,frame_num
|
|
|
65 |
capture.set(cv2.CAP_PROP_POS_FRAMES, i)
|
66 |
ret, frame_f = capture.read(i)
|
67 |
#frame_ff = cv2.cvtColor(frame_f, cv2.COLOR_BGR2RGB)
|
68 |
+
cv2.imwrite(f'{uid}-frames/{i+1}.png',frame_f)
|
69 |
+
fbox.append(f'{uid}-frames/{i+1}.png')
|
70 |
frame_num=f'Working on {i+1} of {frame_count1}'
|
71 |
|
72 |
yield fbox,fbox,frame_num
|