Skip to content
Open
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 opendm/osfm.py
Original file line number Diff line number Diff line change
Expand Up @@ -657,7 +657,7 @@ def get_submodel_argv(args, submodels_path = None, submodel_name = None):
reading the contents of --boundary
"""
assure_always = ['orthophoto_cutline', 'dem_euclidean_map', 'skip_3dmodel', 'skip_report']
remove_always = ['split', 'split_overlap', 'rerun_from', 'rerun', 'gcp', 'end_with', 'sm_cluster', 'rerun_all', 'pc_csv', 'pc_las', 'pc_ept', 'tiles', 'copy-to', 'cog']
remove_always = ['split', 'split_overlap', 'split_image_groups', 'rerun_from', 'rerun', 'gcp', 'end_with', 'sm_cluster', 'rerun_all', 'pc_csv', 'pc_las', 'pc_ept', 'tiles', 'copy_to', 'cog']
read_json_always = ['cameras', 'boundary']

argv = sys.argv
Expand Down
9 changes: 9 additions & 0 deletions opendm/photo.py
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,15 @@ def parse_exif_values(self, _path_file):
# Roll: 0 (assuming gimbal)
if self.has_ypr():
if self.camera_make.lower() in ['dji', 'hasselblad']:

# Mavic 3E smart oblique backward-facing images need special treatment
# backward-facing images are identified with a 180º roll
if abs(self.roll) > 90:
# Camera faces opposite direction
self.yaw = (self.yaw + 180) % 360
# Pitch axis is inverted in flipped frame
self.pitch = -self.pitch

self.pitch = 90 + self.pitch

if self.camera_make.lower() == 'sensefly':
Expand Down