[Gllug] Image cropping from a script

Progga progga at BengaLinux.Org
Fri Jul 6 13:13:05 UTC 2007


On Fri, Jul 06, 2007 at 11:45:29AM +0100, - Tethys wrote:
> 
> Yep, that would probably work. But in the end, I just used ppmmake to
> create a one colour palette file as you suggested, and then pnmremap
> with -mapfile and the -missingcolor option to turn everything but the
> pixels of the colour in which I'm interested into the same background
> color, and then pnmcrop works fine. It was simpler than trying to
> craft a suitable file for pamlookup. If I'd needed to preserve the
> other colours in my cropped area, then my method wouldn't have worked,
> but for this particular application, I don't.

Just curious, does all these have anything to do with OCR ?

-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 194 bytes
Desc: not available
URL: <http://mailman.lug.org.uk/pipermail/gllug/attachments/20070706/bdd0e3b1/attachment.pgp>
-------------- next part --------------
-- 
Gllug mailing list  -  Gllug at gllug.org.uk
http://lists.gllug.org.uk/mailman/listinfo/gllug


More information about the GLLUG mailing list