Go to Post To me game hints are like robot teasers. Much ado about nothing and I ignore both. - Koko Ed [more]
Home
Go Back   Chief Delphi > FIRST > General Forum
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 10-01-2009, 17:57
sparrowkc sparrowkc is offline
Registered User
AKA: Mark
FRC #1986 (Team Titanium)
Team Role: Alumni
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Lees Summit
Posts: 114
sparrowkc is a splendid one to beholdsparrowkc is a splendid one to beholdsparrowkc is a splendid one to beholdsparrowkc is a splendid one to beholdsparrowkc is a splendid one to beholdsparrowkc is a splendid one to beholdsparrowkc is a splendid one to beholdsparrowkc is a splendid one to behold
Give me a general direction for the camera.

I'm getting pretty frustrated trying to track the pink and green beacon in labview. What is the best way to approach this? Which VI's should I use?
Reply With Quote
  #2   Spotlight this post!  
Unread 10-01-2009, 22:33
Luke Pike's Avatar
Luke Pike Luke Pike is offline
Programmer
FRC #1501 (THRUST)
Team Role: Mentor
 
Join Date: Jan 2008
Rookie Year: 2008
Location: Huntington
Posts: 114
Luke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to allLuke Pike is a name known to all
Re: Give me a general direction for the camera.

The easiest way is to use the LabVIEW Vision Assistant. Use it with some images you have captured from the camera, it has a bunch of image proccessing stuff. Then you can create a vi from that and add it to your project. Good luck!
Reply With Quote
  #3   Spotlight this post!  
Unread 10-01-2009, 23:06
Woody1458's Avatar
Woody1458 Woody1458 is offline
AKA: Woody Jansen
FRC #1458 (Danvillans)
Team Role: Engineer
 
Join Date: Oct 2006
Rookie Year: 2006
Location: Danville, California
Posts: 286
Woody1458 is a splendid one to beholdWoody1458 is a splendid one to beholdWoody1458 is a splendid one to beholdWoody1458 is a splendid one to beholdWoody1458 is a splendid one to beholdWoody1458 is a splendid one to beholdWoody1458 is a splendid one to behold
Send a message via AIM to Woody1458
Re: Give me a general direction for the camera.

Im not on my team's prgramming team so I don't know specifically about this camera but I have programmed my computers webcam to follow a red ball and use it as mouse control. What I did was find all point on the image that were within certain color constrictions (r>200 b<20 g<20) then count the points, if there werent enough point the ball wasn't in image. If it counted enough point it would find the average location of the sum of points.

(sum x_loc/total locations,sum y_loc/total locations)

This worked pretty well. good luck!
__________________
"Everything we produce is made of: Duct Tape, zip ties, and hope" - Christian Allinson 1458

Anyone can watch Westcoast Choppers and see adults build things, but FIRST is great because it encourages kids to do the building and adults to do the watching.

GO DANVILLANS!!
Reply With Quote
  #4   Spotlight this post!  
Unread 11-01-2009, 01:18
billbo911's Avatar
billbo911 billbo911 is offline
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,355
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: Give me a general direction for the camera.

What we have found to be a very reliable way to track the target colors is a two step process:
1) Determine the optimized HSL numbers for the lighting conditions you are in.
2)Enter those numbers into the tracking vi. and adjust the tracking controls for good solid tracking.

Start by opening the example programs list in LV. Select the "Locate Colored Object" project. Set the project to run on your system's IP. Open the "LocateColoredObjectExample.vi". Start with the simple tab. Run the vi.
On the simple tab, select the color you want to track, red or green are the two that have the most relevance this year. Follow the directions to get it to identify the color you selected as accurately as possible. Once that is set, move to the "Color Wheel" tab and fine tune the Hue, Saturation and Luminance sliders for the best possible identification of your color. Now, go to the "HSL numbers" tab and right down the numbers for H,S and L. Close out the sample project.

Now open the "Servo Camera Example" project. Set it up for your system's IP. Set the PWM numbers for your X & Y servo's. Enter the HSL numbers for the color you want to track. Open the "Gimbel Control". Switch back to the front panel for the displays and run the project. Once you see the images on the top screen, switch to "gimbal track".

You should now see the camera lock onto the color you want and track it.
To fine tune the servo tracking, switch to the "Gimbel control" front panel and adjust the values to get the best response.

You should now be tracking with the big dogs.
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist
Reply With Quote
  #5   Spotlight this post!  
Unread 11-01-2009, 03:52
TotalChaos's Avatar
TotalChaos TotalChaos is offline
Registered User
AKA: Austin
FRC #2837 (Freebird Robotics)
Team Role: College Student
 
Join Date: Apr 2008
Rookie Year: 2006
Location: Gilbert AZ
Posts: 112
TotalChaos has much to be proud ofTotalChaos has much to be proud ofTotalChaos has much to be proud ofTotalChaos has much to be proud ofTotalChaos has much to be proud ofTotalChaos has much to be proud ofTotalChaos has much to be proud ofTotalChaos has much to be proud ofTotalChaos has much to be proud ofTotalChaos has much to be proud of
Send a message via MSN to TotalChaos
Re: Give me a general direction for the camera.

Billbo911's idea is definitely much more useful, however, I did write up a tutorial on how to separate out one color from pictures from the Axis cam, and it would be a shame not to offer it up for some use. If you're at all interested you can check it out on our team website HERE.

Good luck!

- Austin
__________________
The 39th Aero Squadron - Team 39! (Visit our website!)
Team Role: 3 Years as Driver - College Student/Mentor!


