Go to Post I'm not the programmer, thank god. - Veselin Kolev [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

 
Closed Thread
 
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 26-03-2006, 14:32
Don Reid Don Reid is offline
Registered User
#0997
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2002
Location: Corvallis, Oregon
Posts: 45
Don Reid will become famous soon enough
CMUCam control registers

I am writing (another) program to run the CMUCam and help set tracking parameters. (This one doesn't need Java, or Lab view). I have a couple of questions, that maybe someone can answer.

First has anyone (Kevin?) found a way to read out the sensor registers? I would like to see what the camera's internal code uses for exposure etc.

Second, I copied the various sensor settings from Kevin's code, and one in particular is causing trouble. Is anyone using anything other than the defaults.

Here is what I extracted from the code (maybe I got it wrong, any proof reading would be appreciated).
Code:
//Reg,  Value
{0x29, 0x80},	// Common I	= (AEC off)
{0x13, 0x20},	// Common B = (8 bit, auto func off)
{0x2D, 0x81},	// Common J = (flicker rates off)
{0x2A, 0x80},	// Frame Rate Adj 1 = (FRA on)
{0x2B, 0x20},	// Frame Rate Adj 2 = (-3.8%)
{0x2D, 0x81},	// Common J = (flicker rates off)
{0x12, 0x20},	// Common A (AGC on, AWB off)
{0x00, 0x00},	// AGC	= 1x
{0x01, 0x80},	// Blue Gain = 1 + 0
{0x02, 0x80},	// Red Gain = 1 + 0
{0x03, 0x80},	// Saturation = 1 + 0
{0x06, 0x01},	// Brightness
{0x10, 0x01},	// AE

(Also set NF to 0)
With the AE setting (last), I get an all purple image. With larger values (like 0x40), it works well. Since it is critical that this program use the exact same settings as the camera on the robot, I need to resolve this.

The plan is to have this program and our second camera to get near the field and check out the settings. We had a serious trouble with false positives at our first regional (Portland), and will be in Las Vega next weekend.
__________________
Don Reid
  #2   Spotlight this post!  
Unread 30-03-2006, 23:14
Don Reid Don Reid is offline
Registered User
#0997
Team Role: Mentor
 
Join Date: Jan 2003
Rookie Year: 2002
Location: Corvallis, Oregon
Posts: 45
Don Reid will become famous soon enough
Re: CMUCam control registers

As a follow up, at the Las Vegas regional, I was able to test several different AE settings, and found that at 1, it was very hard to detect the target. Just a little higher, 4, brings the target to a much higher level, and still doesn't require accepting saturated values (240). With an AE setting of 4, we see the target well with:

Red (Cr) 35 - 59
Green (Y) 149 - 205
Blue (Cb) 123 - 149
__________________
Don Reid
Closed Thread


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
Concept of PID explained ConKbot of Doom Technical Discussion 11 27-01-2008 00:11
Direct control of a Servo or Speed Controller Schmitty! National Instruments LabVIEW and Data Acquisition 3 06-03-2006 13:53
Major CMUcam issues - LabView app won't work, very low-quality picture scottmso Programming 5 19-01-2006 17:51
Pre-manufactured control box for FIRST Ben.V.293 Technical Discussion 19 22-08-2005 12:53
2005 RadioShack Innovation In Control Award--What Won? Billfred Control System 8 12-06-2005 01:51


All times are GMT -5. The time now is 03:13.

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