Chief Delphi

Chief Delphi (http://www.chiefdelphi.com/forums/index.php)
-   C/C++ (http://www.chiefdelphi.com/forums/forumdisplay.php?f=183)
-   -   Help with Vision for WebCams (http://www.chiefdelphi.com/forums/showthread.php?t=143720)

Dolphin07 02-12-2016 06:53 PM

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!

seabasssl 02-17-2016 03:45 PM

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.

Dolphin07 02-18-2016 11:06 PM

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!

kmckay 02-26-2016 08:34 PM

Re: Help with Vision for WebCams
 
Quote:

Originally Posted by seabasssl (Post 1541820)
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.

Ozuru 02-26-2016 10:00 PM

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);



All times are GMT -5. The time now is 10:26 AM.

Powered by vBulletin® Version 3.6.4
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.
Copyright © Chief Delphi