mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-05-31 18:06:31 +02:00
Pose Injecting node
This commit is contained in:
parent
6c00826a11
commit
670d949c59
1 changed files with 55 additions and 0 deletions
55
meshroom/nodes/aliceVision/SfMPoseInjecting.py
Normal file
55
meshroom/nodes/aliceVision/SfMPoseInjecting.py
Normal file
|
@ -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 sfmData
|
||||
"""
|
||||
|
||||
inputs = [
|
||||
desc.File(
|
||||
name="input",
|
||||
label="SfMData",
|
||||
description="Input SfMData file.",
|
||||
value="",
|
||||
),
|
||||
desc.File(
|
||||
name="posesFilename",
|
||||
label="Json file",
|
||||
description="Input poses file.",
|
||||
value="",
|
||||
),
|
||||
desc.ChoiceParam(
|
||||
name="rotationFormat",
|
||||
label="Rotation format",
|
||||
description="Defines the rotation format for the input poses"
|
||||
" - 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="SfM File",
|
||||
description="Path to the output SfM file.",
|
||||
value=desc.Node.internalFolder + "sfmData.sfm",
|
||||
)
|
||||
]
|
Loading…
Add table
Add a link
Reference in a new issue