[nodes] KeyframeSelection: add debug parameters

- "computeScores" computes the scores for sharpness and motion on the
input frames at full resolution
- "computeRescaled" computes the scores for sharpness and motion on the
rescaled input frames
- "exportSharpness" exports the computed sharpness scores into a CSV file
- "exportFlow" exports the computed optical flow scores into a CSV file
- "noSelection" stops the execution once the scores have been computed
(and exported, if enabled); the keyframe selection will not be performed
This commit is contained in:
Candice Bentéjac 2022-12-16 16:28:53 +01:00
parent a02adfbc28
commit 77bc977b68

View file

@ -104,6 +104,53 @@ You can extract frames at regular interval by configuring only the min/maxFrameS
exclusive=True,
uid=[],
),
desc.GroupAttribute(
name="debug",
label="Debug Parameters",
description="Debugging options for Keyframe Selection",
group=None,
groupDesc=[
desc.BoolParam(
name='computeScores',
label='Compute Sharpness And Optical Flow Scores',
description='Compute sharpness and optical flow scores on all the input frames, at full resolution.',
value=False,
uid=[0],
),
desc.BoolParam(
name='computeRescaled',
label='Compute Scores Of Rescaled Inputs',
description='Compute, in additon to the sharpness and optical flow scores on full resolution images, the same scores on rescaled images.',
value=True,
enabled=lambda node: node.debug.computeScores.value,
uid=[],
),
desc.BoolParam(
name='exportSharpness',
label='Export Sharpness Scores',
description='Export the sharpness score of each frame into a CSV file.',
value=True,
enabled=lambda node: node.debug.computeScores.value,
uid=[],
),
desc.BoolParam(
name='exportFlow',
label='Export Optical Flow Scores',
description='Export the optical flow score of each frame into a CSV file.',
value=True,
enabled=lambda node: node.debug.computeScores.value,
uid=[],
),
desc.BoolParam(
name='noSelection',
label='Cancel Keyframe Selection',
description='Do not perform the keyframe selection after the score computations.',
value=True,
enabled=lambda node: node.debug.computeScores.value,
uid=[],
)
]),
]
outputs = [