/[smeserver]/rpms/FuzzyOcr/sme8/FuzzyOcr-3.5.1-pamditherbw.patch
ViewVC logotype

Contents of /rpms/FuzzyOcr/sme8/FuzzyOcr-3.5.1-pamditherbw.patch

Parent Directory Parent Directory | Revision Log Revision Log | View Revision Graph Revision Graph


Revision 1.1 - (show annotations) (download)
Tue Jun 12 19:47:18 2007 UTC (17 years, 5 months ago) by slords
Branch: MAIN
CVS Tags: FuzzyOcr-3_5_1-2_el5_sme, FuzzyOcr-3_5_1-3_el5_sme, HEAD
Import on branch sme8 of package FuzzyOcr-3.5.1-2.el5.sme.src.rpm

1 diff -Nur -x '*.orig' -x '*.rej' FuzzyOcr-3.5.1/FuzzyOcr.cf mezzanine_patched_FuzzyOcr-3.5.1/FuzzyOcr.cf
2 --- FuzzyOcr-3.5.1/FuzzyOcr.cf 2007-01-07 09:04:46.000000000 -0700
3 +++ mezzanine_patched_FuzzyOcr-3.5.1/FuzzyOcr.cf 2007-01-07 08:58:22.000000000 -0700
4 @@ -96,8 +96,9 @@
5
6 # Include additional scanner/preprocessor commands here:
7 #
8 -focr_bin_helper pnmnorm, pnminvert, pamthreshold, ppmtopgm, pamtopnm
9 -focr_bin_helper tesseract
10 +#focr_bin_helper pnmnorm, pnminvert, pamthreshold, ppmtopgm, pamtopnm
11 +#focr_bin_helper tesseract
12 +focr_bin_helper pnmnorm, pnminvert, pamditherbw, ppmtopgm, pamtopnm
13
14 ###
15 ### Step 2:
16 diff -Nur -x '*.orig' -x '*.rej' FuzzyOcr-3.5.1/FuzzyOcr.preps mezzanine_patched_FuzzyOcr-3.5.1/FuzzyOcr.preps
17 --- FuzzyOcr-3.5.1/FuzzyOcr.preps 2007-01-07 04:55:44.000000000 -0700
18 +++ mezzanine_patched_FuzzyOcr-3.5.1/FuzzyOcr.preps 2007-01-07 08:57:35.000000000 -0700
19 @@ -22,9 +22,15 @@
20 }
21
22 # Uses thresholding on the PAM file
23 -preprocessor pamthreshold {
24 - command = pamthreshold
25 - args = -simple -threshold 0.5
26 +#preprocessor pamthreshold {
27 +# command = pamthreshold
28 +# args = -simple -threshold 0.5
29 +#}
30 +
31 +# Uses thresholding on the PAM file
32 +preprocessor pamditherbw {
33 + command = pamditherbw
34 + args = -threshold
35 }
36
37 # converts PNM to TIFF (this is used for tesseract)
38 diff -Nur -x '*.orig' -x '*.rej' FuzzyOcr-3.5.1/FuzzyOcr.scansets mezzanine_patched_FuzzyOcr-3.5.1/FuzzyOcr.scansets
39 --- FuzzyOcr-3.5.1/FuzzyOcr.scansets 2007-01-07 04:55:44.000000000 -0700
40 +++ mezzanine_patched_FuzzyOcr-3.5.1/FuzzyOcr.scansets 2007-01-07 09:02:06.000000000 -0700
41 @@ -20,14 +20,14 @@
42
43 # Inverted Ocrad scanset with decolorization
44 scanset ocrad-decolorize-invert {
45 - preprocessors = ppmtopgm, pamthreshold, pamtopnm
46 + preprocessors = ppmtopgm, pamditherbw, pamtopnm
47 command = $ocrad
48 args = -s5 -i $input
49 }
50
51 # Ocrad scanset with decolorization
52 scanset ocrad-decolorize {
53 - preprocessors = ppmtopgm, pamthreshold, pamtopnm
54 + preprocessors = ppmtopgm, pamditherbw, pamtopnm
55 command = $ocrad
56 args = -s5 $input
57 }

admin@koozali.org
ViewVC Help
Powered by ViewVC 1.2.1 RSS 2.0 feed