Meshroom/meshroom/nodes/aliceVision/SfMDistances.py
2024-09-16 17:50:54 +02:00

63 lines
2 KiB
Python

__version__ = "3.0"
from meshroom.core import desc
from meshroom.core.utils import DESCRIBER_TYPES, VERBOSE_LEVEL
class SfMDistances(desc.AVCommandLineNode):
commandLine = 'aliceVision_sfmDistances {allParams}'
size = desc.DynamicNodeSize('input')
documentation = '''
'''
inputs = [
desc.File(
name="input",
label="Input",
description="SfMData file.",
value="",
),
desc.ChoiceParam(
name="objectType",
label="Type",
description="",
value="landmarks",
values=["landmarks", "cameras"],
),
desc.ChoiceParam(
name="landmarksDescriberTypes",
label="Describer Types",
description="Describer types used to describe an image (only used when using 'landmarks').",
values=DESCRIBER_TYPES,
value=["cctag3"],
exclusive=False,
joinChar=",",
),
desc.StringParam(
name="A",
label="A IDs",
description="It will display the distances between A and B elements.\n"
"This value should be an ID or a list of IDs of landmarks IDs or cameras (UID or filename without extension).\n"
"It will list all elements if empty.",
value="",
),
desc.StringParam(
name="B",
label="B IDs",
description="It will display the distances between A and B elements.\n"
"This value should be an ID or a list of IDs of landmarks IDs or cameras (UID or filename without extension).\n"
"It will list all elements if empty.",
value="",
),
desc.ChoiceParam(
name="verboseLevel",
label="Verbose Level",
description="Verbosity level (fatal, error, warning, info, debug, trace).",
values=VERBOSE_LEVEL,
value="info",
),
]
outputs = [
]