Multiple tiff processing

62 views
Skip to first unread message

Stathis L.

unread,
Jul 21, 2015, 6:59:53 AM7/21/15
to tesser...@googlegroups.com
Does anybody know how to process multiple tiffs in a folder and output in hocr format in a separate file for every tiff? I.e. 50 tiffs would output 50 hocr files. Thanks

ShreeDevi Kumar

unread,
Jul 21, 2015, 8:00:14 AM7/21/15
to tesser...@googlegroups.com

for f in *.tif
do
  tesseract    $f $f hocr
done

ShreeDevi
____________________________________________________________
भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com

On Tue, Jul 21, 2015 at 4:29 PM, Stathis L. <doombri...@gmail.com> wrote:
Does anybody know how to process multiple tiffs in a folder and output in hocr format in a separate file for every tiff? I.e. 50 tiffs would output 50 hocr files. Thanks

--
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 tesseract-oc...@googlegroups.com.
To post to this group, send email to tesser...@googlegroups.com.
Visit this group at http://groups.google.com/group/tesseract-ocr.
To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/2ae122ec-5740-4176-b951-20771c0f087b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Stathis L.

unread,
Jul 21, 2015, 9:06:33 AM7/21/15
to tesser...@googlegroups.com
What is the variable f? I mean, I get the message "f was unexpected at this time."

ShreeDevi Kumar

unread,
Jul 21, 2015, 9:31:41 AM7/21/15
to tesser...@googlegroups.com
that for loop is for a bash script -

 please see http://www.cyberciti.biz/faq/bash-for-loop/ for examples - 



ShreeDevi
____________________________________________________________
भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com

Reply all
Reply to author
Forward
0 new messages