简体   繁体   English

从没有小程序的网页访问客户端的扫描仪

[英]Accessing scanner at client side from a web page without applet

I want to acces a scanner at client side, before I was using java applet without problem but after chrome has decided to not support java what can I do.我想在客户端访问扫描仪,在我毫无问题地使用 java applet 之前,但在 chrome 决定不支持 java 之后我该怎么办。 If there's solution with JS, Jquery or other language please tell me如果有 JS、Jquery 或其他语言的解决方案,请告诉我

For client-side you'll want to use Dynamic Web TWAIN .对于客户端,您需要使用Dynamic Web TWAIN Unfortunately there are no other solutions, but this one is well maintained and documented.不幸的是,没有其他解决方案,但是这个解决方案得到了很好的维护和记录。 The technology for scanners in browsers isn't quite there yet.浏览器中的扫描器技术还不成熟。 Read up some of the other posts on Stack Overflow regarding the same web scanning issues here .在此处阅读 Stack Overflow 上关于相同网络扫描问题的其他一些帖子。 There's been almost a year's worth of discussion on exactly this topic.就这个话题已经进行了将近一年的讨论。

Atalasoft has a web scanning toolkit that should meet your needs: Atalasoft WingScan product page Atalasoft 有一个网络扫描工具包,应该可以满足您的需求: Atalasoft WingScan 产品页面

The product does not use browser-specific plugins and therefore works nicely in all modern browsers (IE8+, Chrome, Firefox).该产品不使用特定于浏览器的插件,因此在所有现代浏览器(IE8+、Chrome、Firefox)中都能很好地工作。

Architecturally, there is a small local component that should be installed, which exposes RESTful web service.在架构上,应该安装一个小的本地组件,它公开 RESTful Web 服务。 Web page uses standard JavaScript/jQuery to communicate with the service and scan/import/enhance images.网页使用标准的 JavaScript/jQuery 与服务通信并扫描/导入/增强图像。

Here is the online demo, so you could try it out right away: Wing Scan Demo page这是在线演示,您可以立即试用: Wing Scan Demo 页面

The scanning component is based on the EZTwain library, and it includes a number of image processing algorithms that improve quality of scanned images (deskew, autorotate, blank page detection, etc.)扫描组件基于EZTwain库,包括许多提高扫描图像质量的图像处理算法(纠偏、自动旋转、空白页检测等)

You can optionally license and use embedded VRS technology, which I have to say is impressively good at cleaning up scans.您可以选择许可和使用嵌入式 VRS 技术,我不得不说它在清理扫描方面非常出色。

HTML was not capable of it in general before (for security issues, not access to the OS), but this is changing. HTML 以前一般不支持它(出于安全问题,而不是访问操作系统),但这种情况正在改变。

HTML 5 has now meany features. HTML 5 现在有很多功能。

See that post with very detailed informations: Can HTML5 communicate with peripherals like scanners and credit card readers?请参阅包含非常详细信息的帖子: Can HTML5 communicate with peripherals like scanners and credit card readers?

In particular, you should focus on camera/video capabilities, which can work for scanners too: http://www.w3.org/TR/2012/WD-mediacapture-streams-20120628/特别是,您应该关注相机/视频功能,这也适用于扫描仪: http://www.w3.org/TR/2012/WD-mediacapture-streams-20120628/

You can combine TWAIN server and WebSocket as the alternative solution.您可以结合 TWAIN 服务器和 WebSocket 作为替代解决方案。

Here is a tutorial introducing how to acquire images on server-side using Dynamic .NET TWAIN and send the captured images to Web client via WebSocket.这里有一个教程,介绍如何使用 Dynamic .NET TWAIN 在服务器端获取图像,并将捕获的图像通过 WebSocket 发送到 Web 客户端。

If you want to use Java, read the tutorial Document Web Scanning in HTML5 and Java .如果您想使用 Java,请阅读教程HTML5 和 Java 中的文档 Web 扫描

在此处输入图像描述

Dynamic .NET TWAIN is a commercial software. Dynamic .NET TWAIN 是一款商业软件。 You can replace it with any TWAIN scanning solution you like.您可以将其替换为您喜欢的任何 TWAIN 扫描解决方案。

You have to made a desktop apllication that will work in background.您必须制作一个可以在后台运行的桌面应用程序。 Desktop application will remain connected with browser while it is open.桌面应用程序在打开时将与浏览器保持连接。 When browser command to scan the desktop apllication scan document and send it to browser.当浏览器命令扫描桌面应用程序扫描文档并将其发送到浏览器时。

Here is the solution.这是解决方案。 Very easy to implement just follow the steps there.非常容易实施,只需按照那里的步骤操作即可。

ScanAppForWeb ScanAppForWeb

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM