sports2d 0.8.10__tar.gz → 0.8.11__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.10 → sports2d-0.8.11}/PKG-INFO +1 -1
  2. {sports2d-0.8.10 → sports2d-0.8.11}/Sports2D/process.py +10 -4
  3. {sports2d-0.8.10 → sports2d-0.8.11}/sports2d.egg-info/PKG-INFO +1 -1
  4. {sports2d-0.8.10 → sports2d-0.8.11}/.github/workflows/continuous-integration.yml +0 -0
  5. {sports2d-0.8.10 → sports2d-0.8.11}/.github/workflows/joss_pdf.yml +0 -0
  6. {sports2d-0.8.10 → sports2d-0.8.11}/.github/workflows/publish-on-release.yml +0 -0
  7. {sports2d-0.8.10 → sports2d-0.8.11}/.gitignore +0 -0
  8. {sports2d-0.8.10 → sports2d-0.8.11}/CITATION.cff +0 -0
  9. {sports2d-0.8.10 → sports2d-0.8.11}/Content/Demo_plots.png +0 -0
  10. {sports2d-0.8.10 → sports2d-0.8.11}/Content/Demo_results.png +0 -0
  11. {sports2d-0.8.10 → sports2d-0.8.11}/Content/Demo_terminal.png +0 -0
  12. {sports2d-0.8.10 → sports2d-0.8.11}/Content/Person_selection.png +0 -0
  13. {sports2d-0.8.10 → sports2d-0.8.11}/Content/Video_tuto_Sports2D_Colab.png +0 -0
  14. {sports2d-0.8.10 → sports2d-0.8.11}/Content/joint_convention.png +0 -0
  15. {sports2d-0.8.10 → sports2d-0.8.11}/Content/paper.bib +0 -0
  16. {sports2d-0.8.10 → sports2d-0.8.11}/Content/paper.md +0 -0
  17. {sports2d-0.8.10 → sports2d-0.8.11}/Content/sports2d_blender.gif +0 -0
  18. {sports2d-0.8.10 → sports2d-0.8.11}/Content/sports2d_opensim.gif +0 -0
  19. {sports2d-0.8.10 → sports2d-0.8.11}/LICENSE +0 -0
  20. {sports2d-0.8.10 → sports2d-0.8.11}/README.md +0 -0
  21. {sports2d-0.8.10 → sports2d-0.8.11}/Sports2D/Demo/Config_demo.toml +0 -0
  22. {sports2d-0.8.10 → sports2d-0.8.11}/Sports2D/Demo/demo.mp4 +0 -0
  23. {sports2d-0.8.10 → sports2d-0.8.11}/Sports2D/Sports2D.ipynb +0 -0
  24. {sports2d-0.8.10 → sports2d-0.8.11}/Sports2D/Sports2D.py +0 -0
  25. {sports2d-0.8.10 → sports2d-0.8.11}/Sports2D/Utilities/__init__.py +0 -0
  26. {sports2d-0.8.10 → sports2d-0.8.11}/Sports2D/Utilities/common.py +0 -0
  27. {sports2d-0.8.10 → sports2d-0.8.11}/Sports2D/Utilities/filter.py +0 -0
  28. {sports2d-0.8.10 → sports2d-0.8.11}/Sports2D/Utilities/tests.py +0 -0
  29. {sports2d-0.8.10 → sports2d-0.8.11}/Sports2D/__init__.py +0 -0
  30. {sports2d-0.8.10 → sports2d-0.8.11}/pyproject.toml +0 -0
  31. {sports2d-0.8.10 → sports2d-0.8.11}/setup.cfg +0 -0
  32. {sports2d-0.8.10 → sports2d-0.8.11}/sports2d.egg-info/SOURCES.txt +0 -0
  33. {sports2d-0.8.10 → sports2d-0.8.11}/sports2d.egg-info/dependency_links.txt +0 -0
  34. {sports2d-0.8.10 → sports2d-0.8.11}/sports2d.egg-info/entry_points.txt +0 -0
  35. {sports2d-0.8.10 → sports2d-0.8.11}/sports2d.egg-info/requires.txt +0 -0
  36. {sports2d-0.8.10 → sports2d-0.8.11}/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.10
3
+ Version: 0.8.11
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>
@@ -60,6 +60,7 @@ import copy
60
60
  import shutil
61
61
  import os
62
62
  import re
63
+ import platform
63
64
  from importlib.metadata import version
64
65
  from datetime import datetime
65
66
  import itertools as it
@@ -788,18 +789,23 @@ def pose_plots(trc_data_unfiltered, trc_data, person_id):
788
789
  OUTPUT:
789
790
  - matplotlib window with tabbed figures for each keypoint
790
791
  '''
791
-
792
- mpl.use('qt5agg')
792
+ os_name = platform.system()
793
+
794
+ if os_name == 'Windows':
795
+ mpl.use('qt5agg') # windows
793
796
  mpl.rc('figure', max_open_warning=0)
794
797
 
795
798
  keypoints_names = trc_data.columns[1::3]
796
-
799
+
797
800
  pw = plotWindow()
798
801
  pw.MainWindow.setWindowTitle('Person'+ str(person_id) + ' coordinates') # Main title
799
802
 
800
803
  for id, keypoint in enumerate(keypoints_names):
801
804
  f = plt.figure()
802
- f.canvas.manager.window.setWindowTitle(keypoint + ' Plot')
805
+ if os_name == 'Windows':
806
+ f.canvas.manager.window.setWindowTitle(keypoint + ' Plot') # windows
807
+ elif os_name == 'Darwin': # macOS
808
+ f.canvas.manager.set_window_title(keypoint + ' Plot') # mac
803
809
 
804
810
  axX = plt.subplot(211)
805
811
  plt.plot(trc_data_unfiltered.iloc[:,0], trc_data_unfiltered.iloc[:,id*3+1], label='unfiltered')
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: sports2d
3
- Version: 0.8.10
3
+ Version: 0.8.11
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