Freebird Robotics - On a 1 year hiatus! (Visit our website!)
Arizona 2009: Semifinalists! (69 and 498), Delphi "Driving Tomorrow's Technology" Award
Reply With Quote
  #6   Spotlight this post!  
Unread 11-01-2009, 09:25
PhilBot's Avatar
PhilBot PhilBot is offline
Get a life? This IS my life!
AKA: Phil Malone
FRC #1629 (GaCo: The Garrett Coalition)
Team Role: Mentor
 
Join Date: Jan 2006
Rookie Year: 2006
Location: Maryland
Posts: 747
PhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond reputePhilBot has a reputation beyond repute
Re: Give me a general direction for the camera.

The new tracking demo understands the flipped friend/foe color combiations so it saves a ton of programming. You may want to focus on USING the taret data for now and wait for the demo code to come out. The demo provides a "target rectangle" as it's output, not unlike the current single color version.
__________________
Phil Malone
Garrett Engineering And Robotics Society (GEARS) founder.
http://www.GEARSinc.org

FRC1629 Mentor, FTC2818 Coach, FTC4240 Mentor, FLL NeXTGEN Mentor
Reply With Quote
  #7   Spotlight this post!  
Unread 11-01-2009, 11:30
billbo911's Avatar
billbo911 billbo911 is offline
I prefer you give a perfect effort.
AKA: That's "Mr. Bill"
FRC #2073 (EagleForce)
Team Role: Mentor
 
Join Date: Mar 2005
Rookie Year: 2005
Location: Elk Grove, Ca.
Posts: 2,355
billbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond reputebillbo911 has a reputation beyond repute
Re: Give me a general direction for the camera.

Quote:
Originally Posted by TotalChaos View Post
Billbo911's idea is definitely much more useful, however, I did write up a tutorial on how to separate out one color from pictures from the Axis cam, and it would be a shame not to offer it up for some use. If you're at all interested you can check it out on our team website HERE.

Good luck!

- Austin
Austin,
Nice tutorial. I think it may be quite useful depending on what you are trying to achieve. May I suggest you make it a White-paper.

Quote:
Originally Posted by PhilBot View Post
The new tracking demo understands the flipped friend/foe color combiations so it saves a ton of programming. You may want to focus on USING the taret data for now and wait for the demo code to come out. The demo provides a "target rectangle" as it's output, not unlike the current single color version.
Phil,
Thanks for the heads up on this. I haven't been paying close enough attention to Bill's Blog. This new example looks quite interesting and we (Team 2073) are looking forward to it's release.
__________________
CalGames 2009 Autonomous Champion Award winner
Sacramento 2010 Creativity in Design winner, Sacramento 2010 Quarter finalist
2011 Sacramento Finalist, 2011 Madtown Engineering Inspiration Award.
2012 Sacramento Semi-Finals, 2012 Sacramento Innovation in Control Award, 2012 SVR Judges Award.
2012 CalGames Autonomous Challenge Award winner ($$$).
2014 2X Rockwell Automation: Innovation in Control Award (CVR and SAC). Curie Division Gracious Professionalism Award.
2014 Capital City Classic Winner AND Runner Up. Madtown Throwdown: Runner up.
2015 Innovation in Control Award, Sacramento.
2016 Chezy Champs Finalist, 2016 MTTD Finalist
Reply With Quote
  #8   Spotlight this post!  
Unread 11-01-2009, 00:57
Bomberofdoom's Avatar
Bomberofdoom Bomberofdoom is offline
Biggest FIRST addict in Israel
AKA: Nir Levanon
FRC #2230 (Zcharia's Angels)
Team Role: Programmer
 
Join Date: Jan 2007
Rookie Year: 2007
Location: Israel
Posts: 471
Bomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond reputeBomberofdoom has a reputation beyond repute
Send a message via MSN to Bomberofdoom
Re: Give me a general direction for the camera.

Quote:
Originally Posted by sparrowkc View Post
I'm getting pretty frustrated trying to track the pink and green beacon in labview. What is the best way to approach this? Which VI's should I use?
Bill's blog: http://frcdirector.blogspot.com/2009...king-news.html

You will receive a software from FIRST to detect two colors. Try to work as suggested, with Vision Assitant so you can get familiar with it's usefullness and tricks you might need to use once the update comes. If you find it too hard, then just wait for the update.
__________________
TEAM 2230 ZECHARIA'S ANGELS

2009 Microsoft Israel FRC Regional Winners!
2009 Microsoft Israel FRC Regional Chairman's Award Winners!!!
---------------------------------
2008 Microsoft Israel FRC Regional semi-finalist.
2008 Microsoft Israel FRC Regional Delphi's "Driving Tommorow's Technology" Award winner.
2008 Robot Driver
---------------------------------
2007 GM/Technion Israel FRC Regional semi-Finalist.
2007 GM/Technion Israel FRC Regional Xerox Creativity Award winner.
2007 Robot Driver.
Reply With Quote
Reply


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
Inverting the direction of a Motor willson.thomas Programming 19 17-03-2008 20:16
Conserving Energy: Stepping in the Right Direction? thegathering Chit-Chat 5 14-09-2006 14:49
Triple Play One-Pager for the general public Rich Wong General Forum 5 07-03-2005 12:55
Optimal Direction of the Drill and Chips mzitz2k Motors 17 06-02-2004 16:54
fresh new direction for first? archiver 2001 17 24-06-2002 04:16


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

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