From ab5b02a9ee67f307dc5bb8c01e45aa3b8d446597 Mon Sep 17 00:00:00 2001 From: gac-S_Changer Date: Wed, 21 Jun 2017 16:02:28 +0200 Subject: [PATCH] Closedown --- script/LedDetection.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/script/LedDetection.py b/script/LedDetection.py index 565a283..5487440 100644 --- a/script/LedDetection.py +++ b/script/LedDetection.py @@ -90,6 +90,7 @@ def integrate (ips): op_const(aux, "divide", len(ips), in_place=True) return aux + last_ret = (None, None) x=None def detect_led(ip): @@ -154,10 +155,11 @@ def detect_led(ip): +ip = None class MyFilter(Filter): def process(self, image, data): - global roi_center, roi_radius + global roi_center, roi_radius, ip ip = load_image(image) (results,output) = detect_led(ip) if output is not None: