使用 TWAIN 扫描 2400 DPI 图片时内存问题是否常见?
我正在使用 twaindotnet 以 2400 DPI 扫描图像。每当我扫描整页彩色时,我都会收到一条消息,指出没有足够的内存来执行此操作。我在另一台具有大约 4 GB RAM 的计算机上尝试了它,并收到了相同的错误消息。
如果我将图像扫描为黑白或灰度,我不会收到任何错误,并且一切正常。
这是与扫描仪驱动程序 (Canon 9000F) 有关的问题还是一般的 TWAIN 问题?
I'm using twaindotnet to scan an image with 2400 DPI. Whenever I scan a full page in color I get a message that there is not enough memory to perform this action. I tried it on a different computer with around 4 GB of ram and got the same error message.
If I scan the image as black and white or gray-scale I don't get any error and everything is working fine.
Is that a problem that is related to the scanner driver (Canon 9000F) or is this a general TWAIN problem?
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
灰度图像的位深度为 2 到 8。对于合法大小且 2400 dpi 的图像,大小可以是 163 MB ~ 654 MB。
彩色图像具有更高的位深度。以32为例,相同尺寸和dpi的图像可以在2.62GB左右。加上其他应用程序占用的内存,4 GB 内存可能会耗尽。
文件大小 = (高度 x 宽度 x 位深 x dpi2) / 8
gray-scale images have a bit depth varying from 2 to 8. for an image of legal size and of 2400 dpi, the size can be 163 MB ~ 654 MB.
color images have higher bit depth. take 32 for example, the image of the same size and dpi can be around 2.62 GB. plus the memory occupied by other applications, 4 GB memory likely runs out.
File Size = (height x width x bit depth x dpi2) / 8
看起来Twain库正在扫描到内存,Twain规范还有一种文件传输模式,通常用于非常大的图像(ICAP_XFERMECH)。 Twaindotnet 可能允许您在扫描时选择文件传输模式。
Looks like that Twain library is scanning to memory, the Twain specification also has a file transfer mode which is generally used for very large images (ICAP_XFERMECH). Twaindotnet may allow you to choose the file transfer mode when scanning.