Install PS3 Eye Camera In Ubuntu
250px-PlayStation_Eye.png

優點

  1. 640 x 480 at 60 frames/second
  2. 320 x 240 at 125 frames/second
  3. Full VGA (640x480) 60fps video capture test app that features uncompressed high quality raw video
  4. Low CPU overhead (since there is no decompression involved on the PC)
  5. Very low latency (1 frame time period)

Installation

1. Download Ps3eyeMT patch

wget http://kaswy.free.fr/sites/default/files/download/ps3eye/0.5/ps3eyeMT-2.6.31-10-generic.patch

2. Apply Ps3eyeMT patch

sudo patch -p1 < ps3eyeMT-2.6.31-10-generic.patch
only patch the driver in drivers/media/video/gspca/ov534.c

3. Compile your new patched driver

sudo make modules_prepare
sudo make SUBDIRS=drivers/media/video/gspca modules

4. Install the new driver in the modules directory and refresh dependencies:

sudo cp drivers/media/video/gspca/gspca_ov534.ko /lib/modules/$(uname -r)/kernel/drivers/media/video/gspca/
sudo depmod

5. Unload if any old module is loaded and load the new one:

sudo modprobe -r gspca-ov534
sudo modprobe  gspca-ov534 videomode=10 autogain=0 exposure=200 hflip=1

從 modinfo 看你的 driver

未更新 Driver 的訊息

modinfo gspca_ov534

filename:       /lib/modules/2.6.31.4/kernel/drivers/media/video/gspca/gspca_ov534.ko
license:        GPL
description:    GSPCA/OV534 USB Camera Driver
author:         Antonio Ospite <ospite@studenti.unina.it>
srcversion:     E4D6B16E9B436F7F02D958E
alias:          usb:v1415p2000d*dc*dsc*dp*ic*isc*ip*
alias:          usb:v06F8p3003d*dc*dsc*dp*ic*isc*ip*
depends:        gspca_main
vermagic:       2.6.31.4 SMP mod_unload modversions CORE2

更新完 kaswy Driver 之後的訊息

modinfo gspca-ov534

filename:       /lib/modules/2.6.31.4/kernel/drivers/media/video/gspca/gspca_ov534.ko
license:        GPL
description:    GSPCA/OV534 USB Camera Driver(kaswy mod for MT use V0.5)
author:         Antonio Ospite <ospite@studenti.unina.it>
srcversion:     4A8F7A7DCECB2B974ABA997
alias:          usb:v1415p2000d*dc*dsc*dp*ic*isc*ip*
depends:        gspca_main
vermagic:       2.6.31.4 SMP mod_unload modversions CORE2 
parm:           videomode: = xx //Set the videomode(see doc) (int)
parm:           autogain: = [0|1] //Autogain (agc,aec,awb) (bool)
parm:           gain: = [0..63] //main gain (int)
parm:           exposure: = [0..255] //Exposure (int)
parm:           redblc: = [0..255] //Red Balance (int)
parm:           blueblc: = [0..255] //Blue Balance (int)
parm:           sharpness: = [0..63] //Sharpness (int)
parm:           vflip: = [0|1] //Vertical flip (bool)
parm:           hflip: = [0|1] //Horizontal mirror (bool)

available video modes

00: 640x480@15
01: 640x480@30
02: 640x480@40
03: 640x480@50
04: 640x480@60
10: 320x240@30
11: 320x240@40
12: 320x240@50
13: 320x240@60
14: 320x240@75
15: 320x240@100
16: 320x240@125

參考資料

  1. PS3 Eye 4-channel Audio Tests on Ubuntu Karmic
  2. Linux PS3 Eye camera drivers&utils (Updated 23/09/2009)
  3. Ps3eyeMT mod installation on ubuntu (HOWTO). New patch available.
  4. PS3 Eye Driver Patch @ bear24rw <- 這個 Driver 用起來畫面比較沒那麼暖,但畫面會有壞點,因該是 Driver 有點問題

PS3 Eye camera of windows driver

  1. http://nuigroup.com/forums/viewthread/3137/
  2. http://codelaboratories.com/downloads