Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion SuperBuild/cmake/External-OpenSfM.cmake
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ ExternalProject_Add(${_proj_name}
#--Download step--------------
DOWNLOAD_DIR ${SB_DOWNLOAD_DIR}
GIT_REPOSITORY https://github.com/WebODM/OpenSfM/
GIT_TAG bf7f84a9109098971f7a15ed9b0348b98e093ed7
GIT_TAG fac86a643ff542b9a7718ece838549e67bd136d8
#--Update/Patch step----------
UPDATE_COMMAND git submodule update --init --recursive
#--Configure step-------------
Expand Down
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
3.8.0
3.8.1
7 changes: 7 additions & 0 deletions opendm/photo.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,6 +113,7 @@ def __init__(self, path_file):
self.latitude = None
self.longitude = None
self.altitude = None
self.relative_altitude = None

# Multi-band fields
self.band_name = 'RGB'
Expand Down Expand Up @@ -390,6 +391,9 @@ def parse_exif_values(self, _path_file):
self.set_attr_from_xmp_tag('altitude', xtags, [
'@drone-dji:AbsoluteAltitude'
], float)
self.set_attr_from_xmp_tag('relative_altitude', xtags, [
'@drone-dji:RelativeAltitude'
], float)

# Phantom 4 RTK
if '@drone-dji:RtkStdLon' in xtags:
Expand Down Expand Up @@ -867,6 +871,9 @@ def to_opensfm_exif(self, rolling_shutter = False, rolling_shutter_readout = 0,
'kappa': self.kappa
}

if self.relative_altitude is not None:
d['relative_altitude'] = self.relative_altitude

# Speed is not useful without GPS
if self.has_speed() and has_gps:
d['speed'] = [self.speed_y, self.speed_x, self.speed_z]
Expand Down
Loading