Stereo Vision Camera Calibration with OpenCV: How to Calibrate your Camera with Python Script

preview_player
Показать описание


You will also get access to all the technical courses inside the program, also the ones I plan to make in the future! Check out the technical courses below 👇

_____________________________________________________________

In this video 📝 We'll talk about Stereo Vision Camera Calibration in Python with OpenCV. First, we will talk about what camera calibration is and how to do it. I'll provide all the scripts in my GitHub so you can calibrate your own cameras for stereo vision. We will go over the whole calibration process and see what the OpenCV methods do. At the end of the video, we will see the calibration results after undistorting and rectifying our images.

If you enjoyed this video, be sure to press the 👍 button so that I know what content you guys like to see.

_____________________________________________________________

_____________________________________________________________

_____________________________________________________________

📷 Calibrator 📷
My camera calibration software, CharuCo Boards, and Checker boards

_____________________________________________________________

📞 Connect with Me:

_____________________________________________________________

🎮 My Gear (Affiliate links):
🖥️ Desktop PC:

_____________________________________________________________

Timestamps:
0:00 - Introduction
3:37 - Generate Chessboard Images
7:56 - Stereo Camera Calibration
22:15 - Undistort and Rectify Stereo Camera

Tags:
#CameraCalibration #StereoCalibration #OpenCV #CameraCalibrationOpenCV #CameraDistortion #ComputerVision
Рекомендации по теме
Комментарии
Автор

You are the best computer vision teacher ever. Love all of your videos!!!

candysugarsosweet
Автор

This is the best openCV tutorial to explain image rectification I found. Great job! Quick question - do you have tutorial or sample code to use those rectified cameras to construct a stereo vision application/system?

xlixu
Автор

where do I get my K matrix, R, T values like I need to manually put them in for my 3D reconstruction algo, but where do I find the actual values? I don't understand what stereo map is

lockdown-vqbz
Автор

Hi, Thanks for the amazing video Nicolai. Just wondering if we have target in the view then why do we need to use stereoCalibrate? Why can't we just use solvepnp to get individual extrinsic and then just combine them to get it for two cameras?

MrManthansharma
Автор

Thank u very much! i learned a lot from this video, it's very clear.

XuehzhenZHANG
Автор

Hi, great video! How would you alter the code if fisheye cameras are being used? I'm currently using 2 ov271 modules with a large fov and the results seems very distorted (the best I've gotten are 2 spherical looking frames for the remap. Other than that the chessboard detection seems to work perfectly. Any ideas?

adamhaze
Автор

Hi, thank you for the video. I am not able to find the codes for stereo calibration in your github. Could you tell me where I can find it?

deepakantonydavid
Автор

Hi, How would you use same procedure with one camera that is a fisheye camera ? (and the other have not a lot of distorsion)

JaMorel-jmho
Автор

I notice that at higher depths or the closer the camera the depth starts to deviate. On average distance very accurate, Isn't it necessary to hold the checkerboard further and closer to the camera during calibration? Very informative videos keep it up!!!

TheBriandegroot
Автор

I tried the code but I always get the error: cv2.error: OpenCV(4.6.0) error: (-215:Assertion failed) nimages > 0 in function 'cv::calibrateCameraRO'
what is the reason and what can I do to fix this ?
Thanks in advance.

jlh
Автор

Hi, I couldn't find the repo. What is it called?

bishopduperret
Автор

still trying to figure out why we need to pass cv2.DSHOW to VideoCapture() in stereovision.py. Also, I don't think DSHOW is an API on MacOS, so what is the alternative for mac?

xlixu
Автор

Thank you for the great work you do!
Can you please tell me how to do the calibration for "Camarray – Arducam 12MP Synchronized Stereo Camera Bundle Kit"?
I can only call videocapture0. so i have commented out the call to videocapture2 and so only one window comes up with an image of both lenses, but halved in the middle.
Thank you in advance.

sarrabm
Автор

Could i using (trans variable) that return from cv.stereoCalibrate to get baseline<baseline = np.linalg.norm(trans)> to calculate depth with zDepth = (baseline*f_pixel)/disparity? Because I don’t want to manually measure distance between two cameras.

gerssiwakorn
Автор

hello
I have some question about projector calibration
if i build a one-shot structured light system, how do I do projector calibration?
It's the same way like camera calibration or I need to capture the chessboard image in difference position with projected SL pattern?

gba
Автор

Great Video. Could you try to give a tutorial for Charuco intrensic and extrensic Calibration used by stereocameras (RGB with depth) and monocameras (RGB) via python?

Denniserdogan
Автор

Hello, I have 2 camera that i calibrated (1 web cam and 1 fisheye) and now i want to show where are the 4 corners of the webcam in the fisheye camera do you have any idea how to do it?

DridryzPvpfaction
Автор

Great video! What would it take for fisheye (FOV: 220°) calibration and stereo rectification? The baseline would be 40 meters.

maxaragon
Автор

how do you generate and display the chessboard pattern on the iPad?

victorwhwu
Автор

I am getting this error: retL, cameraMatrixL, distL, rvecsL, tvecsL = cv.calibrateCamera(objpoints, imgpointsL, frameSize, None, None)
cv2.error: OpenCV(4.8.0) error: (-215:Assertion failed) nimages > 0 in function 'cv::calibrateCameraRO'. Please help.

vardhanviswanath