OCR - PDF IMG: Unterschied zwischen den Versionen
Erscheinungsbild
Die Seite wurde neu angelegt: „==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…“ |
Keine Bearbeitungszusammenfassung |
||
| (7 dazwischenliegende Versionen desselben Benutzers werden nicht angezeigt) | |||
| Zeile 1: | Zeile 1: | ||
==OCRmyPDF== | |||
sudo apt-get update | |||
sudo apt-get install ocrmypdf python3-pip | |||
sudo apt-get install tesseract-ocr-deu tesseract-ocr-fra | |||
(apt-cache search tesseract-ocr | |||
wsl.exe ocrmypdf --rotate-pages -l deu+eng+fra --remove-background --optimize 3 --jpeg-quality 1 /mnt/c/tools/Scannen0001.pdf /mnt/c/tools/ocr_scanned_3.pdf | |||
ocrmypdf -l deu+eng+fra --clean --deskew --rotate-pages --rotate-pages-threshold 3 --remove-background --optimize 3 --jpeg-quality 10 /mnt/c/tools/Scannen0003.pdf /mnt/c/tools/ocr_scanned_5.pdf | |||
==PDF to Image== | ==PDF to Image== | ||
sudo add-apt-repository ppa:alex-p/tesseract-ocr | |||
Step 1: Install needed packages | Step 1: Install needed packages | ||
sudo apt-get install tesseract-ocr tesseract-ocr-deu xpdf imagemagick xpdf-utils | sudo apt-get install tesseract-ocr tesseract-ocr-deu xpdf imagemagick xpdf-utils | ||
| Zeile 8: | Zeile 21: | ||
Step 4: OCR ( All PNG to txt file | Step 4: OCR ( All PNG to txt file | ||
for file in *.png ; do tesseract "$file" "${file%}" ; done | for file in *.png ; do tesseract "$file" "${file%}" ; done | ||
==[[SMB]]== | |||
https://www.howtoforge.com/tutorial/samba-server-ubuntu-16-04/ | |||
==Imagemagic== | |||
https://stackoverflow.com/questions/42928765/convertnot-authorized-aaaa-error-constitute-c-readimage-453 | |||
==OCR Script== | |||
https://git.zeberliedv.ch/modules/script-sammlung/blob/master/ocr_script.sh | |||
Aktuelle Version vom 8. November 2021, 23:33 Uhr
OCRmyPDF
sudo apt-get update sudo apt-get install ocrmypdf python3-pip
sudo apt-get install tesseract-ocr-deu tesseract-ocr-fra (apt-cache search tesseract-ocr
wsl.exe ocrmypdf --rotate-pages -l deu+eng+fra --remove-background --optimize 3 --jpeg-quality 1 /mnt/c/tools/Scannen0001.pdf /mnt/c/tools/ocr_scanned_3.pdf
ocrmypdf -l deu+eng+fra --clean --deskew --rotate-pages --rotate-pages-threshold 3 --remove-background --optimize 3 --jpeg-quality 10 /mnt/c/tools/Scannen0003.pdf /mnt/c/tools/ocr_scanned_5.pdf
PDF to Image
sudo add-apt-repository ppa:alex-p/tesseract-ocr
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
https://www.howtoforge.com/tutorial/samba-server-ubuntu-16-04/
Imagemagic
https://stackoverflow.com/questions/42928765/convertnot-authorized-aaaa-error-constitute-c-readimage-453
OCR Script
https://git.zeberliedv.ch/modules/script-sammlung/blob/master/ocr_script.sh