From 976ec9a258d4a308f162af1443293977446d9d05 Mon Sep 17 00:00:00 2001 From: demoulinv Date: Sat, 9 Sep 2023 17:00:00 +0200 Subject: [PATCH] [Node] colorCheckerDetection: Add options to launch detection process only on images with a name matching a filter. --- .../nodes/aliceVision/ColorCheckerDetection.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) diff --git a/meshroom/nodes/aliceVision/ColorCheckerDetection.py b/meshroom/nodes/aliceVision/ColorCheckerDetection.py index d52379738d..054db432a1 100644 --- a/meshroom/nodes/aliceVision/ColorCheckerDetection.py +++ b/meshroom/nodes/aliceVision/ColorCheckerDetection.py @@ -51,6 +51,22 @@ class ColorCheckerDetection(desc.AVCommandLineNode): value=False, uid=[0], ), + desc.BoolParam( + name="processAllImages", + label="Process All Images", + description="If checked, detection will be launched on all images.\n" + "If unchecked, only images with a name fitting a regular expression are considered.", + value=True, + uid=[0], + ), + desc.File( + name="filter", + label="Filter", + description="Regex to filter images on which he detection will be launched.", + value="*_macbeth.*", + uid=[0], + enabled=lambda node: not node.processAllImages.value + ), desc.ChoiceParam( name="verboseLevel", label="Verbose Level",