Mercurial Hosting > traffic-intelligence
comparison scripts/classify-objects.py @ 793:b1b624504388 dev
corrected bug in script
author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
---|---|
date | Mon, 02 May 2016 14:59:55 -0400 |
parents | 1158a6e2d28e |
children | 8eb8a6bd70e8 |
comparison
equal
deleted
inserted
replaced
792:ee3433fc0026 | 793:b1b624504388 |
---|---|
82 width = int(capture.get(cv2.CAP_PROP_FRAME_WIDTH)) | 82 width = int(capture.get(cv2.CAP_PROP_FRAME_WIDTH)) |
83 height = int(capture.get(cv2.CAP_PROP_FRAME_HEIGHT)) | 83 height = int(capture.get(cv2.CAP_PROP_FRAME_HEIGHT)) |
84 | 84 |
85 pastObjects = [] | 85 pastObjects = [] |
86 if params.undistort: # setup undistortion | 86 if params.undistort: # setup undistortion |
87 [map1, map2] = computeUndistortMaps(width, height, undistortedImageMultiplication, intrinsicCameraMatrix, distortionCoefficients) | 87 [map1, map2] = cvutils.computeUndistortMaps(width, height, undistortedImageMultiplication, intrinsicCameraMatrix, distortionCoefficients) |
88 if capture.isOpened(): | 88 if capture.isOpened(): |
89 ret = True | 89 ret = True |
90 frameNum = timeInterval.first | 90 frameNum = timeInterval.first |
91 capture.set(cv2.CAP_PROP_POS_FRAMES, frameNum) | 91 capture.set(cv2.CAP_PROP_POS_FRAMES, frameNum) |
92 lastFrameNum = timeInterval.last | 92 lastFrameNum = timeInterval.last |