[sane-devel] scanimage / tesseract interoperability

Jeff Breidenbach 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
are appreciated.

Cheers,
Jeff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/sane-devel/attachments/20140510/ecf428c8/attachment.html>


More information about the sane-devel mailing list