Thread: Image Tracking
View Single Post
  #4   Spotlight this post!  
Unread 09-01-2011, 17:48
kamocat's Avatar
kamocat kamocat is offline
Test Engineer
AKA: Marshal Horn
FRC #3213 (Thunder Tech)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 2008
Location: Tacoma
Posts: 894
kamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nicekamocat is just really nice
Send a message via AIM to kamocat Send a message via MSN to kamocat
Re: Image Tracking

Here's a file that will give you the bounds of each square.
I did it by extracting the saturation plane, thresholding that (to create a boolean image), and then used particle analysis (deselecting everything except the object bounds).
It may be that you would rather use the "center of mass" option, but I figured bounds would be most efficient in this case, since we know they are squares.

As a note, processing actual images (preferably captured with the actual camera on the robot) will usually provide the most reliable results.
Attached Files
File Type: zip find bounds of squares.zip (872 Bytes, 30 views)
__________________
-- Marshal Horn

Last edited by kamocat : 09-01-2011 at 17:51.
Reply With Quote