save semantic image or map
(semantic_image, new_path, RGB2BGR=True)
| 143 | |
| 144 | |
| 145 | def save_semantic_image(semantic_image, new_path, RGB2BGR=True): |
| 146 | """ save semantic image or map""" |
| 147 | Path('/'.join(new_path.split('/')[:-1])).mkdir(parents=True, exist_ok=True) |
| 148 | if RGB2BGR == True: |
| 149 | semantic_image = cv2.cvtColor(semantic_image, cv2.COLOR_BGR2RGB) |
| 150 | cv2.imwrite(new_path, semantic_image) |
| 151 | |
| 152 | |
| 153 | def get_dynamic_map(av_loader, log_id, cfg, dm_dict): |
no outgoing calls
no test coverage detected