Saurabh, It depends on what you want to do with the bash script.
Here is a sample of a script I used to compare results using diff tessdata files by looping thru a set of image files. Google the bash commands to figure out what they do! #!/bin/bash set -vx export TESSDATA_PREFIX=/mnt/c/Users/User/shree/tesseract-ocr img_files=$(ls *.jpeg) for img_file in ${img_files}; do time tesseract ${img_file} ${img_file%.*}-ssd -l ssd time tesseract ${img_file} ${img_file%.*}-ssdsmall --psm 6 --oem 1 -l ssdsmall time tesseract ${img_file} ${img_file%.*}-eng --psm 6 --oem 1 -l eng done ShreeDevi ____________________________________________________________ भजन - कीर्तन - आरती @ http://bhajans.ramparivar.com On Mon, Apr 3, 2017 at 7:10 PM, Saurabh Srivastav < saurabhkumarsrivas...@gmail.com> wrote: > hello shree ! thank you for your help. > may you please help me how can i write a bash script for tesseract. > > -- > 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-ocr+unsubscr...@googlegroups.com. > To post to this group, send email to tesseract-ocr@googlegroups.com. > 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/ac53f578-d14c-401b-b65e-b222fe4cb067% > 40googlegroups.com > <https://groups.google.com/d/msgid/tesseract-ocr/ac53f578-d14c-401b-b65e-b222fe4cb067%40googlegroups.com?utm_medium=email&utm_source=footer> > . > For more options, visit https://groups.google.com/d/optout. > -- 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-ocr+unsubscr...@googlegroups.com. To post to this group, send email to tesseract-ocr@googlegroups.com. 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/CAG2NduWM5M%2BnQ%3Dbg_3EV%2Bbj6ViXYVCMgNWprQA6uwWr3vzdGuw%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.