Mercurial Hosting > traffic-intelligence
diff python/cvutils.py @ 266:aba9711b3149
small modificatons and reorganization
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Fri, 27 Jul 2012 10:29:24 -0400 |
parents | 571ba5ed22e2 |
children | 9d88a4d97473 |
line wrap: on
line diff
--- a/python/cvutils.py Thu Jul 26 19:46:36 2012 -0400 +++ b/python/cvutils.py Fri Jul 27 10:29:24 2012 -0400 @@ -156,7 +156,9 @@ draw(img, obj.projectedPositions, cvRed, frameNum-obj.getFirstInstant()) cv2.putText(img, '{0}'.format(obj.num), obj.projectedPositions[frameNum-obj.getFirstInstant()].asint().astuple(), cv2.FONT_HERSHEY_PLAIN, 1, cvRed) cv2.imshow('frame', img) - key = cv2.waitKey(50) + key = cv2.waitKey() + if key == 115: + cv2.imwrite('image.png', img) frameNum += 1 def printCvMat(cvmat, out = stdout):