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,