Ubuntu: Unterschied zwischen den Versionen
Erscheinungsbild
Reto (Diskussion | Beiträge) Die Seite wurde geleert. |
Keine Bearbeitungszusammenfassung |
||
| Zeile 1: | Zeile 1: | ||
==PDF to Image== | |||
Step 1: Install needed packages | |||
sudo apt-get install tesseract-ocr tesseract-ocr-deu xpdf imagemagick xpdf-utils | |||
Step 2: See if you actually need ocr | |||
pdftotext | |||
Step 3: convert (all PDF files convert to PNG) | |||
for file in *.pdf ; do convert -density 300 "$file" "${file%.png}.png" ; done | |||
Step 4: OCR ( All PNG to txt file | |||
for file in *.png ; do tesseract "$file" "${file%}" ; done | |||
Version vom 16. Mai 2015, 20:05 Uhr
PDF to Image
Step 1: Install needed packages
sudo apt-get install tesseract-ocr tesseract-ocr-deu xpdf imagemagick xpdf-utils
Step 2: See if you actually need ocr
pdftotext
Step 3: convert (all PDF files convert to PNG)
for file in *.pdf ; do convert -density 300 "$file" "${file%.png}.png" ; done
Step 4: OCR ( All PNG to txt file
for file in *.png ; do tesseract "$file" "${file%}" ; done