View Single Post
  #23   Spotlight this post!  
Unread 20-03-2016, 15:52
techhelpbb's Avatar
techhelpbb techhelpbb is offline
Registered User
FRC #0011 (MORT - Team 11)
Team Role: Mentor
 
Join Date: Nov 2010
Rookie Year: 1997
Location: New Jersey
Posts: 1,624
techhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond reputetechhelpbb has a reputation beyond repute
Re: USB MS Lifecam HD 3000 Exposure Issues

Running late and my Raspbian SD card is acting up...
So I put my ODroid XU4 with MATE on one of the older Microsoft LifeCam VX-6000 cameras I have.

My 'uname -a' on there is as below:
Code:
Linux odroid 3.10.92-71 #1 SMP PREEMPT Fri Dec 18 00:38:54 BRST 2015 armv7l armv7l armv7l GNU/Linux
The camera reports:
Code:
v4l2-ctl -l

User Controls

                     brightness (int)    : min=0 max=255 step=1 default=127 value=127 flags=slider
                       contrast (int)    : min=0 max=255 step=1 default=127 value=127 flags=slider
                     saturation (int)    : min=0 max=255 step=1 default=127 value=127 flags=slider
                            hue (int)    : min=-180 max=180 step=1 default=0 value=0 flags=slider
                    red_balance (int)    : min=0 max=127 step=1 default=40 value=40 flags=slider
                   blue_balance (int)    : min=0 max=127 step=1 default=40 value=40 flags=slider
                          gamma (int)    : min=0 max=255 step=1 default=16 value=16 flags=slider
                       exposure (int)    : min=0 max=6016 step=1 default=51 value=51 flags=inactive
                 gain_automatic (bool)   : default=1 value=1 flags=update
                           gain (int)    : min=0 max=28 step=1 default=0 value=0
                horizontal_flip (bool)   : default=0 value=0
                  vertical_flip (bool)   : default=0 value=0

JPEG Compression Controls

            compression_quality (int)    : min=50 max=90 step=1 default=80 value=80
                     brightness (int)    : min=0 max=255 step=1 default=127 value=127 flags=slider
                       contrast (int)    : min=0 max=255 step=1 default=127 value=127 flags=slider
                     saturation (int)    : min=0 max=255 step=1 default=127 value=127 flags=slider
                            hue (int)    : min=-180 max=180 step=1 default=0 value=0 flags=slider
                    red_balance (int)    : min=0 max=127 step=1 default=40 value=40 flags=slider
                   blue_balance (int)    : min=0 max=127 step=1 default=40 value=40 flags=slider
                          gamma (int)    : min=0 max=255 step=1 default=16 value=16 flags=slider
                       exposure (int)    : min=0 max=6016 step=1 default=51 value=51 flags=inactive
                 gain_automatic (bool)   : default=1 value=1 flags=update
                           gain (int)    : min=0 max=28 step=1 default=0 value=0
                horizontal_flip (bool)   : default=0 value=0
                  vertical_flip (bool)   : default=0 value=0
root@odroid:/home/odroid# v4l2-ctl --set-ctrl gain_automatic=0
When first plugged in or the system rebooted the image is too dark.
These series of commands fixed it for me:

Code:
v4l2-ctl --set-ctrl gain_automatic=0
v4l2-ctl --set-ctrl gain=10
This differs from our experience several years ago on Ubuntu Karmic.
The ranges are now reasonable for this older camera.
I will order the LifeCam 3000 HD to experiment further.

Below are the options from V4L presented for the Logitech C920 on the same embedded system:

Code:
v4l2-ctl -l

                     brightness (int)    : min=0 max=255 step=1 default=128 value=128
                       contrast (int)    : min=0 max=255 step=1 default=128 value=128
                     saturation (int)    : min=0 max=255 step=1 default=128 value=128
 white_balance_temperature_auto (bool)   : default=1 value=1
                           gain (int)    : min=0 max=255 step=1 default=0 value=0
           power_line_frequency (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature (int)    : min=2000 max=6500 step=1 default=4000 value=2397 flags=inactive
                      sharpness (int)    : min=0 max=255 step=1 default=128 value=128
         backlight_compensation (int)    : min=0 max=1 step=1 default=0 value=0
                  exposure_auto (menu)   : min=0 max=3 default=3 value=3
              exposure_absolute (int)    : min=3 max=2047 step=1 default=250 value=250 flags=inactive
         exposure_auto_priority (bool)   : default=0 value=1
                   pan_absolute (int)    : min=-36000 max=36000 step=3600 default=0 value=0
                  tilt_absolute (int)    : min=-36000 max=36000 step=3600 default=0 value=0
                 focus_absolute (int)    : min=0 max=250 step=5 default=0 value=0 flags=inactive
                     focus_auto (bool)   : default=1 value=1
                  zoom_absolute (int)    : min=100 max=500 step=1 default=100 value=100
                      led1_mode (menu)   : min=0 max=3 default=0 value=3
                 led1_frequency (int)    : min=0 max=255 step=1 default=0 value=0
                     brightness (int)    : min=0 max=255 step=1 default=128 value=128
                       contrast (int)    : min=0 max=255 step=1 default=128 value=128
                     saturation (int)    : min=0 max=255 step=1 default=128 value=128
 white_balance_temperature_auto (bool)   : default=1 value=1
                           gain (int)    : min=0 max=255 step=1 default=0 value=0
           power_line_frequency (menu)   : min=0 max=2 default=2 value=2
      white_balance_temperature (int)    : min=2000 max=6500 step=1 default=4000 value=2397 flags=inactive
                      sharpness (int)    : min=0 max=255 step=1 default=128 value=128
         backlight_compensation (int)    : min=0 max=1 step=1 default=0 value=0

Last edited by techhelpbb : 20-03-2016 at 16:23.