Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New node for intrinsics and rig calibration using a multiview acquisition of a checkerboard #2171

Merged
merged 2 commits into from
Oct 5, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 57 additions & 0 deletions meshroom/nodes/aliceVision/CheckerboardCalibration.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
__version__ = '1.0'

from meshroom.core import desc


class CheckerboardCalibration(desc.AVCommandLineNode):
commandLine = 'aliceVision_checkerboardCalibration {allParams}'
size = desc.DynamicNodeSize('input')

category = 'Other'
documentation = '''
Estimate the camera intrinsics and extrinsincs on a set of checkerboard images.
'''

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.FloatParam(
name="squareSize",
label="Square Size",
description="Checkerboard square width in mm",
value=10.,
range=(0.1, 100., 0.1),
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=[],
)
]