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
$\begingroup$
$\endgroup$
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.