I have a custom script which converts jpg to txt using tessaract 3.01. When i execute the script from command line the conversion works fine but when the same script is executed from a java application running on tomcat, it seems the application cannot find tesseract. This issue is happening on my redhat 6.2 box but not on my ubuntu 12.04 box.
The script:
#!/bin/sh
SOURCE=$1
TARGET=/tmp/ocrOutput
echo "Starting tesseract"
tesseract $SOURCE $TARGET -l eng
echo " Finished"
Can someone please advice?
The informations given are very minimal, but I guess it is a path problem. Try to use the full path when calling tesseract.