View Single Post
  #4   Spotlight this post!  
Unread 27-07-2012, 22:00
apalrd's Avatar
apalrd apalrd is offline
More Torque!
AKA: Andrew Palardy (Most people call me Palardy)
VRC #3333
Team Role: College Student
 
Join Date: Mar 2009
Rookie Year: 2009
Location: Auburn Hills, MI
Posts: 1,347
apalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond reputeapalrd has a reputation beyond repute
Re: pic: Vision Development

Quote:
Originally Posted by Tom Line View Post
We verified the target by first classifying them based on size (throwing out too large and too small), their height from the floor, then by angular relationships to other targets.
I don't actually use the height from the floor, just a few basic parameters (min size, rectangularity, edge strength) and the angular relationships.

If I were to improve it, I would probably attempt to guess position in the evil two-target scenario based on size vs height. I couldn't just categorize it by height or size since we do both fender and key shooting (and the fender shot prefers the lower targets, while the key prefers the upper ones).

Currently, we help the evil two-target guess by reading the gun state, but this is not very good for code reasons (the compare is done on the laptop side, so modifying anything in the state-machine means I have to recompile the laptop vision helper).
__________________
Kettering University - Computer Engineering
Kettering Motorsports
Williams International - Commercial Engines - Controls and Accessories
FRC 33 - The Killer Bees - 2009-2012 Student, 2013-2014 Advisor
VEX IQ 3333 - The Bumble Bees - 2014+ Mentor

"Sometimes, the elegant implementation is a function. Not a method. Not a class. Not a framework. Just a function." ~ John Carmack
Reply With Quote