Go to Post GP is an ideal to live by, but not a tool to judge with. - Rich Kressly [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-01-2010, 22:13
TheDominis TheDominis is offline
Registered User
FRC #2152
Team Role: Programmer
 
Join Date: Jan 2009
Rookie Year: 2009
Location: Port Orange, Florida
Posts: 88
TheDominis has a spectacular aura aboutTheDominis has a spectacular aura about
Re: Saving Camera Exposure and White Balance Holds after Restart?

Saving the camera settings via web doesn't work? Try using the first account used to authenticate and saving the settings there. The first account is FRC, FRC.
  #2   Spotlight this post!  
Unread 26-01-2010, 22:40
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
Re: Saving Camera Exposure and White Balance Holds after Restart?

Quote:
Originally Posted by TheDominis View Post
Saving the camera settings via web doesn't work? Try using the first account used to authenticate and saving the settings there. The first account is FRC, FRC.
Saving settings via the web does work temporarily, until you power cycle the robot. The settings revert to AUTOMATIC once you turn the robot off and on again.
__________________
In life, what you give, you keep. What you fail to give, you lose forever...
  #3   Spotlight this post!  
Unread 27-01-2010, 01:33
jhersh jhersh is offline
National Instruments
AKA: Joe Hershberger
FRC #2468 (Appreciate)
Team Role: Mentor
 
Join Date: May 2008
Rookie Year: 1997
Location: Austin, TX
Posts: 1,006
jhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond reputejhersh has a reputation beyond repute
Re: Saving Camera Exposure and White Balance Holds after Restart?

Quote:
Originally Posted by Mr. Lim View Post
Saving settings via the web does work temporarily, until you power cycle the robot. The settings revert to AUTOMATIC once you turn the robot off and on again.
Is it possible that your robot code is logging in to the camera and changing them to automatic (possibly with the API being buggy and not setting it to what you request)? How about if you just power off the camera and back on... does it retain the settings then?

-Joe
  #4   Spotlight this post!  
Unread 27-01-2010, 07:59
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,751
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: Saving Camera Exposure and White Balance Holds after Restart?

The camera capabilities do not allow you to set the exposure to an explicit value in any language. The two choices are the ones you are already using, auto and hold. The calibration routine you are using to dim the image sounds good, and should stick with the camera through power cycles, but not through a reset button.

The LV template sets all fields in Begin.vi. It didn't do that last year, and in fact teams would have odd side effects from logging into the camera and messing with fields. If you do not want the code to change the settings, look for the API call in your team template code, or possibly in the framework. I'm going to speak with the WPI folks later, and I'll ask if they are possibly doing something like this in a constructor.

A second way to get a more dim image is to use the Brightness setting on the camera. What it does is to take the exposure value computed by auto and increase or decrease it. It is particularly useful when the camera's auto selects an overexposed image. Set Brightness low and see if your image has a similar exposure.

As for why the ellipse detection works better with more dim images. It may be that you've set the threshold very high, and bright lights cause blooming in the image. The white bleeds into the black and blurs the edge. I'm just guessing here. Also, you may have set the jpeg compression a bit high, and the jpeg artifacts are more bothersome in the brighter image. Can't say for sure, but if you'll tell me what settings you are using, I may have more input.

Greg McKaskle
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
Saving images/video from camera (LabVIEW) Chaos in a Can NI LabVIEW 3 16-08-2010 16:21
Manually Calibrate White Balance MartinStewart Technical Discussion 2 23-01-2009 13:28
timer after restart sciguy125 Programming 10 04-04-2006 01:12
[white paper] Auto-Balance Gyro Code Brandon Martus Technical Discussion 3 21-06-2001 10:36


All times are GMT -5. The time now is 02:05.

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