[mousetrap] BugFix: changed [] by cvPoint



commit 3d33102691e0a48724732f8f74fab6d073693490
Author: Flavio Percoco Premoli <flaper87 gmail com>
Date:   Sat Mar 27 02:41:50 2010 +0100

    BugFix: changed [] by cvPoint

 src/mousetrap/ocvfw/dev/camera.py |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/mousetrap/ocvfw/dev/camera.py b/src/mousetrap/ocvfw/dev/camera.py
index a7a4cf4..c7e9915 100644
--- a/src/mousetrap/ocvfw/dev/camera.py
+++ b/src/mousetrap/ocvfw/dev/camera.py
@@ -228,7 +228,7 @@ class Capture(object):
             co.cv.cvRectangle( self.__image, co.cv.cvPoint(rect.x, rect.y), co.cv.cvPoint(rect.size[0], rect.size[1]), co.cv.CV_RGB(255,0,0), 3, 8, 0 )
 
     def draw_point(self, x, y):
-        co.cv.cvCircle(self.__image, [x,y], 3, co.cv.cvScalar(0, 255, 0, 0), -1, 8, 0)
+        co.cv.cvCircle(self.__image, co.cv.cvPoint(x,y), 3, co.cv.cvScalar(0, 255, 0, 0), -1, 8, 0)
 
     def original(self):
         """



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]