sports2d 0.8.5__tar.gz → 0.8.6__tar.gz

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.
Files changed (36) hide show
  1. {sports2d-0.8.5 → sports2d-0.8.6}/PKG-INFO +1 -1
  2. {sports2d-0.8.5 → sports2d-0.8.6}/Sports2D/process.py +5 -2
  3. {sports2d-0.8.5 → sports2d-0.8.6}/sports2d.egg-info/PKG-INFO +1 -1
  4. {sports2d-0.8.5 → sports2d-0.8.6}/.github/workflows/continuous-integration.yml +0 -0
  5. {sports2d-0.8.5 → sports2d-0.8.6}/.github/workflows/joss_pdf.yml +0 -0
  6. {sports2d-0.8.5 → sports2d-0.8.6}/.github/workflows/publish-on-release.yml +0 -0
  7. {sports2d-0.8.5 → sports2d-0.8.6}/.gitignore +0 -0
  8. {sports2d-0.8.5 → sports2d-0.8.6}/CITATION.cff +0 -0
  9. {sports2d-0.8.5 → sports2d-0.8.6}/Content/Demo_plots.png +0 -0
  10. {sports2d-0.8.5 → sports2d-0.8.6}/Content/Demo_results.png +0 -0
  11. {sports2d-0.8.5 → sports2d-0.8.6}/Content/Demo_terminal.png +0 -0
  12. {sports2d-0.8.5 → sports2d-0.8.6}/Content/Person_selection.png +0 -0
  13. {sports2d-0.8.5 → sports2d-0.8.6}/Content/Video_tuto_Sports2D_Colab.png +0 -0
  14. {sports2d-0.8.5 → sports2d-0.8.6}/Content/joint_convention.png +0 -0
  15. {sports2d-0.8.5 → sports2d-0.8.6}/Content/paper.bib +0 -0
  16. {sports2d-0.8.5 → sports2d-0.8.6}/Content/paper.md +0 -0
  17. {sports2d-0.8.5 → sports2d-0.8.6}/Content/sports2d_blender.gif +0 -0
  18. {sports2d-0.8.5 → sports2d-0.8.6}/Content/sports2d_opensim.gif +0 -0
  19. {sports2d-0.8.5 → sports2d-0.8.6}/LICENSE +0 -0
  20. {sports2d-0.8.5 → sports2d-0.8.6}/README.md +0 -0
  21. {sports2d-0.8.5 → sports2d-0.8.6}/Sports2D/Demo/Config_demo.toml +0 -0
  22. {sports2d-0.8.5 → sports2d-0.8.6}/Sports2D/Demo/demo.mp4 +0 -0
  23. {sports2d-0.8.5 → sports2d-0.8.6}/Sports2D/Sports2D.ipynb +0 -0
  24. {sports2d-0.8.5 → sports2d-0.8.6}/Sports2D/Sports2D.py +0 -0
  25. {sports2d-0.8.5 → sports2d-0.8.6}/Sports2D/Utilities/__init__.py +0 -0
  26. {sports2d-0.8.5 → sports2d-0.8.6}/Sports2D/Utilities/common.py +0 -0
  27. {sports2d-0.8.5 → sports2d-0.8.6}/Sports2D/Utilities/filter.py +0 -0
  28. {sports2d-0.8.5 → sports2d-0.8.6}/Sports2D/Utilities/tests.py +0 -0
  29. {sports2d-0.8.5 → sports2d-0.8.6}/Sports2D/__init__.py +0 -0
  30. {sports2d-0.8.5 → sports2d-0.8.6}/pyproject.toml +0 -0
  31. {sports2d-0.8.5 → sports2d-0.8.6}/setup.cfg +0 -0
  32. {sports2d-0.8.5 → sports2d-0.8.6}/sports2d.egg-info/SOURCES.txt +0 -0
  33. {sports2d-0.8.5 → sports2d-0.8.6}/sports2d.egg-info/dependency_links.txt +0 -0
  34. {sports2d-0.8.5 → sports2d-0.8.6}/sports2d.egg-info/entry_points.txt +0 -0
  35. {sports2d-0.8.5 → sports2d-0.8.6}/sports2d.egg-info/requires.txt +0 -0
  36. {sports2d-0.8.5 → sports2d-0.8.6}/sports2d.egg-info/top_level.txt +0 -0
@@ -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>
@@ -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>
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes
File without changes