![]() |
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 |
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.
|
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.
|
Re: Changing tracked color
Quote:
|
Re: Changing tracked color
|
Re: Changing tracked color
Thanks guys, I think I got it.
|
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();?
|
Re: Changing tracked color
I think you need to put the camera in raw mode first
|
| All times are GMT -5. The time now is 01:19. |
Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi