View Single Post
  #9   Spotlight this post!  
Unread 12-02-2016, 12:45
Greg McKaskle Greg McKaskle is offline
Registered User
FRC #2468 (Team NI & Appreciate)
 
Join Date: Apr 2008
Rookie Year: 2008
Location: Austin, TX
Posts: 4,748
Greg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond reputeGreg McKaskle has a reputation beyond repute
Re: Camera Gradually Changes Color Based on Lighting

I think there are sever small things mixing together to cause the symptoms you are reporting.

The camera has a number of things it will auto -- white balance and exposure are the two that I think you probably need to set to manual values. The auto feature of the camera "looks" at the image and tries to do what our brain does. It has the camera decide if the light in a room is tinted and will adjust to it so that white things are white again. Similarly, it will adjust so that bright things aren't overly bright and dark things have details again. But sometimes the algorithm gets in the way, especially when we are using colored light and a dark exposure on purpose.

The default code for LabVIEW vision sets the white balance to indoor fluorescent or something similar. It doesn't matter so much what it is but that it is constant and doesn't change once you calibrate. The exposure and brightness, possibly sensor gain, are all related to the white/black balance, so you may have to set more than one of these to completely control the exposure. Small bright things aren't what the auto algorithm pays attention to so much as large areas of the image. If it overexposes, you lose the color because the sensor saturates.

As for saving settings. I personally like having these set in code. I use the device settings as a discovery mechanism to find constants for the code. As mentioned, the Axis cameras support multiple clients, clients have login permissions, and some features are not available to anonymous users. LV uses the FRC/FRC account so that it can access and modify all settings. I'm not sure what Java does.

Greg McKaskle