Script execution

This commit is contained in:
gac-S_Changer
2017-07-05 14:42:27 +02:00
parent 0f6a08ed30
commit c869bb60fb

View File

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