Aforge.net从扫描图像中获取数据 [英] Aforge.net get data from scanned image

查看:480
本文介绍了Aforge.net从扫描图像中获取数据的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

从扫描图像获取表格数据时遇到了一个小问题.一个简单的问题 Aforge.net 仅在黑色背景上有效.表格和单元格边框为黑色.当我将包含表格数据的pdf文件保存为图像时,Aforge可以正常工作,但是当我处理扫描的数据时,Aforge找不到任何斑点.扫描的图像为500dpi的灰度8位bmp.扫描时,结果图像中的表格变成灰色而不是黑色.将图像转换为黑白的过程很漫长,因为我要扫描约7万张纸.

请帮助我解决Aforge的黑色背景问题.

I have run into a little problem in getting tabular data from scanned image. There is a simple problem Aforge.net works only on black background. The table and cell borders are black. When I save the pdf file containg tabular data as image, Aforge works fine but when I take up the scanned data, Aforge finds no blobs. The scanned is grayscale 8bit bmp at 500dpi. On scanning, the tables in the resulting image become grayish instead of black. Converting the image to black n white is a long process as I have approx 70,000 sheets to scan.

Kindly help me with this black background problem of Aforge.

推荐答案

好吧,如果这是问题所在,只需在识别之前反转图像即可.

—SA
Well, if this is the problem, just invert the image before recognition.

—SA


这篇关于Aforge.net从扫描图像中获取数据的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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