From 396c5623e9c20dea6374c8e2f0cbaa2e280e32b9 Mon Sep 17 00:00:00 2001 From: Romain Bazile Date: Wed, 2 Jun 2021 14:07:56 +0200 Subject: [PATCH] segmenter: activate option to keep debug images (cherry picked from commit 23e023d6c51a89992e0332aef843e59a180d0fac) --- scripts/planktoscope/segmenter/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/scripts/planktoscope/segmenter/__init__.py b/scripts/planktoscope/segmenter/__init__.py index 8d3ee4f..d603922 100644 --- a/scripts/planktoscope/segmenter/__init__.py +++ b/scripts/planktoscope/segmenter/__init__.py @@ -807,6 +807,9 @@ class SegmenterProcess(multiprocessing.Process): if "ecotaxa" in last_message["settings"]: # generate ecotaxa output archive ecotaxa_export = last_message["settings"]["ecotaxa"] + if "keep" in last_message["settings"]: + # keep debug images + self.__save_debug_img = last_message["settings"]["keep"] # TODO eventually add customisation to segmenter parameters here if "path" in last_message: