> 2007-01-09 08:47:15 [6426] Cannot find executable for pamthreshold
> These are listed as helpers to the program. What needs to be
> installed to make use of them and what is their value/advantage.
> FuzzyOcr seems to be working quite well!

I'll piggyback my pamthreshold-related issue on this thread.

With fuzzyocr-3.5.1 (as well as with fuzzyocr-3.5.0-rc1-pl3)
I'm seeing the following in the FuzzyOcr.log few dozen times per day.
Seems like an inappropriate or invalid image is being given
as input to pamthreshold:

2007-01-09 19:28:27 [30313] Processing Message with ID "<45...
2007-01-09 19:28:27 [30313] GIF: [166x216] puppy.gif (6139)
2007-01-09 19:28:27 [30313] GIF: [112x417] imstp_heads_en.gif (18963)
2007-01-09 19:28:27 [30313] Found: 2 images
2007-01-09 19:28:27 [30313] Found GIF header name="imstp_heads_en.gif"
2007-01-09 19:28:27 [30313] Image is interlaced or animated...
2007-01-09 19:28:27 [30313] File contains <2> images, deanimating...
2007-01-09 19:28:27 [30313] Calculating image hash for:
  /var/amavis/tmp-am/.spamassassin30313LfixRitmp/imstp_heads_en.gif.pnm
2007-01-09 19:28:31 [30313] Scanset Order: ocrad(0) ocrad-invert(0)
  ocrad-decolorize-invert(0) ocrad-decolorize(0) gocr(0) gocr-180(0)
2007-01-09 19:28:32 [30313] Found GIF header name="puppy.gif"
2007-01-09 19:28:32 [30313] Image is interlaced or animated...
2007-01-09 19:28:32 [30313] File contains <16> images, deanimating...
2007-01-09 19:28:32 [30313] Calculating image hash for:
  /var/amavis/tmp-am/.spamassassin30313vDxLxhtmp/puppy.gif.pnm
2007-01-09 19:28:40 [30313] Scanset Order: ocrad(0) ocrad-invert(0) 
ocrad-decolorize-invert(0) ocrad-decolorize(0) gocr(0) gocr-180(0)
2007-01-09 19:28:40 [30313] Error running preprocessor(pamthreshold):
  /usr/local/bin/pamthreshold -simple -threshold 0.5
  (on input /var/amavis/tmp-am/.spamassassin30313LfixRitmp/prep.ppmtopgm.out)
2007-01-09 19:28:40 [30313] Errors in Scanset "ocrad-decolorize-invert"
2007-01-09 19:28:40 [30313] Return code: 256, Error: pamthreshold:
  bad magic number - not a PAM, PPM, PGM, or PBM file
2007-01-09 19:28:40 [30313] Skipping scanset because of errors, trying next...
2007-01-09 19:28:41 [30313] Error running preprocessor(pamthreshold):
  /usr/local/bin/pamthreshold -simple -threshold 0.5
  (on input /var/amavis/tmp-am/.spamassassin30313LfixRitmp/prep.ppmtopgm.out)
2007-01-09 19:28:41 [30313] Errors in Scanset "ocrad-decolorize"
2007-01-09 19:28:41 [30313] Return code: 256, Error: pamthreshold:
  bad magic number - not a PAM, PPM, PGM, or PBM file
2007-01-09 19:28:41 [30313] Skipping scanset because of errors, trying next...
2007-01-09 19:28:41 [30313] Message is ham, saving...

(the "(on input $input)" is my addition to the logged error message)

Both gif images are available at: http://ezri.ijs.si/~mark/tmp/

  Mark

Reply via email to