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)