diff --git a/script/LedDetection.py b/script/LedDetection.py index 5487440..6e53ce5 100644 --- a/script/LedDetection.py +++ b/script/LedDetection.py @@ -115,8 +115,9 @@ def detect_led(ip): #aux = get_channel(aux, "blue") invert(aux) - #subtract_background(aux) - auto_threshold(aux) + #subtract_background(aux) + #Tested ok: Mean, MaxEntropy, MaxEntropy, Percentile, RenyiEntropy, Triangle, Yen + auto_threshold(aux, method = "Yen") #binary_open(aux) (results,output) = analyse_particles(aux, 250,1000, fill_holes = True, exclude_edges = False, print_table=False,