Is There A Camera That Measures Distance
ten Answers 10
I take the question has been answered fairly (with the obvious caveats of requiring level basis and possible accuracy issues) only for those who don't believe it can be washed or that it needs a video camera, let me explain the low-level math needed to do it....
The picture above shows me standing outside my firm. The horizontal (d) is the distance I want to measure and the vertical (h) is the height in a higher place the basis at which I'm property the camera. In this example 'h' is a known value when I'g holding the android camera at middle-level (approx 67 inches or 1.7 metres). When I tilt the photographic camera to aim it directly at the point my house meets the ground, all the software needs to practice is piece of work out the angle (a) relative to vertical and it can calculate 'd' using...
d = h * tan a
answered Jan 4, 2011 at 0:23
SquonkSquonk
48.3k 18 gold badges 101 silverish badges 135 bronze badges
4
Well yous should read how ithinkdiff.com "measures" the distance:
Uses the angle of the iPhone to gauge the distance to a signal on the ground. Agree the iPhone in forepart of you, align the point in the camera and get a directly reading of the distance. The altitude tin then be used in the speed tool.
Then basically information technology takes the height of where you agree the phone (eye-level), and so you lot must point the camera to the signal where object touches the footing. Then the phone measures the inclination and with uncomplicated trigonometry it calculates distance.
This is of course not very accurate. It gets less accurate the farther the object is. Also it assumes that the ground is level.
waldyrious
3,353 4 gold badges 32 silver badges 38 bronze badges
answered January 3, 2011 at 21:42
Peter KnegoPeter Knego
79.5k ten golden badges 122 silver badges 151 bronze badges
1
-
It IS possible then. Not accurate merely possible :)
Jan three, 2011 at 21:57
Nope. The camera can but requite you image information and an paradigm alone doesn't requite you lot enough data to give you depth data. If you lot had multiple images that you had location data for or fifty-fifty video y'all could then process information technology to triangulate the distance, but a single image alone would not exist enough to give you a distance.
answered January 3, 2011 at 21:24
Daniel DiPaoloDaniel DiPaolo
53.5k 14 gold badges 112 silver badges 113 statuary badges
six
-
But with videocamera it is? I want to develop application like this on iPhone ithinkdiff.com/…
Jan three, 2011 at 21:29
-
Well, it'southward not quite equally simple equally "push, get altitude", just information technology would be more likely to be possible. But it'd still require y'all to accept information about the location at various points throughout the video. If you took video of a wall with a i human foot solid white circle painted on information technology, starting at 10 feet away and closing to 5 feet, you lot could use image processing/geometry to figure out how far away that circle was. For your purposes the general answer is "no".
Jan 3, 2011 at 21:31
-
I added link to video what I want to achieve. If it's possible with iPhone, I think it'south possible with Android. But I need a start, where to brainstorm with.
Jan 3, 2011 at 21:33
-
Y'all'll note that in the very clarification of that product that they crave you to put in the distance to the object being measured. "Uses the camera to find and analyze motion: Set the altitude to the object you desire to measure ..."
Jan 3, 2011 at 21:35
-
@Daniel Simply in video they measure the distance.
Jan 3, 2011 at 21:41
answered Dec 11, 2016 at twenty:29
You lot have the angle in the telephone'southward accelerometer. If y'all calculate the tangent of this angle and multiply information technology by the height of the camera lens, you get the altitude.
Peter O.
30.8k 14 gold badges 76 silver badges 92 statuary badges
answered Dec 12, 2011 at 5:22
ChaseChase
21 one bronze badge
I think this App uses the arroyo MisterSquonk mentioned (its free). Lookout the "Trigonometry" technique.
answered December 27, 2011 at xi:49
intAintA
497 ii gold badges x silverish badges 23 statuary badges
I call back by using FastCV you tin calculate the distance betwixt Camera and the object. In this You dont need to know the angle or the Position of photographic camera that you are belongings above ground Level. take a look at this question here
answered November 21, 2012 at 5:27
kendrelaxmankendrelaxman
439 two golden badges 8 silver badges 19 bronze badges
One fashion to achieve this is using the DPI's in your device. Y'all can accept a picture and summate the tiptop. Simply you'll demand another object every bit a reference then yous volition be able to know the problem with this method could be the perspective betwixt the objects
answered Apr 25, 2016 at 1:53
I think it could be possible doing that using the phone camera. I know that the modern phones use lenses to focus on a object. If it is possible to know their focal length and their position(displacement) to focus on the chosen object it's also possible to determinate the distance.
answered May 24, 2018 at 15:28
strategaDstrategaD
251 2 silver badges 10 bronze badges
No. Only with two cameras in stereo mode, similar the xbox 360 kinect. It takes at to the lowest degree 3 points to triangulate distance.
answered Jan 3, 2011 at 21:32
Not the answer you lot're looking for? Scan other questions tagged android camera distance or inquire your own question.
Source: https://stackoverflow.com/questions/4588485/is-it-possible-to-measure-distance-to-object-with-camera
Posted by: stitesisfuld.blogspot.com
Sextant is a device utilize to summate height of whatever object. May be it help
November 27, 2014 at 6:46
@NicolasTyler the presented draw is correct, if you assume the distance is a straight line. Otherwise you need to conform (add together or subtract) the missing length of the hill from your height.
Nov 23, 2017 at 13:08
@danielpopa Im not saying this is incorrect. Im saying this might non be accurate enough to utilise.
Dec xi, 2017 at 8:34
This solution wont work for object outside ground. For example a hanging light (without knowing the lights altitude)
May 10 at 8:31