Read rig camera index for MicaSense Altum

pull/1057/head
Piero Toffanin 2020-01-22 15:40:29 -05:00
rodzic 586ad72a76
commit 7a2c097c60
1 zmienionych plików z 8 dodań i 7 usunięć

Wyświetl plik

@ -75,18 +75,19 @@ class ODM_Photo:
# Find band name and camera index (if available)
camera_index_tags = [
'DLS:SensorId', # Micasense
'@Camera:RigCameraIndex' # Parrot Sequoia
'DLS:SensorId', # Micasense RedEdge
'@Camera:RigCameraIndex', # Parrot Sequoia
'Camera:RigCameraIndex', # MicaSense Altum
]
for tags in xmp:
if 'Camera:BandName' in tags:
self.band_name = str(tags['Camera:BandName']).replace(" ", "")
else:
for cit in camera_index_tags:
if cit in tags:
self.band_index = int(tags[cit])
for cit in camera_index_tags:
if cit in tags:
self.band_index = int(tags[cit])
self.width, self.height = get_image_size.get_image_size(_path_file)
# Sanitize band name since we use it in folder paths