是否有可能重定向用户启动扫描程序应用程序? [英] Is it possible redirect user to launch scanner application?

查看:50
本文介绍了是否有可能重定向用户启动扫描程序应用程序?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在编写一个应用程序,使用 python3-django-1.8.1 显示上传的文档。我们还希望允许用户扫描文档。

I'm writing an application to show the uploaded documents using python3-django-1.8.1. We also want to allow user to scan a document.

如你所知,javascript中有一个打印对话框。

As you know that, there is a print dialog in javascript.

window.print()




  • 浏览器是否有任何支持扫描文档?

  • 是否可以使用javascript / python在客户端计算机上启动扫描程序?
    喜欢:

    • Is there any support in the browser to scan a document?
    • Is it possible to launch a scanner application on clients machine, using javascript/python? like:


      • Windows机器上的Windows传真和扫描

      • 简单扫描在Linux上等等或

      • 无论客户端各个操作系统上的默认扫描程序应用程序是什么。

      任何第三方python应用程序/ js插件都允许扫描文档吗?

      Any third party python application/js plugin allow to scan a document?

      推荐答案

      我对图像扫描功能不是很熟悉,但是我遇到了类似条码扫描器的问题。

      I am not too familiar with a image scanning feature, but I had faced a similar issue with a barcode scanner.

      你真的不能指望类似于打印的东西,因为打印是一种支持浏览器的功能,而扫描是典型浏览器不能做的事情。

      You cannot actually expect something similar to printing, as printing is a browser-enabled feature whereas scanning is something a typical browser does not do.

      此外,JS无法直接访问外围设备。如果移动设备浏览此页面会发生什么? (从相机扫描会很棒,但从来没有听说过类似的东西)。

      Moreover, JS has no capability of accessing peripherals directly. What would happen if this page would be browsed by a mobile? (A scan from the camera would be fantastic but never heard of anything like it).

      话虽如此,有一个 scanner.js SDK:

      Having said that, there is a scanner.js SDK:


      scanner.js允许任何网页在大多数桌面浏览器(如IE,Chrome,Firefox等)中使用JavaScript从扫描仪获取图像。在大多数情况下,不需要安装软件,用户可以享受良好的扫描体验。

      scanner.js enables any web page to acquire images from scanners using JavaScript in most desktop browsers like IE, Chrome, Firefox and more. In most cases, software install is not required and the user can enjoy a great scanning experience.

      还有 Twain SDK


      Dynamic Web TWAIN是一款专为Web应用程序设计的基于TWAIN的扫描SDK软件。

      Dynamic Web TWAIN is a TWAIN-based scanning SDK software specifically designed for web applications.

      这些假设处理你的问题,但我没有使用它们。 Scanner.js演示现在甚至还没有在我的Ubuntu机器上运行。我的猜测是它们不是完全基于JS的(com对象和东西)。

      These are supposingly dealing with your issue but I haven't used them. Scanner.js demo is not even working now on my Ubuntu machine. My guess is that they are not entirely JS-based anyway (com objects and stuff).

      其他事情要做的是如果你的情况是开发了一个小的Firefox插件特定的(如Intranet)所以控制用户的浏览器。

      Other things to do is to have a small Firefox plugin developed if your case is specific (such as Intranet) so to control the users' browsers.

      最后但并非最不重要的是,另一个选择是开发并提供一个小型桌面应用来处理扫描和上传。

      Last, but not least, another option would be to develop and provide a small desktop app to handle scanning and uploading.

      如果有任何其他建议,我很乐意看到它。

      If there is any other recommendation I would love to see it.

      这篇关于是否有可能重定向用户启动扫描程序应用程序?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