From 01703358df8a91474f0dc6197075cebf927eeed1 Mon Sep 17 00:00:00 2001 From: gac-S_Changer Date: Wed, 5 Jul 2017 14:31:28 +0200 Subject: [PATCH] Script execution --- script/imgproc/LedDetectionProc.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/script/imgproc/LedDetectionProc.py b/script/imgproc/LedDetectionProc.py index 382de5f..d689afb 100644 --- a/script/imgproc/LedDetectionProc.py +++ b/script/imgproc/LedDetectionProc.py @@ -6,6 +6,9 @@ room_temp = False number_frames = 5 number_backgrounds = 5 +minimum_size = 150 +maximum_size = 1000 +min_circ = 0.8 set_led_range(room_temp) @@ -41,9 +44,9 @@ invert(image) auto_threshold(image, method = "MaxEntropy" if room_temp else "Default") #Tested ok: MaxEntropy, Triangle, Yen #binary_open(aux) -(r,output) = analyse_particles(image, 150,1000, +(r,output) = analyse_particles(image, minimum_size,maximum_size, fill_holes = True, exclude_edges = False, print_table=False, - output_image = "outlines", minCirc = 0.3 + output_image = "outlines", minCirc = min_circ , maxCirc = 1.0) points = ""