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
-- 
sane-devel mailing list: sane-devel@lists.alioth.debian.org
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/sane-devel
Unsubscribe: Send mail with subject "unsubscribe your_password"
             to sane-devel-requ...@lists.alioth.debian.org

Reply via email to