xmrt commited on
Commit
51921cc
1 Parent(s): 1338b9b

webcam test

Browse files
Files changed (1) hide show
  1. main.py +6 -2
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
- out_files.append(fullname)
 
 
 
 
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)