Still relatively new to Enfocus Switch, and I'm a bit stuck.
I'm trying to build a flow which uses Tesseract OCR tool (https://github.com/tesseract-ocr/tesseract) via the Execute Command element to scan incoming JPEGs, and extract the text to a ".txt" or ".doc" format to a specified location.

However, I'm stuck because:
A)the specified "test.bat" file does not run when the job passes through the flow, and
B)I'm not sure which arguments to write for the Execute Command element, as the name of the input file is dynamic, and the name of the output file is also dynamic (.txt).
test.bat
Code: Select all
D:
cd "D:\Enfocus\Resources\Tesseract\Images"
tesseract ocrtest2_1.jpeg test
Could anyone point me in the right direction for this? I've had a look at some historic forums but can't seem to work it out! Perhaps my logic for the flow is not correct also.
viewtopic.php?t=3812
viewtopic.php?t=4151
Thank you in advance!
