#get the latest image from the IP camera my $snapshot = new Image::Grab; $snapshot->ua->timeout(5); #sets the timeout (sec) for image::grab (d +efault is 180s) $snapshot->url("$Camera{$key}"); # create the grab object $snapshot->grab; # grab the image mark_blob(my $jpg); # mark as a binary variable $jpg = $snapshot->image; # Convert to Image::Maggick image my $pic = Image::Magick->new(magick=>'jpg'); # create new image obje +ct $pic->BlobToImage($jpg); #convert the grabbed blob image to Image::Ma +gick object
In reply to Re^6: Howto convert Image::Grab jpg object to Image::Magick object???
by dazz
in thread Howto convert Image::Grab jpg object to Image::Magick object???
by dazz
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |