Mercurial > hg > nsaunier > traffic-intelligence
comparison scripts/classify-objects.py @ 797:2ffaf1a7cde9 dev
merged
| author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
|---|---|
| date | Mon, 23 May 2016 23:55:06 -0400 |
| parents | 8eb8a6bd70e8 |
| children | 52aa03260f03 |
comparison
equal
deleted
inserted
replaced
| 796:9f8e9fb5621b | 797:2ffaf1a7cde9 |
|---|---|
| 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, params.undistortedImageMultiplication, params.intrinsicCameraMatrix, params.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 |
