* My Microdia (SN9C201) webcam succumbs to glare in Linux
[not found] <CAKnx8Y5_amjNv7YjTGUqBoSYU99tGYJLw0G63ha8TZDq3n7Sgw@mail.gmail.com>
@ 2012-03-15 21:53 ` Xavion
2012-03-16 19:40 ` Jean-Francois Moine
0 siblings, 1 reply; 3+ messages in thread
From: Xavion @ 2012-03-15 21:53 UTC (permalink / raw)
To: Linux Kernel (Media) ML
[-- Attachment #1: Type: text/plain, Size: 1228 bytes --]
Hi Guys
As you can probably gather from the attached screenshots, I'm
attempting to use my SN9C201 webcam for home security. The problem is
that it succumbs to external glare during the middle hours of sunny
days when used in Linux.
The same problem doesn't occur in Windows, probably since the software
automatically adjusts to the current lighting conditions. These
screenshots were taken only five minutes apart and the sunlight
intensity didn't change much in-between.
No amount of adjusting the webcam's settings (via V4L2-UCP) seemed to
make any significant difference. For this reason, I'm guessing that
there's at least one other adjustable setting that the GSPCA driver
isn't tapping into yet.
If I'm going to be using this webcam for home security, it will need
to overcome the glare obstacle during these hours. Otherwise, it
won't take clear snapshots of a potential burglar's face as he looks
in through the windows before entering my unit.
Is there any way that you can modify the GSPCA software to overcome
this glare, as is done in Windows? If this would require too much
coding at your end, let me know which other webcam I should buy to
overcome this problem in Linux.
[-- Attachment #2: Noon-Linux.jpg --]
[-- Type: image/jpeg, Size: 46298 bytes --]
[-- Attachment #3: Noon-Windows.jpg --]
[-- Type: image/jpeg, Size: 57927 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: My Microdia (SN9C201) webcam succumbs to glare in Linux
2012-03-15 21:53 ` My Microdia (SN9C201) webcam succumbs to glare in Linux Xavion
@ 2012-03-16 19:40 ` Jean-Francois Moine
2012-03-17 0:33 ` Xavion
0 siblings, 1 reply; 3+ messages in thread
From: Jean-Francois Moine @ 2012-03-16 19:40 UTC (permalink / raw)
To: Xavion; +Cc: Linux Kernel (Media) ML
On Fri, 16 Mar 2012 08:53:51 +1100
Xavion <xavion.0@gmail.com> wrote:
> As you can probably gather from the attached screenshots, I'm
> attempting to use my SN9C201 webcam for home security. The problem is
> that it succumbs to external glare during the middle hours of sunny
> days when used in Linux.
>
> The same problem doesn't occur in Windows, probably since the software
> automatically adjusts to the current lighting conditions. These
> screenshots were taken only five minutes apart and the sunlight
> intensity didn't change much in-between.
>
> No amount of adjusting the webcam's settings (via V4L2-UCP) seemed to
> make any significant difference. For this reason, I'm guessing that
> there's at least one other adjustable setting that the GSPCA driver
> isn't tapping into yet.
[snip]
Hi Xavion,
It seems that the exposure is not set correctly. May you try the patch
below? (to be applied to the gspca test version 2.15.7 - the exposure
may be too low at init time, set it to 800)
--- build/sn9c20x.c~
+++ build/sn9c20x.c
@@ -1650,10 +1650,9 @@
case SENSOR_OV7670:
case SENSOR_OV9655:
case SENSOR_OV9650:
- exp[0] |= (3 << 4);
- exp[2] = 0x2d;
- exp[3] = expo;
- exp[4] = expo >> 8;
+ exp[0] |= (2 << 4);
+ exp[2] = 0x10; /* AECH */
+ exp[3] = expo * 255 / 0x1780;
break;
case SENSOR_MT9M001:
case SENSOR_MT9V112:
--
Ken ar c'hentañ | ** Breizh ha Linux atav! **
Jef | http://moinejf.free.fr/
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: My Microdia (SN9C201) webcam succumbs to glare in Linux
2012-03-16 19:40 ` Jean-Francois Moine
@ 2012-03-17 0:33 ` Xavion
0 siblings, 0 replies; 3+ messages in thread
From: Xavion @ 2012-03-17 0:33 UTC (permalink / raw)
To: Jean-Francois Moine; +Cc: Linux Kernel (Media) ML
[-- Attachment #1: Type: text/plain, Size: 628 bytes --]
Hi Jean-Francois
I applied the patch you supplied, but the result wasn't as expected.
The video now cycles between the attached image and total blackness
every couple of seconds (i.e. bright, black, bright, black, ...). I
should note that my curtains were actually closed and that I had
auto-exposure enabled in V4L2-UCP.
The image remained the same when I manually set the exposure to 800,
but at least it wasn't going black every couple of seconds anymore.
Of course, the problem disappeared when I reverted to the original
GSPCA v2.15.7 code. Let me know if you want me to email you any of
the relevant debugging output.
[-- Attachment #2: Exposure-Patched.jpeg --]
[-- Type: image/jpeg, Size: 43417 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2012-03-17 0:34 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
[not found] <CAKnx8Y5_amjNv7YjTGUqBoSYU99tGYJLw0G63ha8TZDq3n7Sgw@mail.gmail.com>
2012-03-15 21:53 ` My Microdia (SN9C201) webcam succumbs to glare in Linux Xavion
2012-03-16 19:40 ` Jean-Francois Moine
2012-03-17 0:33 ` Xavion
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.