Go to Post Thanks everyone for being so positive- this just reaffirms why I love F.I.R.S.T. and volunteer my time to this program and the awesome students involved! - Weightmn [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
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 17-02-2012, 20:43
FirebearBenD's Avatar
FirebearBenD FirebearBenD is offline
Registered User
FRC #2846
 
Join Date: Jan 2011
Rookie Year: 2009
Location: Roseville, MN
Posts: 4
FirebearBenD is an unknown quantity at this point
Precision Trapezoid Tracking

Currently, our camera is set to recognize rectangles, and it is able to pick up the target that we are looking for. However, to make up for the distortion (our camera's got a relatively steep angle looking at the target) we currently have a noise level that is causing the camera to pick up things like ceiling lights and potentially other targets. I have a strong enough mathematical background that I can determine the relative side lengths for the trapezoid, but I do not know how to have the camera recognize points arranged in a trapezoidal formation (by picking out the robot's distance from the height, we could then have a very specific shape to scan for). So, any suggestions for how I can work with the Particle code?
Reply With Quote
  #2   Spotlight this post!  
Unread 17-02-2012, 20:57
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: Precision Trapezoid Tracking

If you know and expect the image to be distorted, you may want to modify the test scores a bit. Again, you are trying to exclude the false image targets and include the real ones. I don't believe the default Java code does the hollowness test, but that is key to ignoring other bright rectangles in the image. Also, another discriminator you can use is to use the bounding box of good scoring particles as the ROI (region of interest) for edge detection or other advanced localized processing. Once you have more edge info, you can look at various corners or edges and use the math to estimate the distance and location.

Greg McKaskle
Reply With Quote
  #3   Spotlight this post!  
Unread 18-02-2012, 13:39
FirebearBenD's Avatar
FirebearBenD FirebearBenD is offline
Registered User
FRC #2846
 
Join Date: Jan 2011
Rookie Year: 2009
Location: Roseville, MN
Posts: 4
FirebearBenD is an unknown quantity at this point
Re: Precision Trapezoid Tracking

Yep, sorry if I wasn't clear, but I was more referencing a lack of knowledge on how to use the Java code. What I was thinking personally (since posting yesterday), was that it would be good to have a two-step scan. I understand how to implement the first step - just a simple scan for a rectangle which we already have working. Then, I figured based on the height of that rectangle I could calculate fairly precise vertices for what the target should have and test for which ROI we want (and distance) as the difference in distortion should allow us to only pick up the top target (instead of recognizing random other things and the middle and lower row targets). However, I don't know if/how I can use the camera code to test for the positions of the vertices on the stuff it picks out. Thanks for helping by the way!

Ben
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 22:41.

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