实现验证码图像文字的识别(C#调用DLL)
2010-09-05 20:36
561 查看
请先下载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; } }}
此文转载自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; } }}
此文转载自www.opent.cn/a/092/770.shtml
相关文章推荐
- 实现验证码图像文字的识别(C#调用DLL)
- C#调用DLL实现图像文字识别(OCR)
- C#调用DLL实现图像文字识别(OCR)
- C#调用DLL实现图像文字识别(OCR)
- C#调用DLL实现图像文字识别(OCR)
- C#调用开源图像识别类库tessnet2
- C#程序实现动态调用DLL的研究
- C#程序实现动态调用DLL的研究
- C#程序实现动态调用DLL的研究
- 在VS2015中用C++创建DLL并用C#调用且同时实现对DLL的调试
- C#(VS10)调用HALCON12----实现数字识别
- [转]C#程序实现动态调用DLL的研究
- C#程序实现动态调用DLL的研究
- C# 调用C++写的dll的实现方法
- C# 调用C++的dll进行图像加载存储
- C#调用开源图像识别类库tessnet2
- C++调用C#的Dll实现Xml读写
- C#调用Cards.dll实现图形化发牌程序
- C#程序实现动态调用DLL的研究
- 验证码自动识别接口文档调用实现