Spaces:
Runtime error
Runtime error
Updated pages/2_ ⬆️_Upload_Video.py
Browse files
pages/2_ ⬆️_Upload_Video.py
CHANGED
|
@@ -84,9 +84,9 @@ if up_file and uploaded:
|
|
| 84 |
|
| 85 |
# convert frame from BGR to RGB before processing it.
|
| 86 |
frame_rgb = frame.to_ndarray(format="rgb24")
|
| 87 |
-
out_frame, _ = upload_process_frame.process(frame_rgb, pose)
|
| 88 |
-
stframe.image(
|
| 89 |
-
video_output.write(
|
| 90 |
|
| 91 |
|
| 92 |
vf.release()
|
|
|
|
| 84 |
|
| 85 |
# convert frame from BGR to RGB before processing it.
|
| 86 |
frame_rgb = frame.to_ndarray(format="rgb24")
|
| 87 |
+
# out_frame, _ = upload_process_frame.process(frame_rgb, pose)
|
| 88 |
+
stframe.image(frame_rgb)
|
| 89 |
+
video_output.write(frame_rgb[...,::-1])
|
| 90 |
|
| 91 |
|
| 92 |
vf.release()
|