diff --git a/README.md b/README.md index 65856e7..990aa71 100644 --- a/README.md +++ b/README.md @@ -144,7 +144,7 @@ sports2d --help ``` - Run with custom parameters (all non specified are set to default): ``` cmd - sports2d --show_plots False --time_range 0 2.1 --result_dir path_to_result_dir + sports2d --show_graphs False --time_range 0 2.1 --result_dir path_to_result_dir ``` ``` cmd sports2d --multiperson false --mode lightweight --det_frequency 50 diff --git a/Sports2D/Sports2D.py b/Sports2D/Sports2D.py index 8618f8a..c937353 100644 --- a/Sports2D/Sports2D.py +++ b/Sports2D/Sports2D.py @@ -28,7 +28,7 @@ - Run on webcam with default parameters: sports2d --video_input webcam - Run with custom parameters (all non specified are set to default): - sports2d --show_plots False --time_range 0 2.1 --result_dir path_to_result_dir + sports2d --show_graphs False --time_range 0 2.1 --result_dir path_to_result_dir sports2d --multiperson false --mode lightweight --det_frequency 50 - Run with a toml configuration file: sports2d --config path_to_config.toml @@ -407,7 +407,7 @@ def main(): - Run on webcam with default parameters: sports2d --video_input webcam - Run with custom parameters (all non specified are set to default): - sports2d --show_plots False --time_range 0 2.1 --result_dir path_to_result_dir + sports2d --show_graphs False --time_range 0 2.1 --result_dir path_to_result_dir sports2d --multiperson false --mode lightweight --det_frequency 50 - Run with a toml configuration file: sports2d --config path_to_config.toml diff --git a/Sports2D/Utilities/tests.py b/Sports2D/Utilities/tests.py index c168388..75e8b9b 100644 --- a/Sports2D/Utilities/tests.py +++ b/Sports2D/Utilities/tests.py @@ -40,14 +40,14 @@ def test_workflow(): config_dict = toml.load(python_config_path) config_dict.get("project").update({"video_dir":'../Demo'}) config_dict.get("process").update({"show_realtime_results":False}) - config_dict.get("post-processing").update({"show_plots":False}) + config_dict.get("post-processing").update({"show_graphs":False}) from Sports2D import Sports2D Sports2D.process(config_dict) # From command line (CLI) - demo_cmd = ["sports2d", "--show_realtime_results", "False", "--show_plots", "False"] + demo_cmd = ["sports2d", "--show_realtime_results", "False", "--show_graphs", "False"] subprocess.run(demo_cmd, check=True, capture_output=True, text=True) @@ -58,5 +58,5 @@ def test_workflow(): config_dict.get("project").update({"video_dir": str(cli_video_dir)}) with open(cli_config_path, 'w') as f: toml.dump(config_dict, f) - demo_config_cmd = ["sports2d", "--config", str(cli_config_path), "--show_realtime_results", "False", "--show_plots", "False"] + demo_config_cmd = ["sports2d", "--config", str(cli_config_path), "--show_realtime_results", "False", "--show_graphs", "False"] subprocess.run(demo_config_cmd, check=True, capture_output=True, text=True) diff --git a/Sports2D/process.py b/Sports2D/process.py index c45b979..153b118 100644 --- a/Sports2D/process.py +++ b/Sports2D/process.py @@ -1055,7 +1055,7 @@ def process_fun(config_dict, video_file, time_range, frame_rate, result_dir): fill_large_gaps_with = config_dict.get('post-processing').get('fill_large_gaps_with') do_filter = config_dict.get('post-processing').get('filter') - show_plots = config_dict.get('post-processing').get('show_plots') + show_plots = config_dict.get('post-processing').get('show_graphs') filter_type = config_dict.get('post-processing').get('filter_type') butterworth_filter_order = config_dict.get('post-processing').get('butterworth').get('order') butterworth_filter_cutoff = config_dict.get('post-processing').get('butterworth').get('cut_off_frequency')