Quote:
Originally Posted by davidthefat
The distance of an object purely based on cameras, if you think about it, you will get it very easily, I need diagrams to explain it and might take long time to actually explain though. One phrase: Isosceles triangle with a known base
|
If this is the only extent you are using this for, I think the simplest method is using an approximating equation based on just one camera.
We've tried this in the past and our greatest error was about 2inches (at a distance of 52 feet). Basically, all you have to do is take a bunch of values of the width or length of the blob versus the the actual measured distance from the camera to the object. Since sight is logarithmic, take a calculator, plug in the datapoints, generate a logarithmic regression and you're good to go.
Edit: Of course, I am speaking in terms of the last 2 games, for which 2 inches would have been a small enough tolerance.