We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpVideo Capture,  Movie Playback,  Vision Libraries › How to open camera properties tab in opencv
Page Index Toggle Pages: 1
How to open camera properties tab in opencv? (Read 2092 times)
How to open camera properties tab in opencv?
Jun 9th, 2009, 4:05pm
 
I have a video camera from the imaging source. It's default output is by8 which is incorrectly interpreted by opencv as black and white. I want to pop up a camera property dialog to adjust camera at run time and couldn't find any way to do it. Does someone know a way? I also want to set up the camera property by supplying the correct parameter to a config function when I start capturing. Is there a way? Thanks. BTW, I know it's doable in windows movie maker by pressing property button. If I don't do it I also end up with black and white.
Re: How to open camera properties tab in opencv?
Reply #1 - Jun 10th, 2009, 1:58am
 
from your post I got the idea you don't have much experience as a programmer, so I'll keep my answer basic.

1) In opencv the black and white effect is normally done using convert(GRAY); maybe you copied and pasted some code that contained this function?

2) Movie Maker is a end user video editor, so someone wrote its configuration menus; Processing is a programming language, so your sketches will not have premade configuration utilities: id you want them you'll have to write them. Before trying to write a popup configuration window (which is possible, but you'll need to know a bit of java) I would suggest to look inside the opencv examples: hopefully you'll end up having what you need just changing a couple lines of code.

If you still have problems, try to post some code, so that we can work directly on it.
Re: How to open camera properties tab in opencv?
Reply #2 - Jun 10th, 2009, 7:41am
 
Thanks. I don't have a convert(GREY). The black white is due to a mode called Bayer 8 (any digital photographers here?Smiley. It's a raw format that some cameras supply as a default output. Color has to be calculated using a debayer code, not too hard but I'd rather let processing handle the easy stuff since it's slow.

On the other hand, if I can command the camera to output in UYVY mode, which might get processed correctly in layers below processing level, I'll get a color image. Plus I want to adjust exposure on the fly and disable auto gain and auto white balance. Is there a way to send such command to a camera via opencv, that's my question. Thanks.
Page Index Toggle Pages: 1