Ask Your Question
0

Display a rectified video (stereo camera)

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

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 ?

Thanks.

edit retag flag offensive close merge delete

Comments

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

1 answer

Sort by ยป oldest newest most voted
0

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

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

Comments

1

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 -0600 )edit

Question Tools

1 follower

Stats

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

Seen: 193 times

Last updated: Aug 19 '16