-
Notifications
You must be signed in to change notification settings - Fork 169
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
1,795 changed files
with
1,987 additions
and
1,157 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,31 @@ | ||
# ReCapcha | ||
验证码识别程序+验证码自动识别工具类+发票标号识别案例 | ||
|
||
Details: | ||
# 验证码识别演示程序 | ||
|
||
http://www.cnblogs.com/cnduan/p/5154419.html | ||
|
||
发票编号识别案例: | ||
- 打开 `\RECAPTCHA\RECAPTCHA\bin\Debug` 的 `CaptchaRecogition.exe` | ||
|
||
- 选择要处理的验证码位置,也可以网络获取下载:比如选择bin下:`\RECAPTCHA\RECAPTCHA\bin\Debug\captcha\jinshannetwork` | ||
|
||
- 选好验证码图文位置后,依次点击 `灰度 去背景 去噪点 二值化 图片分割`,查看处理前后的效果 | ||
|
||
- 最上方可以设置灰度方式,噪点阈值。字符宽度,字符数可以不强制指定,不指定会根据边缘检测算法自动切割,如果字符粘连严重,可以适当的指定下这两个值。 | ||
|
||
字模制作: | ||
- 选择好字模位置,就是一个txt文档。bin下`RECAPTCHA\RECAPTCHA\bin\Debug\captcha\jinshannetwork\zimo.txt` | ||
开始识别,如果识别的不正确,点击`识别错误-->修改`按钮,修改错误的字符,然后点击 `字模学习入库`按钮 | ||
|
||
详细处理过程可参考文章: | ||
## http://www.cnblogs.com/cnduan/p/5154419.html | ||
|
||
**为了方便是大家实验,实验中用到的验证码图片,字模等资源都放在项目的`bin`下** | ||
|
||
# 发票编号识别案例: | ||
|
||
http://v.youku.com/v_show/id_XMTI1MzUxNDY3Ng==.html | ||
- 这个演示过程需要调用计算机摄像头,测试用例是识别上海地铁纸质发票。 | ||
- 具体过程是 `AForge`捕捉摄像头种发票图片,确定发票标号位置,调用验证码处理逻辑,切割发票编号,匹配字模识别并展示在图像上。 | ||
- 字模是通过上面的程序手动训练得到的,放到了bin下 `\发票识别\发票编号识别\bin\Debug\zimo.txt`。 | ||
- 具体效果可以参考: | ||
|
||
## http://v.youku.com/v_show/id_XMTI1MzUxNDY3Ng==.html | ||
|
||
|
Binary file not shown.
File renamed without changes.
Binary file not shown.
Oops, something went wrong.