sports2d 0.8.4__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
@@ -658,7 +658,7 @@ def make_trc_with_trc_data(trc_data, trc_path, fps=30):
658
658
  header_trc = ['PathFileType\t4\t(X/Y/Z)\t' + str(trc_path),
659
659
  'DataRate\tCameraRate\tNumFrames\tNumMarkers\tUnits\tOrigDataRate\tOrigDataStartFrame\tOrigNumFrames',
660
660
  '\t'.join(map(str,[DataRate, CameraRate, NumFrames, NumMarkers, 'm', OrigDataRate, 0, NumFrames])),
661
- 'Frame#\tTime\t' + '\t\t\t'.join(keypoint_names) + '\t\t',
661
+ 'Frame#\tTime\t' + '\t\t\t'.join(keypoint_names) + '\t\t\t',
662
662
  '\t\t'+'\t'.join([f'X{i+1}\tY{i+1}\tZ{i+1}' for i in range(len(keypoint_names))])]
663
663
 
664
664
  with open(trc_path, 'w') as trc_o:
@@ -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,6 +2150,8 @@ 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
2153
+ Pose2Sim_config_dict['project']['frame_range'] = 'all'
2154
+ Pose2Sim_config_dict['markerAugmentation']['feet_on_floor'] = False
2150
2155
  Pose2Sim_config_dict['pose']['pose_model'] = pose_model_name.upper()
2151
2156
  Pose2Sim_config_dict = to_dict(Pose2Sim_config_dict)
2152
2157
 
@@ -1,8 +1,9 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sports2d
3
- Version: 0.8.4
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
+ Maintainer-email: David Pagnon <contact@david-pagnon.com>
6
7
  License-Expression: BSD-3-Clause
7
8
  Project-URL: Homepage, https://github.com/davidpagnon/Sports2D
8
9
  Project-URL: Bug Tracker, https://github.com/davidpagnon/Sports2D/issues
@@ -0,0 +1,26 @@
1
+ Content/Demo_plots.png,sha256=z2xTWn-MFv1Z_vOL5_3ye91fr1Vzdsa5aE5tuOwUUvs,86680
2
+ Content/Demo_results.png,sha256=PPvL9LTzIxoIWnJAgUNyO4TM5OX5y1NCq11gOKVdvN0,1961260
3
+ Content/Demo_terminal.png,sha256=U_MqN6t44jISGfgG4OK91CDJwp70dNf3uXEH86-gcLs,91009
4
+ Content/Person_selection.png,sha256=USZkJgk7GUG8nAQn4GywHsgi53eQG_wXkxqJnr4t1to,439085
5
+ Content/Video_tuto_Sports2D_Colab.png,sha256=w6OUOB3jul5wc11OwW8HEEW2bmg5LFAbdzdcudWZ11E,298322
6
+ Content/joint_convention.png,sha256=KsR5HXdyfIBJ0yNqI0QNgMr0uIId2RaE_p2qKhQ4u3A,614908
7
+ Content/paper.bib,sha256=oG61x3ea2ml9bJxnc26y1Yr0lU6ZaePWNMBs7VSs4Io,10581
8
+ Content/paper.md,sha256=8rWSOLrKTysloZv0Fz2lr3nayxtHi7GlFMqwdgDVggY,11333
9
+ Content/sports2d_blender.gif,sha256=wgMuPRxhja3XtQn76_okGXsNnUT9Thp0pnD36GdW5_E,448786
10
+ Content/sports2d_opensim.gif,sha256=XP1AcjqhbGcJknXUoNJjPWAwaM9ahZafbDgLWvzKJs4,376656
11
+ Sports2D/Sports2D.ipynb,sha256=VnOVjIl6ndnCJTT13L4W5qTw4T-TQDF3jt3-wxnXDqM,2427047
12
+ Sports2D/Sports2D.py,sha256=EYsXZ3A3VpnsVQmpBSftbHC_iivVbyzst6--q2OOb74,30581
13
+ Sports2D/__init__.py,sha256=BuUkPEdItxlkeqz4dmoiPwZLkgAfABJK3KWQ1ujTGwE,153
14
+ Sports2D/process.py,sha256=rgFQlY2ITzIw3V0ghr3Df4xrA73h6Lg1rtRQ8-FNBjc,109863
15
+ Sports2D/Demo/Config_demo.toml,sha256=IXrV7URqERHQ6cBJaPq05Yt3i86-u08RnCzC_dn53AM,13852
16
+ Sports2D/Demo/demo.mp4,sha256=2aZkFxhWR7ESMEtXCT8MGA83p2jmoU2sp1ylQfO3gDk,3968304
17
+ Sports2D/Utilities/__init__.py,sha256=BuUkPEdItxlkeqz4dmoiPwZLkgAfABJK3KWQ1ujTGwE,153
18
+ Sports2D/Utilities/common.py,sha256=idMRmesFv5BPX-5g3z5dOVa7SpS_8tNgijvGrOZlR-k,11185
19
+ Sports2D/Utilities/filter.py,sha256=rfZcqofjllKI_5ovZTKEAmyjOZpB_PzbAJ0P874T8Ak,4973
20
+ Sports2D/Utilities/tests.py,sha256=XnPNK63AZ_xlJBmFmPJtOMrzssBXIPXFzYd73CPzchI,4740
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,,
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (79.0.1)
2
+ Generator: setuptools (80.3.1)
3
3
  Root-Is-Purelib: true
