dazz has asked for the wisdom of the Perl Monks concerning the following question:
I have grabbed a jpg image from an IP camera with Image::Grab. So I have a valid image object.
I want to pass the image to a subroutine. Within the subroutine, I want to use an Image::Magick method to do a read test on the image. </p)
Back in the main code, I want to use the grabbed image object and annotate/composite using Image::Magick methods.
So how do I pass a Image::Grab object to a sub-routine, then apply a read-only Image::Magick method to it? How do I take a Image::Grab object and apply a write Image::Magick method to it?
The questions are similar but different. At present, I am achieving this by saving the Image::Grab jpg to hard drive, then reading it into a Image::Magick object. It is slow and inefficient.
Dazz
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Howto convert Image::Grab jpg object to Image::Magick object???
by haukex (Archbishop) on Mar 27, 2017 at 08:36 UTC | |
|
Re: Howto convert Image::Grab jpg object to Image::Magick object???
by dazz (Beadle) on Mar 27, 2017 at 08:51 UTC | |
by haukex (Archbishop) on Mar 27, 2017 at 08:59 UTC | |
by dazz (Beadle) on Mar 27, 2017 at 09:45 UTC | |
by haukex (Archbishop) on Mar 27, 2017 at 09:56 UTC | |
by dazz (Beadle) on Mar 27, 2017 at 19:47 UTC | |
|