From a38f7bc8c642022d6a33e935cbb42dbc8e7fd192 Mon Sep 17 00:00:00 2001 From: davidpagnon Date: Fri, 20 Dec 2024 14:09:39 +0100 Subject: [PATCH] forgot framerate parameter in the trc meters file --- Sports2D/Sports2D.py | 2 +- Sports2D/process.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/Sports2D/Sports2D.py b/Sports2D/Sports2D.py index ab5c834..7b31d27 100644 --- a/Sports2D/Sports2D.py +++ b/Sports2D/Sports2D.py @@ -435,7 +435,7 @@ def process(config='Config_demo.toml'): process_fun(config_dict, video_file, time_range, frame_rate, result_dir) - elapsed_time = (datetime.now() - currentDateAndTime).total_seconds() + elapsed_time = (datetime.now() - currentDateAndTime).total_seconds() logging.info(f'\nProcessing {video_file} took {elapsed_time:.2f} s.') logging.shutdown() diff --git a/Sports2D/process.py b/Sports2D/process.py index 6b1053b..6649191 100644 --- a/Sports2D/process.py +++ b/Sports2D/process.py @@ -1776,7 +1776,7 @@ def process_fun(config_dict, video_file, time_range, frame_rate, result_dir): # Write to trc file idx_path = selected_person_id if not multiperson and not calib_file else i pose_path_person_m_i = (pose_output_path.parent / (pose_output_path_m.stem + f'_person{idx_path:02d}.trc')) - make_trc_with_trc_data(trc_data_m_i, pose_path_person_m_i) + make_trc_with_trc_data(trc_data_m_i, pose_path_person_m_i, fps=fps) logging.info(f'Person {idx_path}: Pose in meters saved to {pose_path_person_m_i.resolve()}.')