tesseract command not executed via alfresco OCR, but manually at Linux command line works

70 views
Skip to first unread message

RVP

unread,
Jan 27, 2015, 2:54:50 AM1/27/15
to tesser...@googlegroups.com
I'm new to this.

We are using alfresco-4.2.2 on RHEL6.5x64, and within a bash script, we call 'tesseract' to do the img to txt conversion.
something like

/usr/bin/tesseract $f $TMPDIR/${f%.*} -l eng

and we the .jpg file as a $f variable

When i manually execute the bash script, it calls tesseract and executing the command.  No issues
But, when we call the script via alfresco application( a java JVM calls the script the same method its executed via command line), it doesn't execute the 'tesseract' command alone. All other commands within the script is being executed.
Any idea?

I tried to trace it with

/usr/bin/tesseract $f $TMPDIR/$name/${f%.*} -l eng | tee -a /tmp/tee.log

but no update to the /tmp/tee.log -- via alfresco application execution.  When i run the script manually, tesseract command is getting executed, and able to see the "Tesseract Open Source OCR Engine v3.01 with Leptonica" entry in the tee.log file..

Thanks for assistance.



zip...@centrum.cz

unread,
May 24, 2016, 6:59:29 AM5/24/16
to tesseract-ocr
Hi RVP,
have you solved the issue..? I'm having the same problem so i would appreciate your help. Thank you


Dne úterý 27. ledna 2015 8:54:50 UTC+1 RVP napsal(a):
Reply all
Reply to author
Forward
0 new messages