Mercurial > hg > nsaunier > traffic-intelligence
comparison python/cvutils.py @ 969:5d788d2e8ffc
work in progress
| author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
|---|---|
| date | Thu, 07 Dec 2017 17:03:09 -0500 |
| parents | 373e8ef6ee25 |
| children | 184f1dd307f9 |
comparison
equal
deleted
inserted
replaced
| 968:32a34a143c27 | 969:5d788d2e8ffc |
|---|---|
| 24 from numpy import dot, array, append, float32, loadtxt, savetxt, append, zeros, ones, identity, abs as npabs, logical_and, unravel_index, sum as npsum, isnan, mgrid, median, floor as npfloor, ceil as npceil | 24 from numpy import dot, array, append, float32, loadtxt, savetxt, append, zeros, ones, identity, abs as npabs, logical_and, unravel_index, sum as npsum, isnan, mgrid, median, floor as npfloor, ceil as npceil |
| 25 from numpy.linalg import inv | 25 from numpy.linalg import inv |
| 26 from matplotlib.mlab import find | 26 from matplotlib.mlab import find |
| 27 from matplotlib.pyplot import imread, imsave | 27 from matplotlib.pyplot import imread, imsave |
| 28 | 28 |
| 29 | 29 videoFilenameExtensions = ['mov', 'avi', 'mp4', 'MOV', 'AVI', 'MP4'] |
| 30 | 30 |
| 31 #import aggdraw # agg on top of PIL (antialiased drawing) | 31 #import aggdraw # agg on top of PIL (antialiased drawing) |
| 32 | 32 |
| 33 | 33 |
| 34 cvRed = {'default': (0,0,255), | 34 cvRed = {'default': (0,0,255), |
