From c869bb60fbe8c2858fcffee2c9c5001f8385cea6 Mon Sep 17 00:00:00 2001 From: gac-S_Changer Date: Wed, 5 Jul 2017 14:42:27 +0200 Subject: [PATCH] Script execution --- script/imgproc/LedDetectionProc.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/script/imgproc/LedDetectionProc.py b/script/imgproc/LedDetectionProc.py index aa1fdc5..290b4db 100644 --- a/script/imgproc/LedDetectionProc.py +++ b/script/imgproc/LedDetectionProc.py @@ -9,7 +9,7 @@ number_backgrounds = 5 minimum_size = 150 maximum_size = 1200 min_circ = 0.2 -threshold_method = "MaxEntropy" if room_temp else "Default" +threshold_method = "MaxEntropy" if room_temp else "Mean" #Intermodes, IsoData exclude_edges = True set_led_range(room_temp) @@ -45,6 +45,7 @@ renderer.clearOverlays() invert(image) auto_threshold(image, method = threshold_method) #Tested ok: MaxEntropy, Triangle, Yen +#renderer = show_panel(image.getBufferedImage()) #binary_open(aux) (r,output) = analyse_particles(image, minimum_size,maximum_size, fill_holes = True, exclude_edges = exclude_edges, print_table=False,