From b25c2161b8d2fdb2eefb10a5e1113d668362bd7b Mon Sep 17 00:00:00 2001 From: Stefal Date: Sun, 25 Feb 2024 10:43:46 +0100 Subject: [PATCH] manage image without camera_type value should fix #8 --- mapillary_download.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/mapillary_download.py b/mapillary_download.py index c87cc4c..94f7d40 100644 --- a/mapillary_download.py +++ b/mapillary_download.py @@ -159,7 +159,7 @@ if __name__ == '__main__': camera_model = image_data['model'], longitude = image_data['geometry']['coordinates'][0], latitude = image_data['geometry']['coordinates'][1], - picture_type = PictureType("equirectangular") if image_data['camera_type'] == 'spherical' or image_data['camera_type'] == 'equirectangular' else PictureType("flat"), + picture_type = PictureType("equirectangular") if image_data.get('camera_type') == 'spherical' or image_data.get('camera_type') == 'equirectangular' else PictureType("flat"), direction = image_data['compass_angle'], altitude = image_data['altitude'], )