|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
|||
|
|||
|
RGB colors in camera.h
Hey,
I am wondering, in camera.h it has the following set: Code:
#define R_MIN_DEFAULT 85 // Rmin for call to Track_Color() #define R_MAX_DEFAULT 115 // Rmax for call to Track_Color() #define G_MIN_DEFAULT 15 // Gmin for call to Track_Color() #define G_MAX_DEFAULT 17 // Gmax for call to Track_Color() #define B_MIN_DEFAULT 100 // Bmin for call to Track_Color() #define B_MAX_DEFAULT 145 // Bmax for call to Track_Color() As far as I remember from RGB, 0,255,0 is looking for green, while 255,0,255 is looking for a mix of red and blue, which would be magenta. I am using the slimlined, sleek version of Kevin Watson's code, just to simplify things for now. |
|
#2
|
||||
|
||||
|
Re: RGB colors in camera.h
You need to find out your own values for the light because it is not pure green so 0,255,0 will not find or track the color. Use the GUI to find the mean of the colors where the light is when seen.
|
|
#3
|
|||
|
|||
|
Re: RGB colors in camera.h
Quote:
Cheers. Will play around with it then . |
|
#4
|
|||
|
|||
|
Re: RGB colors in camera.h
Replying to my own post, Kevin Watson posted this:
Quote:
So i should be good to go out of the box . |
|
#5
|
|||||
|
|||||
|
Re: RGB colors in camera.h
Quote:
Good luck, |
|
#6
|
|||
|
|||
|
Re: RGB colors in camera.h
Quote:
I figured that part out . Thank you. |
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| TEAM COLORS AND SHIRT ( 2006) | Freddy Schurr | General Forum | 28 | 04-10-2005 20:56 |
| Team Colors in Everyday Places | Freddy Schurr | Chit-Chat | 8 | 30-05-2005 22:41 |
| What colors are used on the field | auditt241 | Programming | 6 | 03-02-2005 18:41 |
| Help w/ team website colors, plz! | RbtGal1351 | Website Design/Showcase | 6 | 18-12-2004 02:53 |
| Team Mascots, Nickname & Colors? | DanLevin247 | General Forum | 84 | 22-07-2003 00:14 |