Go to Post if the school doesn't have a team - just start one. - Pattie [more]
Home
Go Back   Chief Delphi > Technical > Programming > Java
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 11-02-2012, 10:00
techkid86's Avatar
techkid86 techkid86 is offline
Magic Programer
FRC #3044 (0xBE4)
Team Role: Alumni
 
Join Date: Jan 2011
Rookie Year: 2010
Location: ballston spa
Posts: 58
techkid86 is an unknown quantity at this point
Exclamation Crash corse in image tracking!!

Our programer who delt with image tracking has disapeared off the face of the earth. this close to the end of build season, i dont have time to tinker with things, and spend a week figuring out how to make it work. we are using the Axis camera provided, and we are going to be making it track the retroflective tape, reflecting a bright green LED illumination. Help please?
(thank you all in advance)
just tell me if you need more info.
i would just like, as the title says, a crash course, so i can understand it.

(i mistyped course)
__________________
"you can build a perfect machine out of imperfect parts" -Urza

Last edited by techkid86 : 11-02-2012 at 10:15.
Reply With Quote
  #2   Spotlight this post!  
Unread 11-02-2012, 11:41
dcreed@epic.com dcreed@epic.com is offline
Registered User
FRC #3692
 
Join Date: Feb 2012
Location: Janesville, WI
Posts: 13
dcreed@epic.com is an unknown quantity at this point
Re: Crash corse in image tracking!!

Did you get help with this... we are having the same problem... the examples given are using a RED LED ring and we have green as well.. plus we aren't sure how to make sure this is working (e.g. how do we know it's seeing the targets... and how do we then make the robot turn the camera to face the target.)
Reply With Quote
  #3   Spotlight this post!  
Unread 11-02-2012, 13:14
Patrick Chiang Patrick Chiang is offline
Programming
FRC #3070 (Team Pronto)
Team Role: Mentor
 
Join Date: Feb 2009
Rookie Year: 2009
Location: Seattle
Posts: 162
Patrick Chiang is a name known to allPatrick Chiang is a name known to allPatrick Chiang is a name known to allPatrick Chiang is a name known to allPatrick Chiang is a name known to allPatrick Chiang is a name known to all
Re: Crash corse in image tracking!!

Well, the first thing you want to do is look into the sample camera project provided. (Ignore this if your vision guy already has some code done.)

In there, there is a line like so:
Code:
BinaryImage thresholdImage = image.thresholdRGB(25, 255, 0, 45, 0, 47);
What this does is to implement a threshold for colors (specifically, keeping the color red and ignoring everything else).

The parameters are:
1. Min R = 25
2. Max R = 255
3. Min G = 0
4. Max G = 45
5. Min B = 0
6. Max B = 47

These are standard RGB values. If you want to use a pure green LED instead of pure red, you would switch parameters 1~2 with 3~4.

For more information, I would suggest trying to read into and understanding the sample camera test file. Another place you should look into is the Javadoc files, particularly the entries concerning BinaryImage and ParticleAnalysisReport.
Reply With Quote
  #4   Spotlight this post!  
Unread 11-02-2012, 13:46
jesusrambo jesusrambo is offline
Self-Proclaimed Programmer Messiah
AKA: JD Russo
FRC #2035 (Robo Rockin' Bots)
Team Role: Programmer
 
Join Date: Feb 2012
Rookie Year: 2010
Location: Carmel, CA
Posts: 114
jesusrambo is an unknown quantity at this point
Re: Crash corse in image tracking!!

http://www.scribd.com/jin_jiah/d/812...ssing-Tutorial

http://firstforge.wpi.edu/sf/docman/...n.root/doc1302
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 11:30.

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