banner



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....

alt text

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

user avatar

4

  • 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

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.

user avatar

waldyrious

3,353 4 gold badges 32 silver badges 38 bronze badges

answered January 3, 2011 at 21:42

user avatar

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

user avatar

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

user avatar

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.

user avatar

Peter O.

30.8k 14 gold badges 76 silver badges 92 statuary badges

answered Dec 12, 2011 at 5:22

user avatar

I think this App uses the arroyo MisterSquonk mentioned (its free). Lookout the "Trigonometry" technique.

answered December 27, 2011 at xi:49

user avatar

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

user avatar

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

user avatar

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

user avatar

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

user avatar

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

0 Response to "Is There A Camera That Measures Distance"

Post a Comment

Iklan Atas Artikel

Iklan Tengah Artikel 1

Iklan Tengah Artikel 2

Iklan Bawah Artikel