openSUSE 11.0 インストール #62008/10/13 20:01

fswebcam のサンプル画像

これでもかとインストール日記は続く。

今回は web カメラ編。にも書いたが,バージョンアップに伴い WebCam Go は利用できなくなった。

近所で ELECOM UCAM-DLF30H(白) を購入。パッケージ uvcvideo-kmp-default を追加したら,カメラを 即 認識した。USB Video Class 対応カメラって素敵だ。

uvcvideo: Found UVC 1.00 device USB2.0 PC Camera (056e:7001)

あとはここを参考にして webcam の代わりに fswebcam をインストールした。これが撮影した画像。赤い線(バナー)が入るが,webcam っぽい絵に仕上がった。

% fswebcam -r 320x240 -S 14 --font "/usr/share/fonts/truetype/ipag.ttf:10"
sample.jpg

でも,昼間は白い画像になってサッパリ。このカメラはホワイトバランスの設定は効かないようだ。参った...

% fswebcam -d /dev/video --list-controls
--- Opening /dev/video...
Trying source module v4l2...
/dev/video opened.
No input was specified, using the first.
Available Controls        Current Value   Range
------------------        -------------   -----
Brightness                128 (50%)       0 - 255
Contrast                  25 (25%)        0 - 100
Saturation                155 (77%)       0 - 200
Hue                       0 (50%)         -180 - 180
Gamma                     70 (50%)        40 - 100
Adjusting resolution from 384x288 to 352x288.
--- Capturing frame...
Captured frame in 0.00 seconds.
--- Processing captured image...
There are unsaved changes to the image.

後日談)ダイソーでサングラスを購入してカメラに被せたら,昼間でもかろうじて写るようになった。