On a unix like environment, you can setup a batch file similar to this:
#!/bin/bash
export TESSDATA_PREFIX=/mnt/c/Users/User/shree
touch combined.txt
img_files=$(ls *.png)
for img_file in ${img_files}; do
tesseract ${img_file} ${img_file%.*} --oem 1 -l eng
cat ${img_file%.*}.txt >> combined.txt
done
--
You received this message because you are subscribed to the Google Groups
"tesseract-ocr" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
To post to this group, send email to [email protected].
Visit this group at https://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit
https://groups.google.com/d/msgid/tesseract-ocr/CAG2NduUip6FjHgaTHEUtTDd7opKmDjn_CKRbuaYufJuuH1r8Qg%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.