Skip to content

Commit

Permalink
Merge pull request #567 from alicevision/fix/customPipeline
Browse files Browse the repository at this point in the history
[bin] Fix project creation from custom pipeline
  • Loading branch information
yann-lty authored Aug 6, 2019
2 parents 059ca36 + ac5a509 commit b0b06fd
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions bin/meshroom_photogrammetry
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,8 @@ elif os.path.isfile(args.input) and os.path.splitext(args.input)[-1] in ('.json'
# args.input is a sfmData file: setup pre-calibrated views and intrinsics
from meshroom.nodes.aliceVision.CameraInit import readSfMData
views, intrinsics = readSfMData(args.input)
else:
raise RuntimeError(args.input + ': format not supported')

# initialize photogrammetry pipeline
if args.pipeline:
Expand All @@ -89,6 +91,9 @@ if args.pipeline:
# reset graph inputs
cameraInit.viewpoints.resetValue()
cameraInit.intrinsics.resetValue()
# add views and intrinsics (if any) read from args.input
cameraInit.viewpoints.extend(views)
cameraInit.intrinsics.extend(intrinsics)

if not graph.canComputeLeaves:
raise RuntimeError("Graph cannot be computed. Check for compatibility issues.")
Expand Down

0 comments on commit b0b06fd

Please sign in to comment.