[magick-users] Shell or Perl script to detect object on image
Dodger
el.dodgero at gmail.com
Tue Mar 17 05:57:27 PDT 2009
2009/3/11 Stagecoach Wireless <beat.naef at stagecoach-wireless.com>:
]> Is it possible to get a list of x-coord, y-coord, color code for each pixel
> contained in an image using IM? (I know, depending on the image, the list
> can be VERY long, but if I had a list like that an algorithm could work
> through that list and manip the image so that it is useful for OCR).
Sure, as long as you're using one of the APIs.
Just get the width, get the height, and then in a double for loop
around each get the pixel at those coordinates.
--
Dodger
More information about the Magick-users
mailing list