Mercurial Hosting > traffic-intelligence
diff python/moving.py @ 223:c31722fcc9de
minor modifications for integer drawing in OpenCV
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Tue, 26 Jun 2012 03:29:57 -0400 |
parents | 9c7fc6899c0e |
children | e0988a8ace0c |
line wrap: on
line diff
--- a/python/moving.py Tue Jun 26 02:08:01 2012 -0400 +++ b/python/moving.py Tue Jun 26 03:29:57 2012 -0400 @@ -159,6 +159,9 @@ def astuple(self): return (self.x, self.y) + def asint(self): + return Point(int(self.x), int(self.y)) + def project(self, homography): from numpy.core.multiarray import array projected = cvutils.projectArray(homography, array([[self.x], [self.y]]))