View Single Post
  #6   Spotlight this post!  
Unread 20-01-2012, 19:04
rp181 rp181 is offline
Registered User
FRC #0662
 
Join Date: Jan 2011
Location: US
Posts: 5
rp181 is an unknown quantity at this point
Re: Quadrilateral of Best Fit

I think eliminating co-linear segments and certain vertices is the hint I needed. After that, I believe looking at the angles will work.

I tried to simply measure the angle between points and pick the best one, but it was almost good. I believe the jaggedness of the line resulted in a false positive. If two points are very close and differ by a small amount, the angle gets very steep very quickly, with resolution limited by the pixels.

Has anyone else gotten good vision tracking in Java done? Another problem we are finding is an excessive glare, making the target unrecognizable. Hopefully, it will be different with competition lighting (very low ceilings in our build space).