init
Browse files
main.py
CHANGED
|
@@ -208,7 +208,7 @@ with block:
|
|
| 208 |
video_output4 = gr.Video(height=512, label = "Detection and tracking", show_label=True, format="mp4")
|
| 209 |
jsonoutput = gr.Code()
|
| 210 |
|
| 211 |
-
|
| 212 |
|
| 213 |
with gr.Column():
|
| 214 |
with gr.Row():
|
|
@@ -281,26 +281,26 @@ with block:
|
|
| 281 |
outputs = video_output4,
|
| 282 |
queue=False)
|
| 283 |
|
| 284 |
-
#
|
| 285 |
-
|
| 286 |
-
|
| 287 |
-
|
| 288 |
-
|
| 289 |
|
| 290 |
-
|
| 291 |
-
|
| 292 |
-
|
| 293 |
-
|
| 294 |
|
| 295 |
-
|
| 296 |
-
|
| 297 |
-
|
| 298 |
-
|
| 299 |
|
| 300 |
-
|
| 301 |
-
|
| 302 |
-
|
| 303 |
-
|
| 304 |
|
| 305 |
|
| 306 |
if __name__ == "__main__":
|
|
|
|
| 208 |
video_output4 = gr.Video(height=512, label = "Detection and tracking", show_label=True, format="mp4")
|
| 209 |
jsonoutput = gr.Code()
|
| 210 |
|
| 211 |
+
with gr.Tab("Record video with webcam"):
|
| 212 |
|
| 213 |
with gr.Column():
|
| 214 |
with gr.Row():
|
|
|
|
| 281 |
outputs = video_output4,
|
| 282 |
queue=False)
|
| 283 |
|
| 284 |
+
# Web
|
| 285 |
+
submit_pose_web.click(fn=pose2d,
|
| 286 |
+
inputs = [webcam_input, web_kpthr],
|
| 287 |
+
outputs = webcam_output1,
|
| 288 |
+
queue=False)
|
| 289 |
|
| 290 |
+
submit_pose3d_web.click(fn=pose3d,
|
| 291 |
+
inputs= webcam_input,
|
| 292 |
+
outputs = webcam_output2,
|
| 293 |
+
queue=False)
|
| 294 |
|
| 295 |
+
submit_hand_web.click(fn=pose2dhand,
|
| 296 |
+
inputs= [webcam_input, web_kpthr],
|
| 297 |
+
outputs = webcam_output3,
|
| 298 |
+
queue=False)
|
| 299 |
|
| 300 |
+
submit_detect_web.click(fn=show_tracking,
|
| 301 |
+
inputs= webcam_input,
|
| 302 |
+
outputs = webcam_output4,
|
| 303 |
+
queue=False)
|
| 304 |
|
| 305 |
|
| 306 |
if __name__ == "__main__":
|