mirror of
https://github.com/alicevision/Meshroom.git
synced 2025-04-29 10:17:27 +02:00
Use CamelCase for all labels, always end descriptions with periods, and replace the mixed use of single and double quotes with double quotes only.
58 lines
1.6 KiB
Python
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=[],
|
|
)
|
|
]
|