Ask Your Question

Display a rectified video (stereo camera)

asked 2016-08-19 11:02:04 -0500

zohra gravatar image

Hi all, I have a streo camera, I calibrited it and I rectified the images also. Now, I want to display the video (online) with the corrections of calibration and rectification. How can I do this ?


edit retag flag offensive close merge delete


LBerger gravatar imageLBerger ( 2016-08-19 11:10:06 -0500 )edit

1 answer

Sort by ยป oldest newest most voted

answered 2016-08-19 15:53:58 -0500

Jordan.Brenner gravatar image

The function Undistort can be used to display the rectification. Try something like this:

# Left camera
dst1=cv2.undistort(vidL,cameraMatrixLeft,distCoeffsLeft) # apply calibration to left camera
cv2.namedWindow('Left Calibrated',cv2.WINDOW_NORMAL) # resizeable window
cv2.imshow('Left Calibrated',dst1) # display left image
# Right camera
dst2=cv2.undistort(vidR,cameraMatrixRight,distCoeffsRight) # apply calibration to right camera
cv2.namedWindow('Right Calibrated',cv2.WINDOW_NORMAL) # resizeable window
cv2.imshow('Right Calibrated',dst2) # display right image

Cheers, Jordan

edit flag offensive delete link more



From here you can write the video to a file and then upload it.

Jordan.Brenner gravatar imageJordan.Brenner ( 2016-08-19 15:55:00 -0500 )edit

Question Tools

1 follower


Asked: 2016-08-19 11:02:04 -0500

Seen: 98 times

Last updated: Aug 19 '16