4
4
  Tag: py3-none-any
5
5
 
@@ -1,15 +0,0 @@
1
- Sports2D/Sports2D.py,sha256=EYsXZ3A3VpnsVQmpBSftbHC_iivVbyzst6--q2OOb74,30581
2
- Sports2D/__init__.py,sha256=BuUkPEdItxlkeqz4dmoiPwZLkgAfABJK3KWQ1ujTGwE,153
3
- Sports2D/process.py,sha256=Omg4xWoUircoqFzU2A6X88RmpV0Ez0RTOm3mv9wpVqY,109592
4
- Sports2D/Demo/Config_demo.toml,sha256=IXrV7URqERHQ6cBJaPq05Yt3i86-u08RnCzC_dn53AM,13852
5
- Sports2D/Demo/demo.mp4,sha256=2aZkFxhWR7ESMEtXCT8MGA83p2jmoU2sp1ylQfO3gDk,3968304
6
- Sports2D/Utilities/__init__.py,sha256=BuUkPEdItxlkeqz4dmoiPwZLkgAfABJK3KWQ1ujTGwE,153
7
- Sports2D/Utilities/common.py,sha256=idMRmesFv5BPX-5g3z5dOVa7SpS_8tNgijvGrOZlR-k,11185
8
- Sports2D/Utilities/filter.py,sha256=rfZcqofjllKI_5ovZTKEAmyjOZpB_PzbAJ0P874T8Ak,4973
9
- Sports2D/Utilities/tests.py,sha256=XnPNK63AZ_xlJBmFmPJtOMrzssBXIPXFzYd73CPzchI,4740
10
- sports2d-0.8.4.dist-info/licenses/LICENSE,sha256=f4qe3nE0Y7ltJho5w-xAR0jI5PUox5Xl-MsYiY7ZRM8,1521
11
- sports2d-0.8.4.dist-info/METADATA,sha256=Y0gu23144-yK5ADtvdvlEl4TZEiEkOUkYOZIgly0cPc,38058
12
- sports2d-0.8.4.dist-info/WHEEL,sha256=SmOxYU7pzNKBqASvQJ7DjX3XGUF92lrGhMb3R6_iiqI,91
13
- sports2d-0.8.4.dist-info/entry_points.txt,sha256=V8dFDIXatz9VvoGgoHzb2wE71C9-f85K6_OjnEQlxww,108
14
- sports2d-0.8.4.dist-info/top_level.txt,sha256=DoURf9UDB8lQ_9lMUPQMQqhXCvWPFFjJco9NzPlHJ6I,9
15
- sports2d-0.8.4.dist-info/RECORD,,