sports2d 0.8.5__py3-none-any.whl → 0.8.6__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Sports2D/process.py CHANGED
@@ -986,7 +986,6 @@ def select_persons_on_vid(frames, all_pose_coords):
986
986
  bbox=dict(facecolor=UNSELECTED_COLOR, edgecolor=LINE_UNSELECTED_COLOR, boxstyle='square,pad=0.3', path_effects=[patheffects.withSimplePatchShadow()]), zorder=3
987
987
  )
988
988
  rects.append(rect)
989
- annotations.append(annotation)
990
989
  img_plot = ax_video.imshow(frame_rgb)
991
990
 
992
991
  # Slider
@@ -1043,6 +1042,10 @@ def select_persons_on_vid(frames, all_pose_coords):
1043
1042
  bbox=dict(facecolor=UNSELECTED_COLOR, edgecolor=LINE_UNSELECTED_COLOR, boxstyle='square,pad=0.3'), path_effects=[patheffects.withSimplePatchShadow()], zorder=3
1044
1043
  )
1045
1044
  annotations.append(annotation)
1045
+ else:
1046
+ rect = plt.Rectangle((np.nan, np.nan), np.nan, np.nan)
1047
+ ax_video.add_patch(rect)
1048
+ rects.append(rect)
1046
1049
 
1047
1050
  # Update plot
1048
1051
  img_plot.set_data(frame_rgb)
@@ -2147,7 +2150,7 @@ def process_fun(config_dict, video_file, time_range, frame_rate, result_dir):
2147
2150
 
2148
2151
  Pose2Sim_config_dict['project']['participant_height'] = heights_m
2149
2152
  Pose2Sim_config_dict['project']['participant_mass'] = masses
2150
- Pose2Sim_config_dict['project']['frame_range'] = []
2153
+ Pose2Sim_config_dict['project']['frame_range'] = 'all'
2151
2154
  Pose2Sim_config_dict['markerAugmentation']['feet_on_floor'] = False
2152
2155
  Pose2Sim_config_dict['pose']['pose_model'] = pose_model_name.upper()
2153
2156
  Pose2Sim_config_dict = to_dict(Pose2Sim_config_dict)
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sports2d
3
- Version: 0.8.5
3
+ Version: 0.8.6
4
4
  Summary: Compute 2D human pose and angles from a video or a webcam.
5
5
  Author-email: David Pagnon <contact@david-pagnon.com>
6
6
  Maintainer-email: David Pagnon <contact@david-pagnon.com>
@@ -11,16 +11,16 @@ Content/sports2d_opensim.gif,sha256=XP1AcjqhbGcJknXUoNJjPWAwaM9ahZafbDgLWvzKJs4,
11
11
  Sports2D/Sports2D.ipynb,sha256=VnOVjIl6ndnCJTT13L4W5qTw4T-TQDF3jt3-wxnXDqM,2427047
12
12
  Sports2D/Sports2D.py,sha256=EYsXZ3A3VpnsVQmpBSftbHC_iivVbyzst6--q2OOb74,30581
13
13
  Sports2D/__init__.py,sha256=BuUkPEdItxlkeqz4dmoiPwZLkgAfABJK3KWQ1ujTGwE,153
14
- Sports2D/process.py,sha256=IowxT0gPusVX3B88rwTuluRkH4nV7SfBU7xMjoFE1os,109738
14
+ Sports2D/process.py,sha256=rgFQlY2ITzIw3V0ghr3Df4xrA73h6Lg1rtRQ8-FNBjc,109863
15
15
  Sports2D/Demo/Config_demo.toml,sha256=IXrV7URqERHQ6cBJaPq05Yt3i86-u08RnCzC_dn53AM,13852
16
16
  Sports2D/Demo/demo.mp4,sha256=2aZkFxhWR7ESMEtXCT8MGA83p2jmoU2sp1ylQfO3gDk,3968304
17
17
  Sports2D/Utilities/__init__.py,sha256=BuUkPEdItxlkeqz4dmoiPwZLkgAfABJK3KWQ1ujTGwE,153
18
18
  Sports2D/Utilities/common.py,sha256=idMRmesFv5BPX-5g3z5dOVa7SpS_8tNgijvGrOZlR-k,11185
19
19
  Sports2D/Utilities/filter.py,sha256=rfZcqofjllKI_5ovZTKEAmyjOZpB_PzbAJ0P874T8Ak,4973
20
20
  Sports2D/Utilities/tests.py,sha256=XnPNK63AZ_xlJBmFmPJtOMrzssBXIPXFzYd73CPzchI,4740
21
- sports2d-0.8.5.dist-info/licenses/LICENSE,sha256=f4qe3nE0Y7ltJho5w-xAR0jI5PUox5Xl-MsYiY7ZRM8,1521
22
- sports2d-0.8.5.dist-info/METADATA,sha256=vv3Z5BoEsyqUJO-8nmxsEbSKtWB-CddqkeytB-OhE68,38116
23
- sports2d-0.8.5.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
24
- sports2d-0.8.5.dist-info/entry_points.txt,sha256=V8dFDIXatz9VvoGgoHzb2wE71C9-f85K6_OjnEQlxww,108
25
- sports2d-0.8.5.dist-info/top_level.txt,sha256=cWWBiDD2WbQXMoIoN6-9et9U2t2c_ZKo2JtBqO5uN-k,17
26
- sports2d-0.8.5.dist-info/RECORD,,
21
+ sports2d-0.8.6.dist-info/licenses/LICENSE,sha256=f4qe3nE0Y7ltJho5w-xAR0jI5PUox5Xl-MsYiY7ZRM8,1521
22
+ sports2d-0.8.6.dist-info/METADATA,sha256=YYF67ynJh6JKnPNe17grTBIjREjpcr4b62eIscN7qwk,38116
23
+ sports2d-0.8.6.dist-info/WHEEL,sha256=0CuiUZ_p9E4cD6NyLD6UG80LBXYyiSYZOKDm5lp32xk,91
24
+ sports2d-0.8.6.dist-info/entry_points.txt,sha256=V8dFDIXatz9VvoGgoHzb2wE71C9-f85K6_OjnEQlxww,108
25
+ sports2d-0.8.6.dist-info/top_level.txt,sha256=cWWBiDD2WbQXMoIoN6-9et9U2t2c_ZKo2JtBqO5uN-k,17
26
+ sports2d-0.8.6.dist-info/RECORD,,