On 3/16/08, Voytek Eymont wrote:
>
> On Sat, March 15, 2008 11:06 am, Mark Martinec wrote:
>
> > For FuzzyOcr it is optional, but you need to tell it that
> > you don't have it. There is a setting in FuzzyOcr.cf where you can list
> > what optional external programs you have. Comment out the ones that you do
> > not have, e.g.:
> >
> > # Include additional scanner/preprocessor commands here:
> > #
> > focr_bin_helper pnmnorm, pnminvert, ppmtopgm, pamtopnm, pamditherbw
> > #focr_bin_helper pnmnorm, pnminvert, pamthreshold, ppmtopgm, pamtopnm
> > #focr_bin_helper tesseract
>
>
> Mark,
>
> thanks, Mark
>
> hmmm, I'm still getting errors like:
>
> ----
> # tail FuzzyOcr.log
>
> 2008-03-17 14:41:47 [14594] Error running preprocessor(pamthreshold):
> pamthreshold -simple -threshold 0.5
> 2008-03-17 14:41:47 [14594] Errors in Scanset "ocrad-decolorize"
> 2008-03-17 14:41:47 [14594] Return code: 2048, Error: save_execute: failed
> to exec pamthreshold -simple -threshold 0.5: No such file or directory at
> /etc/mail/spamassassin/FuzzyOcr/Misc.pm line 173.
>
> 2008-03-17 14:41:47 [14594] Skipping scanset because of errors, trying
> next...
> #
>
> both pamthreshold and pamthreshold are remmed out
> ----
> pwd
> /etc/mail/spamassassin
> grep tesseract FuzzyOcr.cf
> # focr_bin_helper tesseract
> grep pamthreshold FuzzyOcr.cf
> # focr_bin_helper pnmnorm, pnminvert, pamthreshold, ppmtopgm, pamtopnm
>
> -----
>
> unless I'm editing wrong conf file ?
>
> and, I've stop/started amavisd
>
>
> --
> Voytek
>

In addition, there is a file that defines the scansets that will be
used (FuzzyOcr.scansets). Consider commenting out scansets that use
pamthreshold, e.g.:

## Inverted Ocrad scanset with decolorization
#scanset ocrad-decolorize-invert {
#    preprocessors = ppmtopgm, pamthreshold, pamtopnm
#    command = $ocrad
#    args = -s5 -i $input
#}

## Ocrad scanset with decolorization
#scanset ocrad-decolorize {
#    preprocessors = ppmtopgm, pamthreshold, pamtopnm
#    command = $ocrad
#    args = -s5 $input
#}

There is also a file called FuzzyOcr.preps that you might want to explore.

I use Debian that uses an old version of netpbm. I apply a total of 6
patches (in the order shown) that strip out functionality that is not
supported by this old version. These are provided just for reference.
All of these may not be applicable to your version of netpbm (anywhere
from none - to possibly only the first three may apply), so I'm not
necessarily suggesting you apply them.

http://www200.pair.com/mecham/spam/FuzzyOcr-3.5.0-rc1.netpbm_less_than_10.34.patch
http://www200.pair.com/mecham/spam/FuzzyOcr-3.5.0-rc1.netpbm_less_than_10.34.patch2
http://www200.pair.com/mecham/spam/FuzzyOcr-3.5.0-rc1.netpbm_less_than_10.34.p3
http://www200.pair.com/mecham/spam/gary.3.5.0-rc1.old.netpbm.patch1
http://www200.pair.com/mecham/spam/gary.3.5.0-rc1.old.netpbm.patch2
http://www200.pair.com/mecham/spam/gary.3.5.0-rc1.old.netpbm.patch3

-- 
Gary V

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
AMaViS-user mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/amavis-user
AMaViS-FAQ:http://www.amavis.org/amavis-faq.php3
AMaViS-HowTos:http://www.amavis.org/howto/

Reply via email to