C#调用DLL实现图像文字识别(OCR)
2010-11-23 10:09
676 查看
请先下载http://asprise.com/product/ocr/index.php?lang=csharp 的SDK.里面提供了详细的OCR方法,如下:
将发现图像框picbVeryfyCode里的文字和文本框.txtVeryfyCode.Text是一致的.
数字识别率我碰到的几乎是100%
http://blog.csdn.net/crabo/
[DllImport("AspriseOCR.dll")]
static extern string craboOCR(string file, int type);
private void GetVeryfyCode()
{
if(File.Exists(_imgPath))//ok now?
{
try
{
this.picbVeryfyCode.Image=System.Drawing.Bitmap.FromFile(_imgPath);
_veryfyCode=craboOCR(_imgPath,-1); //将返回string,并以"\r\n"结尾!!
_veryfyCode=_veryfyCode.Substring(0,4);
this.txtVeryfyCode.Text=_veryfyCode;
}
catch(Exception e)
{
this.lblResult.Text+=e.Message;
}
}
}
此文转载自opent.cn:http://www.opent.cn/a/092/770.shtml
将发现图像框picbVeryfyCode里的文字和文本框.txtVeryfyCode.Text是一致的.
数字识别率我碰到的几乎是100%
http://blog.csdn.net/crabo/
[DllImport("AspriseOCR.dll")]
static extern string craboOCR(string file, int type);
private void GetVeryfyCode()
{
if(File.Exists(_imgPath))//ok now?
{
try
{
this.picbVeryfyCode.Image=System.Drawing.Bitmap.FromFile(_imgPath);
_veryfyCode=craboOCR(_imgPath,-1); //将返回string,并以"\r\n"结尾!!
_veryfyCode=_veryfyCode.Substring(0,4);
this.txtVeryfyCode.Text=_veryfyCode;
}
catch(Exception e)
{
this.lblResult.Text+=e.Message;
}
}
}
此文转载自opent.cn:http://www.opent.cn/a/092/770.shtml
相关文章推荐
- C#调用DLL实现图像文字识别(OCR)
- C#调用DLL实现图像文字识别(OCR)
- C#调用DLL实现图像文字识别(OCR)
- 实现验证码图像文字的识别(C#调用DLL)
- 实现验证码图像文字的识别(C#调用DLL)
- python 3调用百度OCR API实现剪贴板文字识别
- C#调用OCR组件识别图片文字
- Python 3调用百度OCR API实现剪贴板文字识别
- 用百度AI的OCR文字识别结合PHP实现了图片的文字识别功能
- C#程序实现动态调用DLL的研究(转载)
- 投票程序2 图像识别 Using The Office 2007 OCR Component in C#
- C#程序实现动态调用DLL的研究(2)
- Android使用ksoap2调用C#中的webservice实现图像上传
- 在VS2015中用C++创建DLL并用C#调用且同时实现对DLL的调试
- 【识别码】使用(ImageMagick+tesseract-ocr)实现图像验证码识别实例
- C#程序实现动态调用DLL的研究
- C# 实现动态调用DLL的研究
- Java OCR tesseract 图像智能文字字符识别技术实例代码
- [转]C#程序实现动态调用DLL的研究
- 用百度AI的OCR文字识别结合JAVA实现了图片的文字识别功能