Personal tools
You are here: Home PC Webカメラ setpwcの試験
Document Actions

setpwcの試験

by かわうぃん last modified 2006-01-29 07:00

パン・ティルトするためのソフト

対応機種 

Philips

  • PCA645VC、PCA646VC、PCVC675K "Vesta"、PCVC680K "Vesta Pro"、
  • PCVC690K "Vesta Scan"、PCVC740K "ToUCam XS"、PCVC730K "ToUCam Fun"
  • PCVC740K "ToUCam Pro"、PCVC750K "ToUCam Scan"

Askey VC010

Creative Labs Webcam Pro Ex

Logitech

  • QuickCam 3000 Pro、QuickCam 4000 Pro、QuickCam Notebook Pro
  • QuickCam Zoom、QuickCam Orbit/Sphere

Samsung

  • MPC-C10、MPC-C30

Sotec Afina Eye

Visionite VCS UM100 、Visionite VCS UC300

インストール&コンパイル

ここから、アーカイブをダウンロードし、tar zxvf setpwc-1.0.tgz より解凍

[root]# tar zxvf setpwc-1.0.tgz
setpwc-1.0/
setpwc-1.0/setpwc.c
setpwc-1.0/pwc-ioctl.h
setpwc-1.0/readme.txt
setpwc-1.0/Makefile
setpwc-1.0/license.txt
[root]# cd setpwc-1.0
[root setpwc-1.0]# ls
Makefile  license.txt  pwc-ioctl.h  readme.txt  setpwc.c

Makeを実行し、コンパイルします。

[root@motely setpwc-1.0]# make

使用方法

setpwc実行コマンドが生成されます。 setpwc -h よりヘルプ表示

-d device  使用するdevice (default: /dev/video0)
-p      現在の設定をダンプ
-f x    フレームレートの設定 (0...63)
-b      store settings in nonvolatile RAM
-r      restore settings from nonvolatile RAM
-x      restore factory settings
-c x    set compression preference (0-3)
-g x    set automatic gain control (0...65535)
-s x    set shutter speed (1...65535)
-w auto/manual/indoor/outdoor/fl
        set automatic white balance mode
-a x    red-balance (only if -w manual) (0...65535)
-e x    blue-balance (idem) (0...65535)
-i x    speed of automatic white balance (1...65535)
-j x    delay for automatic white balance (1...65535)
-k x    set led on-time (0...25500ms
-l x    set led off-time
-m x    set electronic sharpness (0...65535)
-n x    set backlight compensation (0=0ff, other=on)
-o x    set antiflicker mode (0=0ff, other=on)
-q x    set noise reduction mode (0=none...3=high)
-t x    reset pan(bit 0) and/or tilt(bit 1)
-u      query pan/tilt status
-y x    set pan position
-z x    set tilt position
-h      this help

例えば、-pのダンプリストをとると

[root setpwc-1.0]# ./setpwc -p
setpwc v1.0, (C) 2003-2005 by folkert@vanheusden.com
Current device: Logitech QuickCam Orbit
VIDIOCPWCPROBE returns: Logitech QuickCam Orbit - 740
Serial number:
Resolution (x, y): 320, 240
Offset: 0, 0
Framerate: 10
Brightness: 40448
Hue: 65535
Colour: 32768
Contrast: 64512
Whiteness: 45056
Palette: YUV 4:2:0 Planar
Compression preference: 2
Automatic gain control: -7410
Error while doing ioctl VIDIOCPWCGAWB: Connection timed out
Whitebalance mode: indoor
Blinking of LED is not supported by the combination
of your webcam and the driver.
Sharpness: -1
Backlight compensation mode: off
Anti-flicker mode: on
Noise reduction mode: 1
Pan min. : -7000, max.: 7000
Tilt min.: -3000, max.: 2500
Pan  (degrees * 100): 0
Tilt (degrees * 100): 0

機器の情報がわかります。特にPAN:横方向の回転、Tilt:縦方向の回転の制限など。

[root@ setpwc-1.0]# ./setpwc -y 3000
[root@ setpwc-1.0]# ./setpwc -y 0      
のように首をふります。



Powered by Plone CMS, the Open Source Content Management System

This site conforms to the following standards: