Spaces:
Sleeping
Sleeping
Tidy
Browse files
app.py
CHANGED
@@ -53,6 +53,7 @@ def fn(video: gr.Video, actions: list[int]):
|
|
53 |
frame = draw_classes(frame, actions)
|
54 |
processed_frames.append(frame)
|
55 |
if i % config.yield_frame_steps == 0:
|
|
|
56 |
quality = 9
|
57 |
image_array = cv2.cvtColor(frame, cv2.COLOR_RGB2BGR)
|
58 |
_, image_encoded = cv2.imencode('.jpg', image_array, [int(cv2.IMWRITE_JPEG_QUALITY), quality])
|
|
|
53 |
frame = draw_classes(frame, actions)
|
54 |
processed_frames.append(frame)
|
55 |
if i % config.yield_frame_steps == 0:
|
56 |
+
print(f'Yield latest frame: Frame {i}')
|
57 |
quality = 9
|
58 |
image_array = cv2.cvtColor(frame, cv2.COLOR_RGB2BGR)
|
59 |
_, image_encoded = cv2.imencode('.jpg', image_array, [int(cv2.IMWRITE_JPEG_QUALITY), quality])
|