简体   繁体   English

如何计算两个摄像头之间的距离(opencv-python)?

[英]How can I calculate the distance between two cameras (opencv-python)?

I'm using Python.我正在使用 Python。 I have two cameras (left and right) and I'm calibrating them using opencv and its function "calibrateCamera", so I got intrinsics and extrinsics parameters of both cameras and photos.我有两个相机(左和右),我正在使用 opencv 及其 function“calibrateCamera”校准它们,所以我得到了相机和照片的内在和外在参数。

I also have photos taken at the same time with both cameras, so now I have to calculate the distance between them...我也有两个相机同时拍摄的照片,所以现在我必须计算它们之间的距离......

How can I calculate it?我该如何计算呢?

You could use euclidean distance.你可以使用欧几里得距离。 https://en.wikipedia.org/wiki/Euclidean_distance specifically the three dimensions https://en.wikipedia.org/wiki/Euclidean_distance具体是三个维度

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何使用 openCV 在两个相机之间转换坐标? - How can I transform coordinate between two cameras using openCV? 如何使用 python opencv 计算两个人之间的距离? - How to calculate distance between two person using python opencv? 如何计算 Python OpenCV 中两个 ndarray 之间的欧几里得距离 - How to calculate euclidean distance between two ndarrays in Python OpenCV 如何使用 OpenCV-Python 更改某个区域的色调 - How can I change the hue of a certain area with OpenCV-Python 如何清理这张图片(opencv-python)? - How can I clean this picture up (opencv-python)? 如何使用 opencv-python 在此图像上找到平行线? - How can I find parellel line on this image with opencv-python? 如何在opencv-python中的单独图像中选择ROI? - How can I select ROI in a separate image in opencv-python? 如何优化 python 代码来计算两个 GPS 点之间的距离 - how can I optimize a python code to calculate distance between two GPS Points 如何使用 python 和 opencv 在图像上绘制两个轮廓,它们之间的轮廓距离为 100 像素 - How can I draw two contours on an image given a contour distance of 100 pixels between them using python and opencv 如何找到两个圆之间的距离。 OPENCV.Python - How to find distance between two circle. OPENCV.Python
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM