Society of Robots - Robot Forum

Software => Software => Topic started by: Dagash on March 29, 2011, 11:08:35 AM

Title: how can i get the real dimension from pictures taken by camera ?
Post by: Dagash on March 29, 2011, 11:08:35 AM

is there anyone had an idea about how can i calculate the hight of Camera above the field of soccer robot ?
is it depending on dimention of field or what ?
also how do I know the real length of the values ​​taken from the camera ? i think it depends the amount represented by a number of pixels   
Title: Re: how can i get the real dimension from pictures taken by camera ?
Post by: waltr on March 29, 2011, 11:38:59 AM
The Angular size can be calculated with knowing the lens focal length and the pixel spacing.
The camera distance can then be calculated if you have an object of know size in the image or conversely the object size can be calculated if the camera distance is known.

See Wiki for details:
http://en.wikipedia.org/wiki/Angle_of_view (http://en.wikipedia.org/wiki/Angle_of_view)