From 1403f7baf0075fd5fd8f8074b313ac5337b220e3 Mon Sep 17 00:00:00 2001 From: gac-S_Changer Date: Tue, 11 Jul 2017 13:14:26 +0200 Subject: [PATCH] Closedown --- script/local.py | 42 ++++++++++++++++++++---------------------- 1 file changed, 20 insertions(+), 22 deletions(-) diff --git a/script/local.py b/script/local.py index 7458cc4..1cd69f4 100644 --- a/script/local.py +++ b/script/local.py @@ -86,29 +86,27 @@ def get_image(): grayscale(ret, do_scaling=True) return ret -""" -def detect_pucks(ip): - """ - """ - aux = grayscale(ip, in_place=False) - threshold(aux,0,50) - binary_fill_holes(aux) - return analyse_particles(aux, 10000,50000, - fill_holes = False, exclude_edges = True,print_table=True, - output_image = "outlines", minCirc = 0.4, maxCirc = 1.0) +#def detect_pucks(ip): +# """ +# """ +# aux = grayscale(ip, in_place=False) +# threshold(aux,0,50) +# binary_fill_holes(aux) +# return analyse_particles(aux, 10000,50000, +# fill_holes = False, exclude_edges = True,print_table=True, +# output_image = "outlines", minCirc = 0.4, maxCirc = 1.0) +# +#def detect_samples(ip): +# """ +# """ +# aux = grayscale(ip, in_place=False) +# invert(aux) +# subtract_background(aux) +# auto_threshold(aux) +# binary_open(aux) +# return analyse_particles(aux, 250,1000, +# fill_holes = False, exclude_edges = True,print_table=True, -def detect_samples(ip): - """ - """ - aux = grayscale(ip, in_place=False) - invert(aux) - subtract_background(aux) - auto_threshold(aux) - binary_open(aux) - return analyse_particles(aux, 250,1000, - fill_holes = False, exclude_edges = True,print_table=True, - output_image = "outlines", minCirc = 0.7, maxCirc = 1.0) -""" r,g,b = [0]*256,[0]*256,[0]*256 b[0]=0xFF