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