基于网络的扫描解决方案
你们知道有哪些基于网络的扫描软件吗?如果不是商业的话,我更喜欢开源。您应该能够扫描文档并直接上传到网络服务器上?也许基于 ActiveX。我更喜欢Python。
Are you guys aware of any web based scanning software? I prefer open source, if not commercial. You should be able to scan documents and upload directly onto a web server? Perhaps based on ActiveX. I would prefer Python.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(3)
Dynamsoft 的 Dynamic Web Twain 完全可以满足您的需求,尽管它是商业性的。 http://www.dynamsoft.com 我确实尝试了其他解决方案(有一个基于 Java 的解决方案),但是它们非常不可靠,而且带来了很多麻烦,最后我花了钱并用了它。
我曾经想过自己写一个。我的想法是,有开源的 Twain Api(或者我可以编写一个),但我打算创建一个小型服务,用于侦听本地主机并处理与 Twain 的接口,并将响应传递到一个薄的 Javascript 层。让一些基本的工作正常工作并不需要太多的工作。
顺便说一句,我与 Dynamsoft 没有任何关系。
Dynamsoft's Dynamic Web Twain does exactly what you want, though it is commercial. http://www.dynamsoft.com I did try other solutions (there was a Java based one), but they were terribly unreliable and a lot of trouble and in the end I stumped up the money and used that.
I did toy with the ideas of writing my own. The idea is that there are open source Twain Api's out there (or I could write one), but I was going to create a small service that listens on localhost and handles the interface with Twain and passes the response to a thin Javascript layer. Would not be too much work to get something basic working.
Btw I am no way affiliated with Dynamsoft.
我不认为网页可以访问扫描仪设备。也许可以使用 ActiveX 来完成,但使用 Python 进行开发可能会很困难。而且,ActiveX将仅限于Windows平台和IE浏览器。我不会走这条路。
作为替代方案,您可能对 pyscanning 感兴趣,它是一个多平台 Python库来访问扫描仪设备。
有了这个库,您可以开发一个小型桌面应用程序,它将扫描文档并将图像推送到网络应用程序。
我不知道这种解决方案是否可以满足您的需求,但我更喜欢这种方式而不是制作 ActiveX。
我希望它有帮助
I don't think that a web page can access a scanner device. Maybe it is possible to do it with an ActiveX but it may be difficult to develop in Python. More over, ActiveX will be limited to Windows platform and IE browsers. I wouldn't go this way.
As an alternative, You may be interested by pyscanning which is a multi-platform Python library to access scanner devices.
With this lib, You could develop a small desktop app, that will scan the document and push the image to the web app.
I don't know if this kind of solution can fit your needs but I would prefer this way rather than making an ActiveX.
I hope it helps
我不知道像您所描述的那样的现有系统,但它必须使用某种浏览器插件。如果你愿意,你可以用 FireBreath 编写这样的东西;如果您已经知道如何进行扫描部分,FireBreath 通过抽象 ActiveX (IE) 和 NPAPI(其他)层使浏览器集成部分变得容易,这样您就不必担心它们。
一些用户报告成功地将 C++ 绑定到 python 脚本,以便他们的更多逻辑可以在 C++ 中运行,尽管这会增加 python 对系统的依赖。然而,无法使用原始 python 编写浏览器插件。
I don't know of an existing system like you describe, but it would have to use a browser plugin of some sort. If you wanted to you could write such a thing with FireBreath; if you already knew how to do the scanning part FireBreath makes the browser integration part easy by abstracting both the ActiveX (IE) and NPAPI (others) layers so that you don't have to worry about them.
Some users have reported success with tying into python scripts from C++ so that more of their logic could run in C++, though that would add a dependency of python to the system. There is no way to write a browser plugin with raw python, however.