Sanitize band name

pull/1057/head
Piero Toffanin 2019-12-16 17:26:57 +00:00
rodzic fbf4886ccd
commit 55ef69e269
1 zmienionych plików z 4 dodań i 0 usunięć

Wyświetl plik

@ -86,7 +86,11 @@ class ODM_Photo:
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
self.band_name = re.sub('[^A-Za-z0-9]+', '', self.band_name)
# From https://github.com/mapillary/OpenSfM/blob/master/opensfm/exif.py
def get_xmp(self, file):