From 50304edf58d1bcca52a6e3b3aac412ac88bcc404 Mon Sep 17 00:00:00 2001 From: gac-S_Changer Date: Thu, 17 Nov 2016 10:20:40 +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 e8b19de..c961510 100644 --- a/script/LedDetection.py +++ b/script/LedDetection.py @@ -42,12 +42,12 @@ def detect_led(ip): , maxCirc = 1.0) r=results - print rt.getColumnHeadings() - for row in range (rt.counter): + print r.getColumnHeadings() + for row in range (r.counter): if in_roi(r.getValue("XM",row), r.getValue("YM",row)): - print rt.getRowAsString(row) + print r.getRowAsString(row) else: - print >> sys.stderr, 'Invalid location:' + str(r.getValue("XM", row), r.getValue("YM", row) + print >> sys.stderr, 'Invalid location:' + str(r.getValue("XM", row)) + ", " + str( r.getValue("YM", row)) return (results,output)