segmenter: replace adaptative threshold by simple threshold in pipe

(cherry picked from commit f6482fcca9abc0f7e027890a57175559a179d060)
This commit is contained in:
Romain Bazile 2021-06-02 18:35:00 +02:00 committed by Romain Bazile
parent 5c005ed619
commit e18d9835ad

View file

@ -48,6 +48,7 @@ import planktoscope.segmenter.ecotaxa
import skimage.util import skimage.util
import skimage.transform import skimage.transform
import skimage.measure import skimage.measure
import skimage.exposure
import cv2 import cv2
import scipy.stats import scipy.stats
import numpy as np import numpy as np
@ -229,7 +230,8 @@ class SegmenterProcess(multiprocessing.Process):
logger.info("Starting the mask creation") logger.info("Starting the mask creation")
pipeline = [ pipeline = [
"adaptative_threshold", # "adaptative_threshold",
"simple_threshold",
"remove_previous_mask", "remove_previous_mask",
"erode", "erode",
"dilate", "dilate",
@ -700,7 +702,9 @@ class SegmenterProcess(multiprocessing.Process):
else: else:
logger.info("There are no objects to export") logger.info("There are no objects to export")
else: else:
logger.info("We are not creating the ecotaxa output archive for this folder") logger.info(
"We are not creating the ecotaxa output archive for this folder"
)
# cleanup # cleanup
# we're done free some mem # we're done free some mem