View Single Post
  #7   Spotlight this post!  
Unread 31-01-2010, 00:26
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: ball tracking w/ camera

Alan: You're right, a RIO would probably fix that, and make it considerably faster, too.

Sloteera:
Thank you! I forgot that the floor was green this year. I was thinking grey again.
What that means is I can very effectively filter that out by separating the RGB image, thresholding the red and blue, and ANDing that back together. That should also eliminate the problem with the stripes.

Aaron:
I by no means plan to track, or even interact with, balls flying through the air. I was actually intending to locate fairly stationary balls.
I believe what you're referring to is the "size ordered morphology" of last-year's tracking code. It might be my best bet to use that, however, I would have to investigate the reflective properties of the field, as this would would not filter it to just round objects.


I'll upload a test in a bit. I don't have the near-official one right with me, but I figured this picture would do.

EDIT:
I got it done. For simplicity, I just did a color threshold (instead of separating them out just to ignore the green).
Also, I used a "measure particles" VI for analysis, as opposed to the "find circles". I'm assuming that with less than a 1.2 ratio between width and height, and less than 20% holes, it will be a valid gamepiece.
Attached Files
File Type: zip method 3.scr.zip (1,023 Bytes, 106 views)
__________________
-- Marshal Horn

Last edited by kamocat : 31-01-2010 at 02:35.