Device::Video::PWC
use Device::Video::PWC; my $cam = Device::Video::PWC->new( '/dev/video0' ); $cam->set_pan ( 3000 ); $cam->set_tilt( -1000 ); $cam->set_framerate( 15 ); $cam->set electronic sharpness( 35000 ); $cam->dump_current_settings; $cam->restore_factory_settings;
This module is an adaptation of source code of setpwm program. With this tool, you can set settings specific to the Philips WebCams.
setpwm
Constructor. The parameter is a path to a video device. Default value is set to /dev/video0.
/dev/video0
This method allows to change used device.
Dump current settings.
Set framerate. Parameter $framerate has to be in a range 0 - 63.
Set dimensions and framerate. All parameters must be set. Framerate has to be in a range 0 - 63.
Store settings in nonvolatile RAM.
Restore settings from nonvolatile RAM.
Restore factory settings.
Set compression preference. Value has to be in a range 0 - 3.
Set automatic gain control. Value has to be in a range 0 - 65535.
Set shutter speed. Value has to be in a range 1 - 65535.
Set automatic white balance mode. Value has to be one of auto/manual/indoor/outdoor/fl .
auto/manual/indoor/outdoor/fl
Set red balance (only if white balance mode is set to manual). Value has to be in a range 0 - 65535.
manual
Set blue balance (only if white balance mode is set to manual). Value has to be in a range 0 - 65535.
Set speed of automatic white balance. Value has to be in a range 1 - 65535.
Set delay for automatic white balance. Value has to be in a range 1 - 65535.
Set led on time in ms. Value has to be in a range 0 - 25500.
Set led off-time.
Set electronic sharpness. Value has t obe in a range 0 - 65535.
Set backlight compensation. Possible values are 0 (for off) and 1 (for on).
Set antiflicker mode. Possible values are 0 (for off) and 1 (for on).
Set noise reduction mode. Possible values are from 0 (none) to 3 (high).
Reset pan.
Reset tilt.
Query pan/tilt status.
Set pan position.
Set tilt position.
None.
None known.
None. I hope.
setpwc
Strzelecki Lukasz <lukasz@strzeleccy.eu>
This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
See http://www.perl.com/perl/misc/Artistic.html
To install Device::Video::PWC, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Device::Video::PWC
CPAN shell
perl -MCPAN -e shell install Device::Video::PWC
For more information on module installation, please visit the detailed CPAN module installation guide.