Go to Post I remember as a kid thinking how high a team number like 834 was. - Dancin103 [more]
Home
Go Back   Chief Delphi > Technical > Programming > NI LabVIEW
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 14-01-2012, 22:56
windtakers windtakers is offline
Registered User
AKA: Blake Dansfield
FRC #3620 (Average Joes)
Team Role: Programmer
 
Join Date: Jan 2011
Rookie Year: 2011
Location: michigan
Posts: 33
windtakers is an unknown quantity at this point
measuring distance with axis camera

I've read many different post on measuring the distance of you robot to the hoop and different pdfs like this, but their are a few things I don't understand.

1) How do you account for the rectangle distortion when you are not directly in front of it and at a downward angle.

2)how accurate can I get the distance measurement

3)what is the most accurate way to measure distance with a camera or multiple cameras

4)what would the easiest way to measure distance with a camera.
Reply With Quote
  #2   Spotlight this post!  
Unread 15-01-2012, 02:26
JewishDan18's Avatar
JewishDan18 JewishDan18 is offline
Registered User
FRC #1700
Team Role: Engineer
 
Join Date: Feb 2009
Rookie Year: 2007
Location: Sunnyvale, CA
Posts: 185
JewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to beholdJewishDan18 is a splendid one to behold
Re: measuring distance with axis camera

Quote:
Originally Posted by windtakers View Post
I've read many different post on measuring the distance of you robot to the hoop and different pdfs like this, but their are a few things I don't understand.

1) How do you account for the rectangle distortion when you are not directly in front of it and at a downward angle.

2)how accurate can I get the distance measurement

3)what is the most accurate way to measure distance with a camera or multiple cameras

4)what would the easiest way to measure distance with a camera.
I'm using Java, but I should be able to help a bit.

1) You can account for the downward angle, since you know how high the target is. The perspective transformation is much harder, but I am having pretty good results by ignoring it for the most part.

2) I've done very limited testing, but I had a quarter inch of error from 5 feet away. Will get worse when it is further away, but I don't know how much worse yet.

3) I am using the pixel height of the bounding box around the target, and lots of trigonometry to figure it out. If you are willing to use multiple cameras, you can figure more out about the perspective tranform, and thus get a more accurate reading

4) Most likely the way I am doing it, but I would like to stand corrected
Reply With Quote
  #3   Spotlight this post!  
Unread 15-01-2012, 08:29
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,751
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: measuring distance with axis camera

The size estimate is not too bad even if you ignore the distortion. A better approach, though a bit more expensive would be to use the bounding box to inspect the original image with edge detection methods. You could probably go so far as to find all four corners. But again, once you have a good pixel size for something in the image that you know the physical size, you are able to solve for distance.

As for using the tape width, that is the smallest known element in the image. That will degrade with distance faster than using a larger known size. But as mentioned, it will work provided you are pretty close.

Finally, you can estimate distance several different ways and compare them for accuracy, perhaps even using averages or other techniques for producing a better value than a single technique.

Greg McKaskle
Reply With Quote
Reply


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump


All times are GMT -5. The time now is 09:32.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi