Page 1 of 2 12 LastLast
Results 1 to 10 of 17

Thread: Webcam Logitech QuickCam Pro 9000

  1. #1
    Join Date
    Oct 2006
    Location
    Scandiano, RE (ITALY)
    Beans
    32

    [SOLVED] Webcam Logitech QuickCam Pro 9000

    Hi,
    I'm running Ubuntu 8.10 with a webcam Logitech QuickCam Pro 9000. I use it with the tool webcam for grabbing picture every minutes. What I have to do is to read an instrument, that's why I bought an autofocus camera. The problem is that the focus of the camera doesn't work.

    Does anybody knows if there is a way to set autofocus o manual focus with this webcam on Ubuntu?

    ciao,
    Max
    Last edited by Max-B; March 16th, 2009 at 03:00 PM. Reason: Solved

  2. #2
    Join Date
    Oct 2006
    Location
    Scandiano, RE (ITALY)
    Beans
    32

    Re: [SOLVED] Webcam Logitech QuickCam Pro 9000

    Hi,
    I solved my problem and I write here a tutorial to get the focus control of your Logitech QuickCam Pro 9000 on Ubuntu 8.10.

    Download the sub version of the library libwebcam developed by the QuickCamTeam. Unfortunately I was not able to compile the offical version, that's why I suggest to use the subversion.

    Code:
    wget -r http://svn.quickcamteam.net/svn/qct/Linux/
    Accordingly with the libwebcam's README file the library depends on uvcvideo, libxml2, gengetopt. The first is probably already installed but probably not the other two.

    Code:
    sudo apt-get install libxml2-dev gengetopt
    Move into the directory in which source files are located

    Code:
    cd svn.quickcamteam.net/svn/qct/Linux/
    Accordingly with the libwebcam's README download the file needed to compile the package:

    Code:
    cd Common/include/
    wget http://svn.berlios.de/svnroot/repos/linux-uvc/linux-uvc/trunk/uvcvideo.h
    wget http://svn.berlios.de/svnroot/repos/linux-uvc/linux-uvc/trunk/uvc_compat.h
    cd -
    Compile the package:
    Code:
    mkdir build
    cd build
    cmake ..
    make
    sudo make install
    If the compilation end with success, you can try to run uvcdynctrl which probably it will return an error:
    Code:
    uvcdynctrl -c
    uvcdynctrl: error while loading shared libraries: libwebcam.so.0.1.1: cannot open shared object file: No such file or directory
    To solve create a soft link of the library required:

    Code:
    sudo ln -s /usr/local/lib/libwebcam.so.0.1.1 /usr/lib/libwebcam.so.0.1.1
    Now uvcdynctrl should work but without the focus control:
    Code:
    uvcdynctrl -c
    Listing available controls for device video0:
    Exposure, Auto Priority
    Exposure (Absolute)
    Exposure, Auto
    Backlight Compensation
    Sharpness
    White Balance Temperature
    Power Line Frequency
    Gain
    White Balance Temperature, Auto
    Saturation
    Contrast
    Brightness
    Download the package guvcview which will allow us to finally control the focus of the camera.
    Add the following lines to /etc/apt/source.lst

    Code:
    deb http://ppa.launchpad.net/pj-assis/ppa/ubuntu intrepid main
    deb-src http://ppa.launchpad.net/pj-assis/ppa/ubuntu intrepid main
    Import the key
    Code:
    gpg --keyserver keyserver.ubuntu.com --recv 9750A93F69FAF7DA
    gpg --export --armor 9750A93F69FAF7DA |sudo apt-key add -
    Update the packages and install guvcview:

    Code:
    sudo apt-get update
    sudo apt-get install guvcview
    At this point we need to edit /etc/udev/rules.d/80-uvcdynctrl.rules as follow:
    Code:
    ###########################################
    # Rules for adding dynamic UVC extension unit controls to UVC devices
    ################################################
    ACTION=="add", SUBSYSTEM=="video4linux", DRIVERS=="uvcvideo", ENV{idVendor}="$at
    tr{idVendor}", ENV{idProduct}="$attr{idProduct}", RUN+="/lib/udev/uvcdynctrl"
    Now let's start guvcview as root in order to control the focus of the webcam

    Code:
    sudo guvcview
    use sudo guvcview to configure your default settings. Setting auto-focus here will cause the camera to always auto-focus, for example, in Skype.

    Bye
    Max-B

    P.S. Many thanks to dannyman for revisions of this tutorial
    Last edited by Max-B; October 19th, 2009 at 08:27 AM.

  3. #3
    Join Date
    Dec 2008
    Beans
    1

    Re: Webcam Logitech QuickCam Pro 9000

    This is a great guide, Thank You!

  4. #4
    Join Date
    Mar 2008
    Beans
    25

    Re: Webcam Logitech QuickCam Pro 9000

    Hello,

    I just ordered this camera and was then advised that the auto-focus is a Windows driver feature. i see here that you have a way to set the focus, but I wonder is it true auto-focus or is it simply that you can set, say, a fixed focal length for your application . . .

    My intention is to use Skype, and yes, in all likelihood I will road-test the instructions next week. Thank you for posting!

    Sincerely,
    -daniel

  5. #5
    Join Date
    Oct 2006
    Location
    Scandiano, RE (ITALY)
    Beans
    32

    Re: [solved] Webcam Logitech QuickCam Pro 9000

    Quote Originally Posted by dannyman View Post
    Hello,
    I wonder is it true auto-focus or is it simply that you can set, say, a fixed focal length for your application . . .
    With guvcview you will have both the possibilities: set manual-focus or switch to auto-focus mode.
    bye,
    Max-B

  6. #6
    Join Date
    Mar 2008
    Beans
    25

    Re: Webcam Logitech QuickCam Pro 9000

    Hello,

    Thanks, this is working fine.

    A few observations:

    wget -r without the space.

    Should apt-get install cmake as a depend.

    The key fetching stuff didn't work for me, but isn't required.

    I had to symlink libwebcam.so.0.1.2 . . .

    For editing 80-uvcdynctrl.rules there's a potential cut-and-paste linewrap issue . . . maybe you can wrap that in PRE instead?

    guvcview runs just fine without sudo. Maybe a brief explanation goes "use sudo guvcview to configure your default settings. Setting auto-focus here will cause the camera to always auto-focus, for example, in Skype."

    This is slick! And so far, guvcview is the best webcam app I've seen on Ubuntu. Things will be nicer once it gets added to the package repository.

  7. #7
    Join Date
    Oct 2006
    Location
    Scandiano, RE (ITALY)
    Beans
    32

    Re: Webcam Logitech QuickCam Pro 9000

    Hello Dannyman,
    many thanks for yours revisions. I hope this packages will be included soon in the Ubuntu repositories.
    Max-B

  8. #8
    Join Date
    Aug 2008
    Beans
    7

    Re: Webcam Logitech QuickCam Pro 9000

    This is a terrific guide. Thanks Max-B. This procedure worked great on Jaunty-64bit.

    Quote Originally Posted by dannyman View Post
    The key fetching stuff didn't work for me, but isn't required.
    The key fetching doesn't work if you copy/paste the commands Max-B has but the commands are essentially correct. I think the double dashes '--' somehow got converted to a longer single dash. The following commands worked fine for me:

    Code:
    gpg --keyserver keyserver.ubuntu.com --recv 9750A93F69FAF7DA
    gpg --export --armor 9750A93F69FAF7DA |sudo apt-key add -
    Last edited by wlangston; October 18th, 2009 at 06:20 PM. Reason: Added Ubuntu version.

  9. #9
    Join Date
    Oct 2006
    Location
    Scandiano, RE (ITALY)
    Beans
    32

    Re: Webcam Logitech QuickCam Pro 9000

    Quote Originally Posted by wlangston View Post
    This is a terrific guide. Thanks Max-B. This procedure worked great on Jaunty-64bit
    Thanks guys to help me to find all this errors! I corrected the guide. Thanks wlangston!
    ciao,
    Max-B

  10. #10
    Join Date
    Oct 2009
    Beans
    1

    Re: Webcam Logitech QuickCam Pro 9000

    In Karmic I can't seem to get this working. Everything was built and no errors reported Even after creating the soft link, I still can't run uvcdynctrl -c. I get this
    libwebcam.so.0.1.2: cannot open shared object file: No such file or directory

    Any suggestions?

    *Edit - Seem to fix that problem by soft linking 0.1.2 instead of 0.1.1 however I now get this:

    [libwebcam] Warning: The driver behind device video0 does not seem to support V4L2.
    [libwebcam] Unable to open device 'video0'. Device not found.
    ERROR: Unable to open device.

    I have a webcam in this laptop already so im thinking it's trying to use my built in webcam as video0 and this is videoX how should i proceed?
    Last edited by scotta3234; October 28th, 2009 at 02:00 AM.

Page 1 of 2 12 LastLast

Tags for this Thread

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •