For Programmers: Free Programming Magazines  


Home > Archive > Java Help > February 2005 > JMF: controlling webcam color settings from java









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author JMF: controlling webcam color settings from java
Roland Poellinger

2005-02-27, 8:59 pm

hello!

right now i am working on a webcam realtime image processor - that is motion
detection, color recognition, blob tracking etc.

i am working with JMF and a logitech usb cam (the one from the LEGO robotics
system). for the image analysis i would need a stable picture from the
webcam as to the white balance and the automatic gain. the problem: the
camera automatically adjusts itself to new light conditions etc., so that it
is not possible to compare two pictures because of the changing colors!

i happened to find a different program (commercial, windows executable),
that is able to control every single feature of the webcam including
automatic on/off, manual whitebalance, manual gain, etc. - i figured this
has to be possible in java, too.

anyone who knows about a similar project or how to use the JMF or even a JNI
(windows) to control the camera from java??

greetings and thanks in advance -
roland

bauscharln

2005-02-28, 4:01 pm

Roland Poellinger wrote:

> problem: the camera automatically adjusts itself to new light conditions
> etc., so that it is not possible to compare two pictures because of the
> changing colors!
> ...
> this has to be possible in java, too.


Hello Roland,
I'm also playing around with my webcam(also logitech), and image
processing. I just switched from C# to JMF.
In C# i had to use vfw. I didn't adjust the settings programmatically
but with the messages WM_CAP_DLG_VIDEODISPLAY or WM_CAP_DLG_VIDEOSOURCE
I could invoke a Settings-Window, set the parameters manually, and
deactivate the auto-adjust function...

However, I hope you find a more elegant way to achive this. If so, I
would be very interested in the solution.

cheers,
martin

Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com