扫描 - 硬件自定义文档尺寸
我需要对不符合 A3、A4 等标准尺寸的区域进行扫描。这些扫描必须由自定义应用程序加载和后期处理。我同事的粗略想法是拆卸标准扫描仪,并将光学+电子(以某种方式)连接到定制设备上,该设备将(连续)导航它通过该区域(硬件人员......我不知道)。
我的问题是:
- 有人尝试过吗?去还是不去?
- 谁控制图像/文档的区域和大小?扫描仪驱动程序/固件?它可以在我说的应用程序 -> 模式下运行吗?执行扫描->扫描仪穿过可用区域 ->图像数据到达末尾时返回吗?或者,有人必须定义扫描仪的区域并且只发送回这些数据?
- 这种非标准设置可以通过标准化 API(TWAIN、WIA)进行控制吗?
任何建议/评论都将受到高度赞赏。
I need to perform a scanning of areas which do not meet standard sizes of A3, A4 etc. Those scans have to be loaded and post processed by custom application. The rough idea of my colleague was to disassemble standard scanner and attach optics + electronic (somehow) to a custom device which will navigate it (continuously) through the area (the hardware guy ... I have no idea).
My questions are:
- Does anyone tried the thing? Go or no go?
- Who controls the region and sizes of the image/document? Scanner driver/firmware? Can it run in a mode where I say from application -> perform scan -> scanner runs through available area -> image data are returned when it hits the end? Or, someone has to define the area for the scanner and only those data are sent back?
- Can be this non-standard setup controlled via standardizes APIs (TWAIN, WIA)?
Any suggestions/remarks are highly appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
最简单的方法是使用 TWAIN。
在 TWAIN 规范 2.1 中,您可以搜索 TW_IMAGELAYOUT 和 DAT_IMAGELAYOUT。 DAT_IMAGELAYOUT 操作控制源采集平台上图像的物理布局信息(例如平板扫描仪的玻璃、照片的尺寸等)。
然而,编写自己的代码来支持 TWAIN 并不容易。您可以使用任何 TWAIN 库来实现这一点。
The easiest way is to use TWAIN.
In TWAIN specification 2.1, you can search for TW_IMAGELAYOUT and DAT_IMAGELAYOUT. The DAT_IMAGELAYOUT operations control information on the physical layout of the image on the acquisition platform of the Source (e.g. the glass of a flatbed scanner, the size of a photograph, etc.).
However, it is not easy to write your own code to support TWAIN. You can use any TWAIN library to achieve that.