We know how to create disparity map from stereo vision with OpenCV. My question is How can we find/estimate distance between cameras from two image taken from these cameras in OpenCV?


1 Answer 1


Calibrate your cameras with the same world coordinate system. Use the same checkerboard and take images at the same time with both cameras.

After you have your extrinsic matrices for each camera, you can use this answer here where you need to solve the equation for the position of each camera center in world coordinate system.

Then you can calculate the distance between two coordinates.


Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.