twain

How do I check if the scanner is plugged in (C#, .NET TWAIN)

白昼怎懂夜的黑 提交于 2019-12-09 06:07:32
问题 I'm using the .NET TWAIN code from http://www.codeproject.com/KB/dotnet/twaindotnet.aspx?msg=1007385#xx1007385xx in my application. When I try to scan an image when the scanner is not plugged in, the application freezes. How can I check if the device is plugged in, using the TWAIN driver? 回答1: Maybe I'm taking the question too literally, but using the TWAIN API, it is not possible to check if a device is plugged in i.e. connected and powered on. The TWAIN standard does define a capability for

How do I enumerate resolutions supported via TWAIN

我的梦境 提交于 2019-12-08 00:08:44
问题 I have to enumerate DPI's supported by scanner via TWAIN interface. // after Acquire is called... TW_CAPABILITY twCap; GetCapability(twCap, ICAP_XRESOLUTION) if (twCap.ConType == TWON_ENUMERATION) { pTW_ENUMERATION en = (pTW_ENUMERATION) GlobalLock(twCap.hContainer); for(int i = 0; i < en->NumItems; i++) { if (en->ItemType == TWTY_FIX32) { TW_UINT32 res = (TW_UINT32)(en->ItemList[i*4]); // print res... } That works fine but output sequence is strange: 50 100 150 44 88 176 I know exactly that

Running a scanning app on a 64-bit machine via ClickOnce

夙愿已清 提交于 2019-12-07 16:23:49
问题 Okay, here's my setup. I have a c# app working perfectly on all 32-bit Windows XP-Vista-7 machine. I already have a verisign PFX to support the ClickOnce deployment and is using Atalasoft DotTwain 8.0 as the 3rd party scanner helper. When I publish my application, I choose "Any CPU" as the Platform target. When I try to make it run on a Windows 7 64-bit Home Premium, my application crashes after the installation. I tried re-publishing the work on a specific x64 platform but still failed. Any

JavaScript文档扫描

两盒软妹~` 提交于 2019-12-07 08:56:39
不同的操作系统,底层使用的扫描仪驱动是不同的。Linux上用SANE,Windows上用TWAIN,Mac上用TWAIN或者ICA。不管上层用的是什么高级语言 (Java, Python, JavaScript等等), 一个跨平台的文档扫描SDK或者软件必须支持不同平台的扫描仪访问协议。Dynamic Web TWAIN是目前唯一一个支持Windows, Linux和macOS的文档扫描SDK。这里分享下如何使用Node.js来快速实现一个支持多平台的web文档扫描应用。 参考原文: JavaScript Document Scanning for Windows, Linux and macOS 作者: Xiao Ling 翻译:yushulx JavaScript多平台文档扫描 1. 安装 Node.js . 2. 创建工程 document-scanning 。初始化: npm init 3. 通过 npm 安装 Express 和 Dynamic Web TWAIN : npm install express -–save npm install dwt --save 4. 创建HTML前端页面。初始Dynamic Web TWAIN化对象: <script type="text/javascript" src="node_modules/dwt/dist

Node.js+Web TWAIN,实现Web文档扫描和图像上传

三世轮回 提交于 2019-12-07 08:56:16
通过 Dynamic Web TWAIN SDK 和 Node.js 的组合,只需要几行代码就可以实现在浏览器中控制扫描仪,获取图像后上传到远程服务器。 原文: Document Imaging and Uploading With Dynamic Web TWAIN and Node.js 下载安装 Dynamic Web TWAIN download Node.js download 通过Node.js创建server 创建工程目录,打开cmd.exe进入到工程目录,安装下面两个Node.js模块: npm install formidable@latest npm install express 创建server.js,初始化: var formidable = require('formidable'); var util = require('util'); var express = require('express'); var fs = require('fs'); var app = express(); 把静态资源,比如图片,css等,都加载进来: app.use(express.static(__dirname, '/public')); 要实现跨域访问,需要在header里添加权限,如果不添加,只能local访问: app.use(function(req,

Dynamic Web TWAIN和ImageCapture成功运用于新一代富士放射管理解决方案

孤者浪人 提交于 2019-12-07 08:56:01
Dynamsoft 公司旗下的图像捕获软件开发包 ImageCapture Suite 成功用于富士医疗系统公司的新版Synapse®RIS放射科管理软件的图像捕捉功能。ImageCapture为新版Synapse®RIS放射科管理软件提供了更方便的图像捕获和文档管理功能。ImageCapture Suite适用于放射工作流程的所有方面,从前台到远程影像诊断服务。 Fujifilm将Dynamsoft公司的 Dynamic Web TWAIN 9.1成功整合至 Synapse RIS影像扫描模块。办公人员可以轻松地扫描并捕获重要文档,如保险卡和知情同意书。Dynamic Web TWAIN开发包加快了模块开发时间,提供了额外的图像捕捉和文档管理功能。这些功能包括对扫描文档的编辑,如旋转,裁剪等。同时,Dynamic Web TWAIN还能确保基于Web的Synapse RIS 6.3对用户跨浏览器的兼容性。 此外,Dynamsoft的Dynamic Web TWAIN还支持Mac OS X®设备上的本地扫描。用户无需安装额外的驱动程序。它还提供了沙箱安全,确保基于浏览器的图像扫描应用程序安全地从图像设备中分离出来。Sandbox的使用确保了与TWAIN兼容的设备实现无障碍通信。Dynamic Web TWAIN内置了对本地图像编辑和多种保存格式的支持

Can one listen a twain (Maybe WIA) scanner?

我的梦境 提交于 2019-12-07 05:04:43
问题 I am evaluating VintaSoft .net control and Atalasoft DotTwain Image Capture. And I am very but very lost with the most of the definitions and keywords. So I am asking this because I think I am in Lala land. Is it possible to listen or have the scanner tell my app that there is a scanned image and I can process it? The idea is to have a winservice that is waiting for the scanner to scan something and when that happens process the image. 回答1: I have only worked with the native interfaces to

结合Dynamic .NET TWAIN和Jetty,实现基于网页的TWAIN文件扫描

馋奶兔 提交于 2019-12-06 16:34:34
网页TWAIN扫描是通过多种技术结合实现的,看下流程图: 参考原文: Web-based Document Imaging Capture with .Net TWAIN and Jetty 准备工作 阅读: 如何通过jni4net,在Java应用中调用C#接口 使用Jetty搭建Java Websocket Server,实现图像传输 如何运行 在Eclipse中运行Java Application,选择UIMain 当这个窗口启动的时候,Websocket Server已经初始化完成。 Load:加载本地图片 Send:把图片推送到网页客户端 Scan:通过扫描仪扫描文件,把图像自动发送到网页客户端 在Chrome中选择一个扫描仪源 显示TWAIN扫描文件图像 TWAIN网页扫描流程解析 首先把所有相关的库(DLL & Jar)导入到Eclipse工程中: 结合准备工作中两篇文章的代码, 创建一个类 SourceManager : package com.data; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.io.File; import java.util.ArrayList; import javatwain.DotNetScanner;

Web TWAIN scanning solution for ASP.Net? [closed]

喜欢而已 提交于 2019-12-06 05:27:21
问题 Closed. This question is off-topic. It is not currently accepting answers. Want to improve this question? Update the question so it's on-topic for Stack Overflow. Closed 3 years ago . I know some of you will discourage scanning through a web page, unfortunately, it is a requirement. I want to view my options in the situation, and maybe, some of you may have already gone through this and had a workable solution. Problem is, we need to have a universal approach in scanning documents through the

What is the state of TWAIN on the Macintosh today?

我们两清 提交于 2019-12-06 05:10:55
问题 I'm currently working on a project where we want to interface with TWAIN scanners on both the PC (Windows) and the Macintosh. On Windows, we basically have everything squared away and the code works successfully with the vast majority of scanners. On Mac OS X, we also basically have everything working and with the main scanner we used to develop the application with works perfectly, but we're not having a ton of luck with other scanners. As a byproduct of development on this project, we have