From b4861a58b01b19c8379bc83e944b394fb991cf8f Mon Sep 17 00:00:00 2001 From: gac-S_Changer Date: Thu, 17 Nov 2016 09:49:21 +0100 Subject: [PATCH] Script execution --- script/LedDetection.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/script/LedDetection.py b/script/LedDetection.py index ce3c817..59f6791 100644 --- a/script/LedDetection.py +++ b/script/LedDetection.py @@ -23,7 +23,7 @@ def detect_led(ip): def detect_led(ip): aux = grayscale(ip, in_place=False) invert(aux) - subtract_background(aux) + #subtract_background(aux) auto_threshold(aux) binary_open(aux) return analyse_particles(aux, 900,2500, @@ -36,10 +36,10 @@ class MyFilter(Filter): def process(self, image, data): ip = load_image(image) (results,output) = detect_led(ip) - set_lut(output, outline_lut1[0], outline_lut1[1], outline_lut1[2]) + #set_lut(output, outline_lut1[0], outline_lut1[1], outline_lut1[2]) op_image(ip, output, "and") - #return ip.getBufferedImage() - return output.getBufferedImage() + return ip.getBufferedImage() + #return output.getBufferedImage() #Setting the filter to a source img.setFilter(MyFilter())