|
Re: Question from a Coach
Quote:
Originally Posted by Greg McKaskle
A white paper is or should be posted on the NI site before too long that explains some approaches to processing images.
There are a number of techniques for calculating distance, but the straightforward one is to use the known width of the target and the information about the camera lens optics. You can find the optics view angle on the Axis web site.
Basically, if a target width is known, camera resolution is known, and lens info is known, you can calculate distance pretty accurately to a target located at any of the heights.
Greg McKaskle
|
I currently have a SubVi in Labview that calculates the distance to an object based off its width, and the angles you are viewing its edges.
However, I don't currently understand the stuff about the camera optics.
To get the angle that the camera is viewing the object at, is it an ArcCos function?
(pretty sure ArcCos is the simple name for the inverse function of cosine)
__________________
"We're all nerds here, no need to be socially awkward"
"Oh, you want to know what I would do? I'd make a helicopter."
Once a FIRST Student, ALWAYS a FIRST Student
Last edited by BlueNova : 09-01-2012 at 17:04.
|