Go to Post Chit Chat is frivilous but CD would be a colder place without it. - Koko Ed [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
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 18-01-2012, 11:29
tomy tomy is offline
Registered User
FRC #3038 (I.C.E. Robotics)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Stacy, Minnesota
Posts: 495
tomy has a spectacular aura abouttomy has a spectacular aura about
Vision Tracking With Color

Some teams are using led's to make the reflective tape shine a different color. How are you doing that? shining a light right on it? or a light next to the camera?
Reply With Quote
  #2   Spotlight this post!  
Unread 18-01-2012, 11:36
shuhao shuhao is offline
Registered User
FRC #4069 (Lo-Ellen Robotics)
Team Role: Mentor
 
Join Date: Nov 2011
Rookie Year: 2012
Location: Sudbury
Posts: 138
shuhao is an unknown quantity at this point
To be honest, and color processing will probably be harder than just gray scale with white light.
Reply With Quote
  #3   Spotlight this post!  
Unread 18-01-2012, 11:38
Alan Anderson's Avatar
Alan Anderson Alan Anderson is offline
Software Architect
FRC #0045 (TechnoKats)
Team Role: Mentor
 
Join Date: Feb 2004
Rookie Year: 2004
Location: Kokomo, Indiana
Posts: 9,113
Alan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond reputeAlan Anderson has a reputation beyond repute
Re: Vision Tracking With Color

The strip is a retroreflective material. It reflects light preferentially right back at the source. So you want to put a light as close to the camera lens as practical. When you use a colored light source, the reflection is shockingly obvious.
Reply With Quote
  #4   Spotlight this post!  
Unread 18-01-2012, 11:56
tomy tomy is offline
Registered User
FRC #3038 (I.C.E. Robotics)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Stacy, Minnesota
Posts: 495
tomy has a spectacular aura abouttomy has a spectacular aura about
Re: Vision Tracking With Color

so would it be easier to use color or gray scale or shapes?
Reply With Quote
  #5   Spotlight this post!  
Unread 18-01-2012, 12:43
basicxman basicxman is offline
Emily Horsman
FRC #2200 (MMRambotics)
Team Role: Programmer
 
Join Date: Oct 2007
Rookie Year: 2007
Location: Burlington, Ontario
Posts: 971
basicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant futurebasicxman has a brilliant future
Send a message via AIM to basicxman Send a message via MSN to basicxman Send a message via Yahoo to basicxman
Re: Vision Tracking With Color

Quote:
Originally Posted by tomy View Post
so would it be easier to use color or gray scale or shapes?
Using gray scale has two main advantages:
  • Smaller image size by setting the colour level to 0 in the camera
  • Easier to find a threshold

The great thing with a uniquely coloured LED is you can have a smaller threshold range and therefore less particles that aren't the actual vision targets you're looking for.

Depending on what your goal with the camera is, you will likely do shape detection in either case.
Reply With Quote
  #6   Spotlight this post!  
Unread 18-01-2012, 13:17
DavidGitz's Avatar
DavidGitz DavidGitz is offline
Lead Technical Advisor
FRC #1208 (MeTool Brigade)
Team Role: Coach
 
Join Date: Dec 2006
Rookie Year: 1996
Location: O'Fallon, IL
Posts: 341
DavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud of
Send a message via AIM to DavidGitz Send a message via MSN to DavidGitz Send a message via Yahoo to DavidGitz
Re: Vision Tracking With Color

We purchased the Ring Light from AndyMark as part of our FIRST Choice order. When we got it we epoxied it to the Axis camera with the lens in the center and hooked up the Ring Light to a 12V connection on the PD Board. We took a bunch of pictures at 320x240 resolution with the camera/LED with our Target and even in fairly bright ambient lighting the reflective tape is very bright. We started experimenting with the Vision Assistant using the method described here (Thanks Greg!) and after some tuning of the color parameters we found very good results with tracking the center of the Target with an execution time of approximately 12 mS. True, this was measured on the Laptop we were using and we have no testing yet on the cRIO itself but I am very impressed so far.

I am now a firm believer in the method described in Greg's paper rather than performing shape recognition. Earlier testing with the picture from the FRC manual (shrunk down to 320x240) required almost a full second per image to process, using the Performance Meter in Vision Assistant.
__________________
Reply With Quote
  #7   Spotlight this post!  
Unread 18-01-2012, 13:43
tomy tomy is offline
Registered User
FRC #3038 (I.C.E. Robotics)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Stacy, Minnesota
Posts: 495
tomy has a spectacular aura abouttomy has a spectacular aura about
Re: Vision Tracking With Color

Quote:
Originally Posted by DavidGitz View Post
We purchased the Ring Light from AndyMark as part of our FIRST Choice order. When we got it we epoxied it to the Axis camera with the lens in the center and hooked up the Ring Light to a 12V connection on the PD Board. We took a bunch of pictures at 320x240 resolution with the camera/LED with our Target and even in fairly bright ambient lighting the reflective tape is very bright. We started experimenting with the Vision Assistant using the method described here (Thanks Greg!) and after some tuning of the color parameters we found very good results with tracking the center of the Target with an execution time of approximately 12 mS. True, this was measured on the Laptop we were using and we have no testing yet on the cRIO itself but I am very impressed so far.

I am now a firm believer in the method described in Greg's paper rather than performing shape recognition. Earlier testing with the picture from the FRC manual (shrunk down to 320x240) required almost a full second per image to process, using the Performance Meter in Vision Assistant.

What are you using to program?
Reply With Quote
  #8   Spotlight this post!  
Unread 18-01-2012, 21:45
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,752
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: Vision Tracking With Color

If you choose to go with the monochrome/grayscale approach, you may want to try setting the camera to have color disabled. This is a bit different from setting color level to 0. If you truly set the color enable to false, it will speed the decoding and avoid the cost of color altogether.

Greg McKaskle
Reply With Quote
  #9   Spotlight this post!  
Unread 19-01-2012, 01:04
Lawlhwut Lawlhwut is offline
Registered User
None #2853
 
Join Date: Jan 2011
Location: Hawaii
Posts: 17
Lawlhwut is an unknown quantity at this point
Re: Vision Tracking With Color

Quick question, how do I initialize the axis camera after delcaring it with "AxisCamera axis;"
Reply With Quote
  #10   Spotlight this post!  
Unread 19-01-2012, 01:33
WizenedEE's Avatar
WizenedEE WizenedEE is offline
Registered User
AKA: Adam
FRC #3238 (Cyborg Ferrets)
Team Role: Leadership
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Anacortes, WA
Posts: 395
WizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to all
Re: Vision Tracking With Color

Quote:
Originally Posted by Lawlhwut View Post
Quick question, how do I initialize the axis camera after delcaring it with "AxisCamera axis;"
Since it's a singleton and the get function returns a reference, you need to declare it as "AxisCamera& axis;"

Then, you use the GetInstance method in the initialization list.
Code:
class MyRobot : public SimpleRobot {
    AxisCamera& axis;
public:
    MyRobot() 
        : axis(AxisCamera::GetInstance(/*ipaddress*/))
        {
        // Constructor stuff
        }
// rest of class
};
Alternatively, you could just call GetInstance whenever you want to call the AxisCamera methods and not have an instance variable for it at all.
Reply With Quote
  #11   Spotlight this post!  
Unread 19-01-2012, 10:29
DavidGitz's Avatar
DavidGitz DavidGitz is offline
Lead Technical Advisor
FRC #1208 (MeTool Brigade)
Team Role: Coach
 
Join Date: Dec 2006
Rookie Year: 1996
Location: O'Fallon, IL
Posts: 341
DavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud ofDavidGitz has much to be proud of
Send a message via AIM to DavidGitz Send a message via MSN to DavidGitz Send a message via Yahoo to DavidGitz
Re: Vision Tracking With Color

Quote:
Originally Posted by tomy View Post
What are you using to program?
We are using Labview but nothing in my original post requires that. Vision Assistant can create Labview vi's, Java and C++ code (I believe).
__________________
Reply With Quote
  #12   Spotlight this post!  
Unread 19-01-2012, 13:32
tomy tomy is offline
Registered User
FRC #3038 (I.C.E. Robotics)
Team Role: Mentor
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Stacy, Minnesota
Posts: 495
tomy has a spectacular aura abouttomy has a spectacular aura about
Re: Vision Tracking With Color

how would i create c++ stuff and where do you get the license for it. Off the labview install files?
Reply With Quote
  #13   Spotlight this post!  
Unread 19-01-2012, 15:08
WizenedEE's Avatar
WizenedEE WizenedEE is offline
Registered User
AKA: Adam
FRC #3238 (Cyborg Ferrets)
Team Role: Leadership
 
Join Date: Jan 2011
Rookie Year: 2010
Location: Anacortes, WA
Posts: 395
WizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to allWizenedEE is a name known to all
Re: Vision Tracking With Color

Quote:
Originally Posted by tomy View Post
how would i create c++ stuff and where do you get the license for it. Off the labview install files?
This has everything in it:
http://www.usfirst.org/sites/default...20System_2.pdf
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


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

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