Go to Post the hardest task this year is the same as every other year: getting the engineers out of the crate so you can close it up and the FedEx guy can haul it away! - KenWittlief [more]
Home
Go Back   Chief Delphi > Technical > Programming > C/C++
CD-Media   CD-Spy  
portal register members calendar search Today's Posts Mark Forums Read FAQ rules

 
Reply
Thread Tools Rate Thread Display Modes
  #1   Spotlight this post!  
Unread 12-02-2016, 18:53
Dolphin07 Dolphin07 is offline
Registered User
FRC #5568 (Solid Rock)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2015
Location: Arkansas
Posts: 9
Dolphin07 is an unknown quantity at this point
Question Help with Vision for WebCams

Our team is running into difficulty with fluorescent lights causing a very white-washed image on our dashboard. We are using a webcam (HD 3000). Is anyone else experiencing this issue and does anyone have any suggestions on how to fix it? Any help is much appreciated!
Reply With Quote
  #2   Spotlight this post!  
Unread 17-02-2016, 15:45
seabasssl seabasssl is offline
Registered User
FRC #3711
 
Join Date: Feb 2015
Location: Trout Lake, Washington
Posts: 9
seabasssl is an unknown quantity at this point
Re: Help with Vision for WebCams

Could very well be an exposure problem. The way to address brightness and exposure settings of a USB camera is by using the USBcamera class, which has functions to change camera settings.
Reply With Quote
  #3   Spotlight this post!  
Unread 18-02-2016, 23:06
Dolphin07 Dolphin07 is offline
Registered User
FRC #5568 (Solid Rock)
Team Role: Programmer
 
Join Date: Jan 2015
Rookie Year: 2015
Location: Arkansas
Posts: 9
Dolphin07 is an unknown quantity at this point
Re: Help with Vision for WebCams

Thanks for the suggestion. We did play with exposure values, as well as brightness and white balance. None of these proved successful. We decided to try a different webcam (Logitech 920), and it works beautifully. We are assuming that the Microsoft Webcam HD3000 either is not compatible with our code or the lighting in our workspace is too bright for it. Thank you again. Good luck with your bot!
Reply With Quote
  #4   Spotlight this post!  
Unread 26-02-2016, 20:34
kmckay's Avatar
kmckay kmckay is offline
Registered User
FRC #5401 (Fightin' Robotic Owls)
Team Role: Mentor
 
Join Date: Jan 2016
Rookie Year: 2015
Location: Bensalem, PA
Posts: 46
kmckay will become famous soon enough
Re: Help with Vision for WebCams

Quote:
Originally Posted by seabasssl View Post
Could very well be an exposure problem. The way to address brightness and exposure settings of a USB camera is by using the USBcamera class, which has functions to change camera settings.
Do you have any example code for this? I crash the rio when I use USBCamera and CameraServer in the same code.
Reply With Quote
  #5   Spotlight this post!  
Unread 26-02-2016, 22:00
Ozuru's Avatar
Ozuru Ozuru is offline
It's always the programmer's fault.
no team
 
Join Date: May 2013
Rookie Year: 2010
Location: Earth
Posts: 268
Ozuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to beholdOzuru is a splendid one to behold
Re: Help with Vision for WebCams

You can manually set the white balance in Java so there's no reason you can't in C++.

Java code:

Code:
CameraServer server = CameraServer.getInstance();
cam = new USBCamera("cam0");
cam.setExposureManual(100); // exposure, 0 to 100
cam.setBrightness(100); // brightness, 0 to 100
cam.setWhiteBalanceManual(10000); // white balance, unsure what max is (10000?)
server.startAutomaticCapture(cam);
Reply With Quote
Reply


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


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

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