Zum Inhalt springen

OCR - PDF IMG: Unterschied zwischen den Versionen

Aus Computech CMS Wiki
Simon Zeberli (Diskussion | Beiträge)
Keine Bearbeitungszusammenfassung
Simon Zeberli (Diskussion | Beiträge)
Zeile 12: Zeile 12:




==SMB==
==[SMB]==
  https://www.howtoforge.com/tutorial/samba-server-ubuntu-16-04/
  https://www.howtoforge.com/tutorial/samba-server-ubuntu-16-04/
==Imagemagic==
==Imagemagic==
  https://stackoverflow.com/questions/42928765/convertnot-authorized-aaaa-error-constitute-c-readimage-453
  https://stackoverflow.com/questions/42928765/convertnot-authorized-aaaa-error-constitute-c-readimage-453

Version vom 15. Oktober 2018, 17:44 Uhr

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


[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