Load camera name and parameters from a file.
(self, json_path: str)
| 307 | json.dump(dump_dict, f_write) |
| 308 | |
| 309 | def load(self, json_path: str) -> None: |
| 310 | """Load camera name and parameters from a file.""" |
| 311 | with open(json_path, 'r') as f_read: |
| 312 | dumped_dict = json.load(f_read) |
| 313 | self.load_from_dict(dumped_dict) |
| 314 | |
| 315 | def load_from_dict(self, json_dict: dict) -> None: |
| 316 | """Load name and parameters from a dict. |
no test coverage detected