From 5c2d850689ffa5f9f0af2e724377353ea84237c2 Mon Sep 17 00:00:00 2001 From: gac-S_Changer Date: Thu, 17 Nov 2016 14:43:44 +0100 Subject: [PATCH] Script execution --- script/LedDetection.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/script/LedDetection.py b/script/LedDetection.py index cd2d8cb..5b6d732 100644 --- a/script/LedDetection.py +++ b/script/LedDetection.py @@ -22,7 +22,7 @@ def detect_led(ip): roi_center = (2322, 1025) roi_radius = 700 -integration_count = 5 +integration_count = 10 integration_continuous = False integration_partial = False frames = [] @@ -111,14 +111,21 @@ def detect_led(ip): , maxCirc = 1.0) r=results + """ print "\n" - print r.getColumnHeadings() + print r.getColumnHeadings() for row in range (r.counter): if in_roi(r.getValue("XM",row), r.getValue("YM",row)): print r.getRowAsString(row) else: #print >> sys.stderr, 'Invalid location:' + str(r.getValue("XM", row)) + ", " + str( r.getValue("YM", row)) print >> sys.stderr, r.getRowAsString(row) + """ + points = "" + for row in range (r.counter): + points = points + " (" + str(int(r.getValue("XM", row))) + ", " + str(int(r.getValue("YM", row))) + ")" + print str(r.counter) + " - " + points + #return (results,aux) last_ret = (results,output) if not integration_continuous: