Leser: 1
![]() |
![]() |
5 Einträge, 1 Seite |
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#!/usr/bin/perl
use strict;
use Video::Capture::V4l::Imager;
my $vcap = Video::Capture::V4l::Imager->new(
width => 320,
height => 240,
);
# Adjust camera brightness if necessary
$vcap->brightness(32_000);
# Capture an image, back comes an Imager object
my $img = $vcap->capture();
# Save it as JPEG
$img->write(file => 'mycapture.jpg')
or die "Can't write: $!";
1
2
Use of uninitialized value in subroutine entry at /usr/local/share/perl/5.8.8/Video/Capture/V4l/Imager.pm line 151.
im is not of type Imager at /usr/local/share/perl/5.8.8/Video/Capture/V4l/Imager.pm line 151.
Quote
Note that this call will fail if your video camera doesn't support the specified width and height setting.
![]() |
![]() |
5 Einträge, 1 Seite |