View Single Post
  #6   Spotlight this post!  
Unread 20-01-2012, 12:27
nocapitals's Avatar
nocapitals nocapitals is offline
Registered User
FRC #3539 (The Byting Bulldogs)
Team Role: Alumni
 
Join Date: Mar 2011
Rookie Year: 2011
Location: United States
Posts: 14
nocapitals is an unknown quantity at this point
Re: Target tracking in Java

Quote:
Originally Posted by JewishDan18 View Post
Comparing the bounding box are to the particle area of the convex hull is a good place to start
Our team was using the vision assistant to try and create an algorithm, at first we tried using convex hull, but then realized that wouldn't work (or at least we didn't see any way for it to work) in frc java, so we rooted around in the api and found this field: particleQuality.

This is a ratio between a particle's area and any pixels within the particle, but aren't a "true" in the binary image. Fooling around with some pictures of a backboard, we found that square targets (like we're using) usually are within 35%-55%, while other bright things, like reflections and fluorescent lights are somewhere around 90%. Obviously these depend somewhat on your thresholds, but we've managed to find the targets (and only the targets) pretty consistently, from almost any angle and distance.
__________________
I had this dream last night! I joined a robotics team and...oh god...
Reply With Quote