You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Jan 6, 2024. It is now read-only.
A multicore batch & service wrapper script for Tesseract 3.02+ / 4.1.2 / 5.0.0 (https://github.com/tesseract-ocr/) or ABBYY CLI OCR 11 FOR LINUX based on Finereader Engine 11 optical character recognition (www.ocr4linux.com).
6
+
A multicore batch & service wrapper script for Tesseract v3/v4/v5 (https://github.com/tesseract-ocr/) or ABBYY CLI OCR 11 FOR LINUX based on Finereader Engine 11 optical character recognition (www.ocr4linux.com).
7
7
8
8
Conversions support tiff/jpg/png/pdf/bmp to PDF, TXT and CSV (also DOCX and XSLX for Abbyy OCR). It can actually support any other format that your OCR engine can handle.
9
9
@@ -12,21 +12,24 @@ This wrapper can work both in batch and service mode.
12
12
In batch mode, it's used as commandline tool for processing multiple files at once, being able to output one or more formats.
13
13
14
14
In service mode, it will monitor directories and launch OCR conversions as soon as new files get into the directories.
15
+
Since v1.8.0, it can also monitor NFS / SMB mountpoints with new integrated inotifywait emulation poller.
15
16
16
17
pmOCR has the following options:
17
18
- Include current date into the output filename
18
19
- Ignore already OCRed PDF files based on font detection and / or file suffix
19
-
- Delete or rename input file after successful conversion
20
+
- Delete or move input file after successful conversion
20
21
21
22
## Install it
22
23
23
24
$ git clone https://github.com/deajan/pmOCR
24
25
$ cd pmOCR
25
26
$ ./install.sh
26
27
27
-
You will also need inotifywait (from inotify-tools package) and pdffonts (from poppler-utils package).
28
+
You will need pdffonts util (from poppler-utils package).
29
+
Optionally, you can install inotifywait (from inotify-tools package).
30
+
28
31
If you are using tesseract OCR, please install tesseract-osd and tesseract-[your language] (sometimes called tesseract-ocr-osd).
29
-
You will also need ghostscript in order to be able to transform bitmap PDF documents to indexed PDFs.
32
+
You will also need ImageMagick in order to be able to transform bitmap PDF documents to indexed PDFs.
30
33
31
34
## Batch mode
32
35
@@ -87,7 +90,8 @@ With systemD, you have to launch a service for each config file. Example for con
87
90
Has been tested so far with:
88
91
- ABBYY FineReader OCR Engine 11 CLI for Linux releases R2 (v 11.1.6.562411), R3 (v 11.1.9.622165) and R6 (v 11.1.14.707470)
89
92
- Tesseract-ocr 3.0.4
90
-
- Tesseract-ocr 4.0.0
93
+
- Tesseract-ocr 4.0.0 and 4.0.12
94
+
- Tesseract-ocr 5.0.0 and 5.0.1
91
95
92
96
Tesseract mode also uses ghostscript to convert PDF files to an intermediary TIFF format in order to process them.
93
97
@@ -99,8 +103,7 @@ Parameters include any arguments to pass to the OCR program depending on the tar
99
103
100
104
ABBYY has in integrated preprocessor in order to enhance recognition qualitiy whereas Tesseract relies on external tools.
101
105
pmOCR can use a preprocessor like ImageMagick to deskew / clear noise / render white background and remove black borders.
102
-
ImageMagick preprocessor is configured, but disabled by default.
103
-
In order to use it with Tesseract, you have to uncomment it in your configuration file.
106
+
ImageMagick preprocessor is configured, and enabled by default to be used with Tesseract.
0 commit comments