Mercurial Hosting > traffic-intelligence
diff python/cvutils.py @ 156:2eef5620c0b3
added key values for opencv
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Thu, 08 Sep 2011 19:24:42 -0400 |
parents | 668710d4c773 |
children | 115f7f90286d |
line wrap: on
line diff
--- a/python/cvutils.py Thu Sep 08 19:24:29 2011 -0400 +++ b/python/cvutils.py Thu Sep 08 19:24:42 2011 -0400 @@ -24,6 +24,10 @@ cvGreen, cvBlue]) +cvKeyNumbers = {'a':1048673, + 'n': 1048686, + 'y': 1048697} + def drawLines(filename, origins, destinations, w = 1, resultFilename='image.png'): '''Draws lines over the image ''' @@ -158,4 +162,5 @@ if len(delta) >= minNMatches: return median(delta, axis=0) else: + print(dp) return None