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

Bug#568858: gnome-mousetrap: doesn't work (opencv 1 → 2 problem?)



tags 568858 + upstream patch sid
thanks

Hello,

Could you try to applied the attached patch?

Stefano Costa, le Mon 08 Feb 2010 13:22:41 +0100, a écrit :
> It may be a problem with the new OpenCV 2.0 library.

It seems so, yes, thanks for the report!

Samuel
--- /usr/share/pyshared/mouseTrap/ocvfw.py.orig	2010-02-08 23:03:48.000000000 +0100
+++ /usr/share/pyshared/mouseTrap/ocvfw.py	2010-02-08 23:03:50.000000000 +0100
@@ -270,7 +270,7 @@
             self.storage        = cv.cvCreateMemStorage(0)
             self.imgSize        = cv.cvGetSize (frame)
             self.img            = cv.cvCreateImage ( self.imgSize, 8, 3 )
-            self.img.origin     = frame.origin
+            #self.img.origin     = frame.origin
             self.grey           = cv.cvCreateImage ( self.imgSize, 8, 1 )
             self.yCrCb          = cv.cvCreateImage ( self.imgSize, 8, 3 )
             self.prevGrey       = cv.cvCreateImage ( self.imgSize, 8, 1 )

Reply to: