Skip to content

Commit

Permalink
Merge pull request #2190 from alicevision/fix/sfmParsing
Browse files Browse the repository at this point in the history
[ui] Check for the existence of the `poses` key in SfM JSON files before accessing it
  • Loading branch information
fabiencastan authored Sep 21, 2023
2 parents 6350208 + 7fc52f2 commit 392f144
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions meshroom/ui/reconstruction.py
Original file line number Diff line number Diff line change
Expand Up @@ -373,8 +373,9 @@ def parseSfMJsonFile(sfmJsonFile):
for view in report['views']:
views[view['viewId']] = view

for pose in report['poses']:
poses[pose['poseId']] = pose['pose']
if "poses" in report:
for pose in report['poses']:
poses[pose['poseId']] = pose['pose']

for intrinsic in report['intrinsics']:
intrinsics[intrinsic['intrinsicId']] = intrinsic
Expand Down

0 comments on commit 392f144

Please sign in to comment.