comparison python/cvutils.py @ 1005:666b38437d9a

bug corrected
author Nicolas Saunier <nicolas.saunier@polymtl.ca>
date Sun, 03 Jun 2018 00:42:13 -0400
parents 75601be6019f
children 192de96e5255
comparison
equal deleted inserted replaced
1004:75601be6019f 1005:666b38437d9a
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) 315 run(cmd, shell = True)
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'