[sane-devel] scanimage / tesseract interoperability
jeff at jab.org
Sat May 10 21:45:22 UTC 2014
Thank you Simon, the --batch-script feature looks very flexible.
It almost does the trick:
scanimage --batch --batch-script <(echo) | tesseract - -
Unfortunately, it runs just a little too early. The script executes
just before the temporary image file is renamed. Tesseract
wants to know about the final filename after it exists.
My very first implementation attempt didn't work; the emitted
filename somehow ended up in the image data. Is there a problem
with scanimage writing to standard output?
if (new_interoperability_feature) fprintf(stdout, "%s\n", path);
I ultimately hope to make scanimage and tesseract work
together nicely for everyone. So any suggestions or advice
-------------- next part --------------
An HTML attachment was scrubbed...
More information about the sane-devel