To get all the necessary arguments
Returns
args.input_path : Path to input video, or "cam" for camera'
args.save_results : Flag to save the results
args.record_videos : Flag to turn on video recording
args.scan_duration : Duration of the scan when in camera mode
Source code in redesign_pipeline/utils/arg_parser.py
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24 | def arg_parser() -> tuple:
"""
To get all the necessary arguments
Returns
-------
args.input_path : Path to input video, or "cam" for camera'
args.save_results : Flag to save the results
args.record_videos : Flag to turn on video recording
args.scan_duration : Duration of the scan when in camera mode
"""
parser = argparse.ArgumentParser(description='Vital signs estimate from webcam/input video')
parser.add_argument('-i', '--input_path', help='Path to input video, or "cam" for camera', type=str)
parser.add_argument('-s', '--save_results', type=str, default=None)
parser.add_argument("-r", "--record_videos", action='store_true', help="Flag to turn on video recording")
parser.add_argument("-d", "--scan_duration", type=int, default=60, help="Duration of the scan when in camera mode")
args = parser.parse_args()
return args.input_path, args.save_results, args.record_videos, args.scan_duration
|