[mousetrap-list] Fix type passed to cvCircle
- From: Samuel Thibault <samuel thibault ens-lyon org>
- To: mousetrap-list gnome org
- Subject: [mousetrap-list] Fix type passed to cvCircle
- Date: Fri, 19 Mar 2010 01:26:03 +0100
Hello,
cvCircle insists on getting a tuple, not an array.
Samuel
diff --git a/src/mousetrap/ocvfw/dev/camera.py b/src/mousetrap/ocvfw/dev/camera.py
index a7a4cf4..a3395ac 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, (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]