| 1 | #!/usr/local/bin/perl | ||
| 2 | use strict; | ||
| 3 | use warnings; | ||
| 4 | use Net::Camera::Sercomm::ICamera2; | ||
| 5 | |||
| 6 | my $syntax = "$0 [hostname]\n"; | ||
| 7 | my $hostname = shift or die($syntax); | ||
| 8 | my $cam = Net::Camera::Sercomm::ICamera2->new(hostname => $hostname); | ||
| 9 | my $jpeg = $cam->getSnapshot; | ||
| 10 | |||
| 11 | print $jpeg; | ||
| 12 | |||
| 13 | __END__ |