Mercurial > hg > nsaunier > traffic-intelligence
diff scripts/undistort-video.py @ 924:a71455bd8367
work in progress on undistortion acceleration
| author | Nicolas Saunier <nicolas.saunier@polymtl.ca> |
|---|---|
| date | Fri, 07 Jul 2017 18:01:45 -0400 |
| parents | 52aa03260f03 |
| children | dbd81710d515 |
line wrap: on
line diff
--- a/scripts/undistort-video.py Wed Jul 05 23:01:24 2017 -0400 +++ b/scripts/undistort-video.py Fri Jul 07 18:01:45 2017 -0400 @@ -43,6 +43,7 @@ width = int(capture.get(cv2.cv.CV_CAP_PROP_FRAME_WIDTH)) height = int(capture.get(cv2.cv.CV_CAP_PROP_FRAME_HEIGHT)) [map1, map2] = cvutils.computeUndistortMaps(width, height, args.undistortedImageMultiplication, intrinsicCameraMatrix, args.distortionCoefficients) + if capture.isOpened(): ret = True frameNum = args.firstFrameNum
