Saturday, June 1, 2013

Focusing the Logitech Pro 9000

So before, I had installed Video4Linux in order to manually focus the webcam; however, the focus control is not showing up.

So, I am trying new things:


  1. Installed and tested uvccapture to take pictures
    1. To install: $sudo apt-get install uvccapture
    2. To take a picture: $uvccapture
      1. It captures/saves an image very quickly. Way faster than SimpleCV and fswebcam
      2. Need to adjust camera settings manually though
        1. $uvccapture -S50 -B110 -C40 -G80 -x800 -y600
        2. -S = saturation
        3. -C = contrast
        4. -B = brightness
        5. -G = gain
        6. -x and -y = resolution
        7. Try: -S61 -B135 -C48 -G40
    3. Pro: It captures images faster than fswebcam and SimpleCV 
    4. Con: It does not provide a way to manually focus the camera
  2. Focusing solution was found using guvcview: $sudo apt-get install guvcview
    1. It gives you a GUI to manually change all settings and adjust the focus. You can save your settings and then the camera is set to take images any other way desired. SWEET!


Starting Over

I pulled an all nighter working on my CAD engineering drawings for the last progress report of my senior design project. I am exhausted and probably should be sleeping, but I would like to try and get our project to work AKA actually be able to detect clots.

Right now, I am wiping the extra Raspberry Pi's SD Card and starting over on my Windows desktop.


  1. Formatted the SD Card
  2. Download Raspbian OS from here: http://www.raspberrypi.org/downloads
    1. Unzip the file
  3. To write a raw disk image of the OS to a SD card, download Win32 Disk Imager from here: http://sourceforge.net/projects/win32diskimager/
    1. Unzip the file
    2. Run the Win32DiskImager file "as Administrator"
    3. Select the SD card drive
    4. Find the .img file for the OS
    5. Click "Write" and wait. 
  4. Raspi-Config
    1. Expand root partition
    2. Change overscan
    3. Change memory split to "8"
    4. Configure overclocking to desired
    5. Enable SSH
    6. Don't have it boot to desktop
    7. Update the RPi
  5. Reboot
After booting up, raspberrypi login: pi
Password: (hint: coagulation)

Further Setup:

  1. Install fswebcam driver: $sudo apt-get install fswebcam
  2. Install dependencies for SimpleCV: $sudo apt-get install ipython python-opencv python-scipy python-numpy python-pygame python-setuptools python-pip
  3. Install SimpleCV from pip: $sudo pip install https://github.com/ingenuitas/SimpleCV/zipball/master