(input_dir)
| 707 | raise |
| 708 | |
| 709 | def is_already_rectified(input_dir): |
| 710 | # hack for OAK-D |
| 711 | vioConfigYaml = f"{input_dir}/vio_config.yaml" |
| 712 | if os.path.exists(vioConfigYaml): |
| 713 | with open(vioConfigYaml) as file: |
| 714 | for line in file: |
| 715 | if "alreadyRectified" in line: |
| 716 | _, value = line.split(":") |
| 717 | return value.lower().strip() == "true" |
| 718 | return False |
| 719 | |
| 720 | device_preset, cameras = parse_input_dir(args.input) |
| 721 |