Go to Post Please try to apply GP to situations where it makes some sense, as otherwise you're just diluting the meaning. - Kevin Sevcik [more]
Home
Go Back   Chief Delphi > Technical > Programming
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
 
 
Thread Tools Rate Thread Display Modes
Prev Previous Post   Next Post Next
  #7   Spotlight this post!  
Unread 15-01-2006, 15:36
Joe Hershberger Joe Hershberger is offline
National Instruments
AKA: jhersh
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: Nov 2005
Rookie Year: 1997
Location: Austin, TX
Posts: 148
Joe Hershberger is a name known to allJoe Hershberger is a name known to allJoe Hershberger is a name known to allJoe Hershberger is a name known to allJoe Hershberger is a name known to allJoe Hershberger is a name known to all
Re: FRC Camera code in YCrCb Mode?

Quote:
Originally Posted by Damian Manda
I think we were having this same problem, as we could not get the camera to track when connected to the robot with either the default values or those found in LabVIEW (it tracked fine when driving the servos itself, but I only tried RGB mode). I'll have to wait until tomorrow to test it, though.

Are the calibrations still in R,G,B maximum and minimum values, as this is the only option that I can find in the camera configuration? If so, do I just calibrate the RGB values through LabVIEW (in YCrCb mode) and then enter them into camera.h here:
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()
i.e, Am I supposed to still calibrate as RGB values in YCrCb mode? The workbook seems to indicate this, but it does not give instructions for entering the calibration into anything other than easyC.
Remember that when you change color domains, the meaning of the registers change, but the names do not. For this reason, it can be a bit misleading when using the "other color space" (i.e. not the one for which the registers are named). When you are YCrCb mode, the registers have the following meaning:

Code:
R.min = Cr.min
R.max = Cr.max
G.min = Y.min
G.max = y.max
B.min = Cb.min
B.max = Cb.max
Make sure that whatever color space you use to find your values in the Labview CMUcam2 Application is the same color space you use on the camera in the RC code. Also don't forget that when you change modes in the LabView CMUcam2 Application, you need to upload the settings to the camera before they will take effect.

Hope this helps to clarify.

-Joe
 


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
Scripting Setup and the Camera + Serial Port Drivers CJO Programming 22 11-01-2006 17:42
CMUCam2 code (FRC and EDU?) Amber Programming 0 15-02-2005 22:23
Camera Code Fishdude404 Programming 1 25-01-2005 18:59
Kevin Watson's Kick-off Demo Code! Mr. Lim Programming 27 22-01-2005 03:38
autonomous mode problem on field Chris_C Programming 17 26-03-2003 19:11


All times are GMT -5. The time now is 15: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