Closedown

This commit is contained in:
gac-S_Changer
2017-07-11 13:14:26 +02:00
parent 7733bbf623
commit 1403f7baf0

View File

@@ -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