From efa18884acac408fe22812aefff26fcf98cfb9ac Mon Sep 17 00:00:00 2001 From: gac-S_Changer Date: Thu, 22 Jun 2017 14:38:21 +0200 Subject: [PATCH] Script execution --- script/LedDetectionFilter.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/script/LedDetectionFilter.py b/script/LedDetectionFilter.py index 86a5397..a4818d8 100644 --- a/script/LedDetectionFilter.py +++ b/script/LedDetectionFilter.py @@ -15,6 +15,7 @@ integration_count = 10 integration_continuous = False integration_partial = False frames = [] +roi = get_roi() color_roi = Color(0, 128, 0) @@ -32,7 +33,7 @@ renderer.addOverlays([ov_roi_shape, ov_roi_bound,ov_roi_center]) last_ret = (None, None) def detect_led(ip): - roi = get_roi + roi = get_roi() global roi_center, roi_radius, integration_count, integration_continuous, integration_partial, frames global count , last_ret aux = sub_image(ip, roi[0], roi[1], roi[2], roi[3])