I am trying to OCR a book using tesseract however I do not want to type each individual page as it is a book near 1000 pages. How would I accomplish this
I tried tesseract *.tif * which gives me this read_params_file: parameter not found: II*
Ask Ubuntu is a question and answer site for Ubuntu users and developers. It only takes a minute to sign up.
Sign up to join this communityTo avoid overwriting the output file for every new page, I did:
for i in *tif; do b=`basename "$i" .tif`; tesseract "$i" "$b" hocr; done
It worked fine.
(I found this solution here.)
I tried this and it works
for i in *.tif ; do tesseract $i outtext; done;
Make sure when you are in terminal you change directory to the location of all of the tif files.
I wanted convert Kannada (Indian language) as searchable pdf
I modified this
for i in *tif; do b=basename "$i" .tif
; tesseract "$i" "$b" hocr; done
AS BELOW
for i in *tif; do b=basename "$i" .tif
; tesseract -l kan "$i" "$b" pdf; done
It worked well for the entire folder was converted from image to searchable pdf Tnakyou