Meshroom/meshroom/nodes/aliceVision/DistortionCalibration.py
Candice Bentéjac 5c2865968d [nodes] D-G: Harmonize and improve labels and descriptions
Use CamelCase for all labels, always end descriptions with periods, and
replace the mixed use of single and double quotes with double quotes
only.
2023-06-16 10:31:03 +02:00

58 lines
1.6 KiB
Python

__version__ = '3.0'
from meshroom.core import desc
class DistortionCalibration(desc.AVCommandLineNode):
commandLine = 'aliceVision_distortionCalibration {allParams}'
size = desc.DynamicNodeSize('input')
category = 'Other'
documentation = '''
Calibration of a camera/lens couple distortion using a full screen checkerboard.
'''
inputs = [
desc.File(
name="input",
label="Input SfMData",
description="SfMData file.",
value="",
uid=[0],
),
desc.File(
name="checkerboards",
label="Checkerboards Folder",
description="Folder containing checkerboard JSON files.",
value="",
uid=[0],
),
desc.ChoiceParam(
name="cameraModel",
label="Camera Model",
description="Camera model used to estimate distortion.",
value="3deanamorphic4",
values=["3deanamorphic4"],
exclusive=True,
uid=[0],
),
desc.ChoiceParam(
name="verboseLevel",
label="Verbose Level",
description="Verbosity level (fatal, error, warning, info, debug, trace).",
value="info",
values=["fatal", "error", "warning", "info", "debug", "trace"],
exclusive=True,
uid=[],
),
]
outputs = [
desc.File(
name="output",
label="SfMData File",
description="Path to the output SfMData file.",
value=desc.Node.internalFolder + "sfmData.sfm",
uid=[],
)
]