OCR转换文件保存到数据库中 [英] OCR Converted File Save into Database

查看:259
本文介绍了OCR转换文件保存到数据库中的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在Asp.net中做一个项目,图像文件(任何格式)egTender表格被转换为OCR,OCR将文件存储转换为不同字段中的SQL Server数据库格式,如日期公司名称,地址,参考否,项目,数量,UOM,总数等。

I am Doing a project in Asp.net , The The image file ( any Formats) e.g.Tender Form is Converted to OCR That OCR Converted File Store in to SQL Server Database in Different Fields Formats like date Company Name, Address, Reference No , Item ,QTY ,UOM,total etc.

推荐答案

OCR代表光学字符识别,

此技术将帮助您提取来自图像文件的TEXT数据并将其存储到文本文件(* .txt)或富文本格式(* .rtf)。



U可以读取文本文件或富文本格式文件使用



OCR stands for Optical Character Recognition,
This Technology will help you to extract 'TEXT' data from image file and store it to Text File(*.txt) or Rich Text Format(*.rtf).

U Can read Text File or Rich Text Format file using

string [] allLines = File.Read("DestinationFilePath");





从文件中获取文本数据后,我们可以考虑您已经阅读了招标表格。现在只需编写Sql Insert查询。



Once you got text data from file, here lets consider you have read Tender Form. Now just Write Sql Insert query.

SqlCommand cmd=new SqlCommand ("insert into tablename values('alllines[0]')",Connection)
cmd.ExecuteNonQuery();





注意:请注意,OCR无法读取格式化文本下划线文本表格内容。所以,尽可能多地保留简单文本。



NOTE: Please not that OCR cant read Formated Text or Underlined Text or Table Content. So, keep simple text as much as you can.


这篇关于OCR转换文件保存到数据库中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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