iPhone iOS是可能创建一个测距仪2激光指针和iPhone? [英] iPhone iOS is it possible to create a rangefinder with 2 laser pointers and an iPhone?

查看:168
本文介绍了iPhone iOS是可能创建一个测距仪2激光指针和iPhone?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在做一个iPhone移动的机器人。其中一个挑战是估计到物体的距离 - 我不想让机器人碰到事物。我看到一些非常昂贵的(〜1000 $)激光测距仪,并想要模拟一个使用iPhone。

I'm working on an IPhone robot that would be moving around. One of the challenges is estimating distance to objects- I don't want the robot to run into things. I saw some very expensive (~1000$) laser rangefinders, and would like to emulate one using iPhone.

我有一个或两个相机馈源和两个激光指示器。激光指示器以一定角度间隔开约6英寸安装。激光器相对于照相机的角度是已知的。彼此之间的角度是已知的。

I got one or two camera feeds and two laser pointers. The laser pointers are mounted about 6 inches apart, at an angle The angle of lasers in relation to the cameras is known. The Angle of cameras to each other is known.

激光器指向相机前方,在相机馈送上创建2个点。是否可以通过查看相机图像中的点之间的距离来估计到点的距离。

The lasers are pointing ahead of cameras, creating 2 dots on a camera feed. Is it possible to estimate the distance to the dots by looking at the distance between the dots in a camera image?

激光从

    /wall    \
   /          \
  /laser mount \

随着激光器安装靠近墙壁,点应该彼此远离。

As the laser mount gets closer to the wall, the points should be moving further away from each other.

我所说的可行吗?

Is what I'm talking about feasible? Has anyone done something like that?

我需要一个或两个相机进行这样的计算吗?

Would I need one or two cameras for such calculation?

推荐答案

如果你只是不想碰到事情,而不是准确地知道它们的距离,那么你可以去dambusters,并检测什么时候两个点变成一个 - 这将在距物体的已知距离处。

If you just don't want to run into things, rather than have an accurate idea of the distance to them, then you could go "dambusters" on it and just detect when the two points become one - this would be at a known distance from the object.

对于计算,使用四个激光器,两对,每对在不同的角度,一对在另一个之上probaby便宜。然后,点的相对差异之间的比较可能会让你工作一个相当准确的距离。数学溢出,那一个,虽然。

For calculation, it is probaby cheaper to have four lasers instead, in two pairs, each pair at a different angle, one pair above the other. Then a comparison between the relative differences of the dots would probably let you work out a reasonably accurate distance. Math overflow for that one, though.

这篇关于iPhone iOS是可能创建一个测距仪2激光指针和iPhone?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