View Single Post
  #5   Spotlight this post!  
Unread 04-01-2009, 23:23
Adam Y.'s Avatar
Adam Y. Adam Y. is offline
Adam Y.
no team (?????)
 
Join Date: Mar 2002
Location: Long Island
Posts: 1,979
Adam Y. is a splendid one to beholdAdam Y. is a splendid one to beholdAdam Y. is a splendid one to beholdAdam Y. is a splendid one to beholdAdam Y. is a splendid one to beholdAdam Y. is a splendid one to beholdAdam Y. is a splendid one to behold
Send a message via AIM to Adam Y.
Re: Measuring distance with cameria

Quote:
Originally Posted by XXShadowXX View Post
If the cameria on your robot measures that the hieght of a marker is " p " pixels at an distance of " c ", then if you are to move this item, and the item is " p' " pixels tall, then the distance of the object would be

d=c+ [(p-p')*(sec 1.79)]
if 1.79 is degrees, rounded (1 degrees, 47 minutes, 23.68 seconds to 1 degree, 47 minutes, 24 seconds)
right?
No. It's surprisingly much more complicated than that. The main reason is that in order to do that you have to account for the distortions caused by the camera. I actually performed a calibration for my optics project using a 200.00 dollar camera. The distortion for some areas of the image was as high as 20 pixels.
__________________
If either a public officer or any one else saw a person attempting to cross a bridge which had been ascertained to be unsafe, and there were no time to warn him of his danger, they might seize him and turn him back without any real infringement of his liberty; for liberty consists in doing what one desires, and he does not desire to fall into the river. -Mill
Reply With Quote