View Single Post
  #1   Spotlight this post!  
Unread 26-01-2010, 17:58
Mr. Lim Mr. Lim is offline
Registered User
AKA: Mr. Lim
no team
Team Role: Leadership
 
Join Date: Jan 2004
Rookie Year: 1998
Location: Toronto, Ontario
Posts: 1,125
Mr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond reputeMr. Lim has a reputation beyond repute
Saving Camera Exposure and White Balance Holds after Restart?

A strange one for all of you.

We can get our camera running exceptionally well, with great framerates on the DS feed, and with excellent ellipse detection, but only under a few weird conditions:

1) I first use my laptop to log in directly to the Axis 206 web interface, point the camera at a light in the room so that the field target is dimmed, and then set the Exposure and White Balance to HOLD CURRENT.

2) Log in to the DS as Developer, and use the task manager to log off the Driver account.

My question pertains to #1. I can't get my Axis camera to save its exposure and white balance hold settings when the robot is power cycled. Everytime it starts up, they revert back to AUTOMATIC, and that causes tons of problem.

It's strange that the vision system seems to run best when the image is dim. But when auto exposure and white balance work to brighten it up to a nicer looking image, the ellipse detection starts to become unreliable.

Lastly, as long as exposure and white balance are set to AUTOMATIC, our frame rates on the DS feed are terrible. But once we set them to HOLD via the web interface, it speeds right up.

Attempting to set the exposure and white balance to HOLD via the writeExposure and writeWhiteBalance(?) functions in WPILib don't seem to do anything. When I log in to the web interface, they show up as AUTOMATIC again. Manually setting them via the web interface seems to be the only effective way.

Does anyone know a way to make the Axis permanently hold its exposure and white balance settings?
__________________
In life, what you give, you keep. What you fail to give, you lose forever...