webcam test
Browse files
main.py
CHANGED
@@ -117,8 +117,12 @@ def infer(video, check, kpt_thr, webcam=True):
|
|
117 |
vidname = video.split("/")[-1]
|
118 |
vis_out_dir = "/".join(["/".join(video.split("/")[:-1]), add_dir])
|
119 |
out_file = poses(inferencer, video, vis_out_dir, kpt_thr)
|
120 |
-
fullname = os.path.join(vis_out_dir, vidname)
|
121 |
-
|
|
|
|
|
|
|
|
|
122 |
|
123 |
else:
|
124 |
out_files.extend(out_file)
|
|
|
117 |
vidname = video.split("/")[-1]
|
118 |
vis_out_dir = "/".join(["/".join(video.split("/")[:-1]), add_dir])
|
119 |
out_file = poses(inferencer, video, vis_out_dir, kpt_thr)
|
120 |
+
fullname = os.path.join(vis_out_dir, vidname)
|
121 |
+
if i == "Estimate human 3d poses":
|
122 |
+
fullname = fullname[:-4]+"mp4" #Change to .mp4
|
123 |
+
out_files.append(fullname)
|
124 |
+
else:
|
125 |
+
out_files.append(fullname)
|
126 |
|
127 |
else:
|
128 |
out_files.extend(out_file)
|