[sane-devel] v4l device and colors

Gerard Klaver gerard at gkall.hobby.nl
Tue Apr 29 08:01:54 UTC 2008


On Tue, 2008-04-29 at 00:27 +0200, Ludwik wrote:
> Hi,
> 
> Maybe somebody will be able to help be, because I'm going insane here ;)
> 
> I'm trying to build a music sequencer that would use color input form
> the camera to generate music (something similar to Bubblegum
> Sequencer). Sane looks like a best way to integrate my video4linux
> webcam input with my python program. The problem is that when Sane
> (both in form of the python library and xsane standalone program) show
> the camera input it's totally blueish - almost black&blue (something
> like black&white, but with blue in place of white). All the other
> video4linux programs show the real colors. Sane is also using
> video4linux, so I have hard time understanding why suddenly everything
> goes blue...  Any ideas?
> 
> Ludwik Trammer
> Warsaw, Poland
> 

I expect some RGB to BGR step is needed, did you try xcam already (does
have a RGB to BGR button)?
-- 
--------
m.vr.gr.
Gerard Klaver




More information about the sane-devel mailing list