-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #2597 from alicevision/dev/injectLineup
[nodes] Add new `SfMPoseInjecting` node
- Loading branch information
Showing
1 changed file
with
55 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
__version__ = "1.0" | ||
|
||
from meshroom.core import desc | ||
from meshroom.core.utils import VERBOSE_LEVEL | ||
|
||
import json | ||
|
||
class SfMPoseInjecting(desc.AVCommandLineNode): | ||
|
||
commandLine = "aliceVision_sfmPoseInjecting {allParams}" | ||
size = desc.DynamicNodeSize("input") | ||
|
||
category = "Utils" | ||
documentation = """ | ||
Use a JSON file to inject poses inside the SfMData. | ||
""" | ||
|
||
inputs = [ | ||
desc.File( | ||
name="input", | ||
label="SfMData", | ||
description="Input SfMData file.", | ||
value="", | ||
), | ||
desc.File( | ||
name="posesFilename", | ||
label="Poses", | ||
description="Input JSON file containing the poses.", | ||
value="", | ||
), | ||
desc.ChoiceParam( | ||
name="rotationFormat", | ||
label="Rotation Format", | ||
description="Defines the rotation format for the input poses:\n" | ||
" - EulerZXY: Euler rotation in degrees (Y*X*Z)", | ||
values=["EulerZXY"], | ||
value="EulerZXY", | ||
), | ||
desc.ChoiceParam( | ||
name="verboseLevel", | ||
label="Verbose Level", | ||
description="Verbosity level (fatal, error, warning, info, debug, trace).", | ||
values=VERBOSE_LEVEL, | ||
value="info", | ||
), | ||
] | ||
|
||
outputs = [ | ||
desc.File( | ||
name="output", | ||
label="SfMData", | ||
description="Path to the output SfM file.", | ||
value=desc.Node.internalFolder + "sfmData.sfm", | ||
), | ||
] |