kopia lustrzana https://github.com/OpenDroneMap/ODM
Add support for EXIFs from agremo camera (#1264)
rodzic
7da2cf3d44
commit
88e38ed1ad
|
@ -9,7 +9,7 @@ ExternalProject_Add(${_proj_name}
|
||||||
#--Download step--------------
|
#--Download step--------------
|
||||||
DOWNLOAD_DIR ${SB_DOWNLOAD_DIR}
|
DOWNLOAD_DIR ${SB_DOWNLOAD_DIR}
|
||||||
GIT_REPOSITORY https://github.com/OpenDroneMap/OpenSfM/
|
GIT_REPOSITORY https://github.com/OpenDroneMap/OpenSfM/
|
||||||
GIT_TAG 246
|
GIT_TAG 248
|
||||||
#--Update/Patch step----------
|
#--Update/Patch step----------
|
||||||
UPDATE_COMMAND git submodule update --init --recursive
|
UPDATE_COMMAND git submodule update --init --recursive
|
||||||
#--Configure step-------------
|
#--Configure step-------------
|
||||||
|
|
|
@ -342,7 +342,15 @@ class ODM_Photo:
|
||||||
|
|
||||||
def float_values(self, tag):
|
def float_values(self, tag):
|
||||||
if isinstance(tag.values, list):
|
if isinstance(tag.values, list):
|
||||||
return [float(v.num) / float(v.den) if v.den != 0 else None for v in tag.values]
|
result = []
|
||||||
|
for v in tag.values:
|
||||||
|
if isinstance(v, int):
|
||||||
|
result.append(float(v))
|
||||||
|
elif v.den != 0:
|
||||||
|
result.append(float(v.num) / float(v.den))
|
||||||
|
else:
|
||||||
|
result.append(None)
|
||||||
|
return result
|
||||||
else:
|
else:
|
||||||
return [float(tag.values.num) / float(tag.values.den) if tag.values.den != 0 else None]
|
return [float(tag.values.num) / float(tag.values.den) if tag.values.den != 0 else None]
|
||||||
|
|
||||||
|
|
Ładowanie…
Reference in New Issue