Merge pull request #1589 from pierotofy/capt

Expose capture_time to shots.geojson
pull/1596/head
Piero Toffanin 2023-01-28 13:23:02 -05:00 zatwierdzone przez GitHub
commit 276bf0b090
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4AEE18F83AFDEB23
1 zmienionych plików z 1 dodań i 0 usunięć

Wyświetl plik

@ -107,6 +107,7 @@ def get_geojson_shots_from_opensfm(reconstruction_file, utm_srs=None, utm_offset
'focal': cam.get('focal', cam.get('focal_x')), # Focal ratio = focal length (mm) / max(sensor_width, sensor_height) (mm)
'width': cam.get('width', 0),
'height': cam.get('height', 0),
'capture_time': shot.get('capture_time', 0),
'translation': list(translation),
'rotation': list(rotation)
},