Re: [Spca50x-devs] disable auto color balance on Zc0302
- Date: Sun, 12 Mar 2006 00:06:57 +0100
- From: michel Xhaard <mxhaard@xxxxxxxx>
- Subject: Re: [Spca50x-devs] disable auto color balance on Zc0302
Le Samedi 11 Mars 2006 17:04, Stephan Walter a ÃcritÂ:
> Hi,
>
> I have a Labtec Webcam Pro with a Zc0302 controller and a PAS202BCB
> sensor. The camera seems to adjust the color values, which is very
> irritating as I am trying to detect certain colors for a robotic project.
> Is there a way to turn this off?
>
> I haven't found a datasheet of either chip that shows the
> internal registers and how to program them, but I think there must be a
> way to turn it off.
>
> -Stephan Walter
>
>
Stephan,
I have set a private spca5xx ioctl for that, maybe have a look at spcav4l.c
and spcav4l.h in the spcaview package.
here is the function to set or unset that feature , the same videoparam
structure is used for AutoExposureWhiteBalance,Set the times interval between
each frame in ms , and the quantization table for the zc030x chipset.
the field chg_para work like a key and need to be set with the proper mask
before changing one of the field.
void
spcaSetAutoExpo(struct vdIn *vdin)
{
struct video_param *videoparam= &vdin->videoparam;
int fd = vdin->fd;
videoparam->chg_para = CHGABRIGHT;
videoparam->autobright = !videoparam->autobright;
if(ioctl(fd,SPCASVIDIOPARAM, videoparam) == -1){
printf ("autobright error !!\n");
} else
spcaPrintParam (fd,videoparam);
}
best regards
PS: If one day you find a manufacter that give internal chips documentation
let me know :)
--
Michel Xhaard
http://mxhaard.free.fr
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid0944&bid$1720&dat1642
_______________________________________________
Spca50x-devs mailing list
Spca50x-devs@xxxxxxxxxxxxxxxxxxxxx
https://lists.sourceforge.net/lists/listinfo/spca50x-devs