Mercurial > hg > nsaunier > traffic-intelligence
comparison python/cvutils.py @ 1007:192de96e5255
solved config filename bug
| author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
|---|---|
| date | Sun, 03 Jun 2018 14:14:13 -0400 |
| parents | 666b38437d9a |
| children | a5f2309bb1ff |
comparison
equal
deleted
inserted
replaced
| 1006:2cf861106d17 | 1007:192de96e5255 |
|---|---|
| 310 if distortionCoefficients is not None: | 310 if distortionCoefficients is not None: |
| 311 cmd += ['--distortion-coefficients', ' '.join([str(x) for x in distortionCoefficients])] | 311 cmd += ['--distortion-coefficients', ' '.join([str(x) for x in distortionCoefficients])] |
| 312 if dryRun: | 312 if dryRun: |
| 313 print(cmd) | 313 print(cmd) |
| 314 else: | 314 else: |
| 315 run(cmd, shell = True) | 315 run(cmd) |
| 316 | 316 |
| 317 def displayTrajectories(videoFilename, objects, boundingBoxes = {}, homography = None, firstFrameNum = 0, lastFrameNumArg = None, printFrames = True, rescale = 1., nFramesStep = 1, saveAllImages = False, nZerosFilenameArg = None, undistort = False, intrinsicCameraMatrix = None, distortionCoefficients = None, undistortedImageMultiplication = 1., annotations = [], gtMatches = {}, toMatches = {}, colorBlind = False): | 317 def displayTrajectories(videoFilename, objects, boundingBoxes = {}, homography = None, firstFrameNum = 0, lastFrameNumArg = None, printFrames = True, rescale = 1., nFramesStep = 1, saveAllImages = False, nZerosFilenameArg = None, undistort = False, intrinsicCameraMatrix = None, distortionCoefficients = None, undistortedImageMultiplication = 1., annotations = [], gtMatches = {}, toMatches = {}, colorBlind = False): |
| 318 '''Displays the objects overlaid frame by frame over the video ''' | 318 '''Displays the objects overlaid frame by frame over the video ''' |
| 319 if colorBlind: | 319 if colorBlind: |
| 320 colorType = 'colorblind' | 320 colorType = 'colorblind' |
