|
|
|
![]() |
|
|||||||
|
||||||||
![]() |
| Thread Tools | Rate Thread | Display Modes |
|
#1
|
||||
|
||||
|
Changing tracked color
Hi,
I have a small question. Let's say I wanted to change the color the camera tracks during the game (for example from green to red). Do I need to change the R_MIN, R_Max etc. defines in camera.h or is there something else I need to do? Thanks, Guy |
|
#2
|
|||
|
|||
|
Re: Changing tracked color
Yes, that is all you need to do. You can figure out what your defined limits are by playing around with the LabView CMUCam workspace or the CMU Java App.
|
|
#3
|
|||
|
|||
|
Re: Changing tracked color
That will work if you just want to track a different color for the whole game, but it sounds like you want to switch to a new color after you've been tracking one color for a while. If you want to change colors on the fly, then you'll need to send a \r to the camera to stop tracking the current color, and then send it a new TC command with the new color.
|
|
#4
|
|||||
|
|||||
|
Re: Changing tracked color
Quote:
|
|
#5
|
||||
|
||||
|
Re: Changing tracked color
|
|
#6
|
||||
|
||||
|
Re: Changing tracked color
Thanks guys, I think I got it.
|
|
#7
|
|||
|
|||
|
Re: Changing tracked color
I also have a question... say if the camera is searching for a color... and you want to switch the color its tracking.. should you say Camera_Idle(); ...Track_Color(R,R,G,G,B,B).... then Servo_Track();?
|
|
#8
|
||||
|
||||
|
Re: Changing tracked color
I think you need to put the camera in raw mode first
|
![]() |
| Thread Tools | |
| Display Modes | Rate This Thread |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| looking for pics of tracked robots | amos229 | Technical Discussion | 11 | 28-08-2006 17:50 |
| Change color that is tracked. | MarkVH | Programming | 2 | 15-02-2006 18:05 |
| changing vertex color | kcy88 | 3D Animation and Competition | 2 | 29-02-2004 11:47 |
| Changing Chairman's | Jacqui Sutton | Chairman's Award | 1 | 03-04-2003 09:47 |
| Changing gears | archiver | 2000 | 1 | 23-06-2002 23:26 |