View Single Post
  #1   Spotlight this post!  
Unread 15-01-2009, 16:01
jacobhurwitz jacobhurwitz is offline
Registered User
FRC #0449 (Blair Robot Project)
Team Role: Programmer
 
Join Date: Jan 2008
Rookie Year: 2007
Location: Maryland
Posts: 45
jacobhurwitz has a spectacular aura aboutjacobhurwitz has a spectacular aura aboutjacobhurwitz has a spectacular aura about
449's code for tracking two colors

FIRST recently posted some code to track two colors (http://joule.ni.com/nidu/cds/view/p/lang/en/id/1215). However, our team had already written similar code, and after comparing the two, we think that our team's code is easier to understand and perhaps even faster. The main difference (as far as I can tell) is that FIRST's code will move the camera to track the object while our code only returns a position.

In the spirit of gracious professionalism, we decided to make our team's code available to everyone. You're welcome to use this code and/or modify to suit your own team's needs. If you find anything wrong with our code*, please let us know as well. Also, you'll need to change the color value ranges and minimum area and distances.

*If you look at the image outputs, you might see that they "flicker" occasionally. We think this is only a problem with the image output because the numerical output parameters look fine.

EDIT: fixed parenthesis in link
Attached Files
File Type: zip LocateTwoColoredObjects 449 for Chief Delphi 01-15-09.zip (86.2 KB, 217 views)

Last edited by jacobhurwitz : 16-01-2009 at 10:01.
Reply With Quote