Releases: davidpagnon/Sports2D
v0.8.4
- fixed error when calculate_angles to false
- new ordering method: largest and smallest size
- on_click as default ordering method
- fixed pyproject file to comply with latest PEP 639
Full Changelog: v0.8.3...v0.8.4
does not store all frames in memory if they are not saved or used for ordering
Does not store all frames in memory if they are not saved or used for ordering
Avoids out-of-memory errors on long captures.
Need to not save images or video, and to order persons with a method other than "on_click", for example with:
--save_img false --save_vid false --person_ordering_method highest_likelihood
Full Changelog: v0.8.2...v0.8.3
deepcopy of pose_model to make sure keypoint_ids are not overwritten
Very specific issue, when it is run for several trials from within python, e.g.:
import toml
from pathlib import Path
from Sports2D import Sports2D
video_names = ['000000.mov', '000001.mov']
config_path = Path(Sports2D.__file__).parent / 'Demo/Config_demo.toml'
config_dict = toml.load(config_path)
for vid in video_names:
config_dict.get("base").update({"video_input":vid})
Sports2D.process(config_dict)Full Changelog: v0.8.1...v0.8.2
Fixed marker augmentation
- Fixed marker augmentation:
- made sure the right trc data is taken
- failed when nans in trc: using ffill and bfill
- minor other fixes (see release notes)
Full Changelog: v0.8.0...v0.8.1
Click and select the persons to analyze
/!\ Warning! Make sure that the last Pose2Sim version is installed with pip install pose2sim -U
1. Set the number of persons to analyze and their ordering method:
See https://github.com/davidpagnon/Sports2D?tab=readme-ov-file#select-the-persons-you-are-interested-in
Specify the number of persons you want to analyze and post-process (set 'all' if you want them all)
Order them with one of these 6 methods:
- 'on_click',
- 'highest_likelihood',
- 'greatest_displacement',
- 'least_displacement',
- 'first_detected',
- 'last_detected'
Note that the person with reference height will be the first one coming out of this ordering.
Among other advantages, this will make it easier to set the height and masses of the each person in the right order.
I tried to make the "on_click" UI look consistent with the synchronization one by HunMin.
Beware of the changes in the parameters:
- New: nb_persons_to_detect = 'all' # int or 'all' # Limiting or not the number of persons to be analyzed
- New: person_selection_method = 'on_click' # 'on_click', 'highest_likelihood', 'greatest_displacement', 'least_displacement', 'first_detected', or 'last_detected'
- New: first_person_height = 1.76
- Removed: multiperson is removed (replaced by nb_persons_to_detect)
- Removed: px_to_m_person_height (becomes first_person_height)
- Removed: px_to_m_from_person_id (first selected person will be chosen)
- Changed: the 'project' and 'process' sections of the configuration file have been replaced by 'base'
Note that the default visible_side order has changed and is now ['auto', 'front', 'none'] (instead of ['front', 'none', 'auto'])
2. Others:
- Only the selected persons are saved (images, videos, trc, mot), with post-processed angles.
- Fixed time index and image saves with load_trc_px
- Fixed angle computation with whole_body pose_model
- Handled warning in compute_floor_line when a line is full of nan
- Deleted setup.cfg and setup.py to switch to pyproject.toml
Also, the code is becoming kind of a mess... What I should do is rewrite it all, but that requires time I do not have.
Other minor edits
- updated instructions and presentation video
- remove all the functions that were already defined in Pose2Sim
- do_ik and use_augmentation to false by default
- no opensim import if do_ik is false
- no markeraugmentation import if use_augmentation is false
- package version assigned dynamically from setup.cfg
Full Changelog: v0.7.2...v0.7.3
Minor improvements
Minor fixes:
- Fixed time_range
- Fixed load_trc_px
- Fixed tests
Updated Pose2Sim model DOFs of the arms to avoid the elbow locking up when the shoulder is overly rotated
What's Changed
- fixed tests by @davidpagnon in #23
Full Changelog: v0.7.0...v0.7.2
Supported marker augmentation and inverse kinematics + others
- Depth values in trc files adjusted based on neutral position for the sagittal plane (left and right side) and frontal plane (front and back side)
- Supported marker augmentation and inverse kinematics via Pose2Sim
- c3d export
- renamed a bunch of parameters
- fixed whole_body_wrist model
- Fixed "load_trc" option
- Updated doc
What's Changed
- Supported marker augmentation and inverse kinematics + others by @davidpagnon in #22
Full Changelog: v0.6.3...v0.7.0
c3d export + actual 3D trc files
- trc Z values not set to zeros but to coherent values based on visible side
- c3d export
- renamed a bunch of parameters
DeepSort tracking and better skeleton visualization
- Skeleton visualization: A bounding-box color per person. Left and right limbs in a different color to better spot swaps. Keypoint color based on confidence.
- Support DeepSort tracking across frames
Full Changelog: v0.6.1...v0.6.2
