Go to Post Hello... I need one order of Thunderchicken, extra crispy. Yes, I would like fries with that. OK... go ahead and super-size it. What, only $2.17!? Sweet. - Andy Baker [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Closed Thread
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 14-02-2009, 12:15
star_lancer's Avatar
star_lancer star_lancer is offline
Programming Addict
AKA: Mike Berney
FRC #2346 (CRASH)
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Kansas City
Posts: 30
star_lancer is a jewel in the roughstar_lancer is a jewel in the roughstar_lancer is a jewel in the rough
Send a message via AIM to star_lancer Send a message via Yahoo to star_lancer
Exclamation Change two color tracking vi from tracking pink AND green to orange OR grape balls

How do I change the tracking program given out on the first website from tracking the two colors together to just being able to track one color or the other color? We are trying to use the camera to track for balls, I've already changed the colors required, but I need to know how to make it track either color so it will fire the solenoid like I've wired it to. Basically I want to turn the camera into an all purpose ball detector. I chose purple and orange because all the balls contain at least one of these colors. I am doing this in labview, but I put it out here for all to see.
__________________
If you found anything I said helpful, please click the scales next to my post. I really appreciate those reputation points.
Team 2346 - Build, test, panic, repeat.
  #2   Spotlight this post!  
Unread 14-02-2009, 17:40
elfinn elfinn is offline
Team 166 Mentor
AKA: Beth Finn
FRC #0166 (Chopshop Team 166)
Team Role: Mentor
 
Join Date: Jan 2007
Rookie Year: 2004
Location: Merrimack, NH
Posts: 14
elfinn is an unknown quantity at this point
Re: Change two color tracking vi from tracking pink AND green to orange OR grape ball

Look at the VisionDemo example in Wind River. It calls FindColor() instead of FindTwoColors().
  #3   Spotlight this post!  
Unread 14-02-2009, 19:26
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,756
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Change two color tracking vi from tracking pink AND green to orange OR grape ball

There is also a LV example for finding a single color object. To update it to find a second color, you have two choices -- prioritize one and do the second only if you don't find the first, or search for them in parallel and take the biggest/best one you find. The first version will duplicate some of the code, put it in a case, and only execute it if you don't find a good first target. The second approach will search for both, compare the results, and then decide on the outcome.

Greg McKaskle
  #4   Spotlight this post!  
Unread 14-02-2009, 19:27
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,756
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Change two color tracking vi from tracking pink AND green to orange OR grape ball

Another thought is that you really don't want to start from the two color tracker as it doesn't search for one or two, it searches for one and two touching each other in a vertical orientation. Those aren't a all the same thing.

Greg McKaskle
  #5   Spotlight this post!  
Unread 14-02-2009, 20:26
star_lancer's Avatar
star_lancer star_lancer is offline
Programming Addict
AKA: Mike Berney
FRC #2346 (CRASH)
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2008
Location: Kansas City
Posts: 30
star_lancer is a jewel in the roughstar_lancer is a jewel in the roughstar_lancer is a jewel in the rough
Send a message via AIM to star_lancer Send a message via Yahoo to star_lancer
Re: Change two color tracking vi from tracking pink AND green to orange OR grape ball

Quote:
Originally Posted by Greg McKaskle View Post
There is also a LV example for finding a single color object.
Where is that example? I couldn't find it.
__________________
If you found anything I said helpful, please click the scales next to my post. I really appreciate those reputation points.
Team 2346 - Build, test, panic, repeat.
  #6   Spotlight this post!  
Unread 14-02-2009, 20:58
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,756
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Change two color tracking vi from tracking pink AND green to orange OR grape ball

I think it is called Single Color Tracking for the one that does the servo, there is another single color.

The disk location for both is LV8.5/examples/FRC/vision/...

Greg McKaskle
Closed Thread


Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
two color tracking code Team2883 Programming 16 09-02-2009 00:21
Multiple Targets in "LabVIEW Sample two-color target tracking code" markulrich NI LabVIEW 7 29-01-2009 11:52
Two Color Tracking Demo Bharat Nain Programming 43 25-01-2009 18:58
Issue with Color Tracking Example (C/C++) and with Counters, Encoders, and Ultrasonic BradAMiller Programming 3 19-01-2009 21:24
Two color tracking problem nadavsen2 Programming 3 19-01-2009 14:44


All times are GMT -5. The time now is 14:27.

The Chief Delphi Forums are sponsored by Innovation First International, Inc.


Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi