English 中文(简体)
Access scanner from Java or Python (or something else if it s technically motivated) in Linux (but Windows would be nice)
原标题:

I want to write a system for handling important documents in my home. This is the user story for getting a new document:

  1. I "Add new document" and am prompted to scan it using my combined printer/scanner.
  2. I view the scanned copy to see it s of good enough quality. Which it has.
  3. The system tells me to mark it with number N, which I do. I also enter title, document type, description and when the document is no longer needed to be stored (could be never to always keep it).

The problem is accessing the scanner. I do not know what the smoothest way is. Ideally it would support "all" scanners through some kind of standard interface. I do not know if that even exists. Should I do this in Java, Python or something else?

My primary platform is Linux. But if it worked on Windows too, that would be nice. If I manage to create something useful I ll release it as GPL, so it s for a good cause too. ;-)

Thank you for reading!

问题回答

Under Linux, the common interface to scanners is SANE.

The standard interface for scanners is TWAIN. If you google for "java twain" or "python twain", you get plenty of useful-looking stuff, e.g.





相关问题
Spring Properties File

Hi have this j2ee web application developed using spring framework. I have a problem with rendering mnessages in nihongo characters from the properties file. I tried converting the file to ascii using ...

Logging a global ID in multiple components

I have a system which contains multiple applications connected together using JMS and Spring Integration. Messages get sent along a chain of applications. [App A] -> [App B] -> [App C] We set a ...

Java Library Size

If I m given two Java Libraries in Jar format, 1 having no bells and whistles, and the other having lots of them that will mostly go unused.... my question is: How will the larger, mostly unused ...

How to get the Array Class for a given Class in Java?

I have a Class variable that holds a certain type and I need to get a variable that holds the corresponding array class. The best I could come up with is this: Class arrayOfFooClass = java.lang....

SQLite , Derby vs file system

I m working on a Java desktop application that reads and writes from/to different files. I think a better solution would be to replace the file system by a SQLite database. How hard is it to migrate ...

热门标签