Giter Site home page Giter Site logo

recapcha's Introduction

验证码识别演示程序

  • 打开 bin 下 \RECAPTCHA\RECAPTCHA\bin\DebugCaptchaRecogition.exe

  • 选择要处理的验证码图片位置,也可以网络获取下载:比如选择bin下:\RECAPTCHA\RECAPTCHA\bin\Debug\captcha\jinshannetwork

  • 选好验证码图文位置后,依次点击 灰度 去背景 去噪点 二值化 图片分割,查看处理前后的效果

  • 最上方可以设置灰度方式,噪点阈值;字符宽度,字符数可以不强制指定,不指定会根据边缘检测算法自动切割,如果字符粘连严重,可以适当的指定下这两个值。

字模制作:

  • 选择好字模位置,就是一个txt文档。bin下RECAPTCHA\RECAPTCHA\bin\Debug\captcha\jinshannetwork\zimo.txt开始识别,如果识别的不正确,点击识别错误-->修改按钮,修改错误的字符,然后点击 字模学习入库按钮

详细处理过程可参考文章:

为了方便大家实验,实验中用到的验证码图片,字模等资源都放在项目的bin

发票编号识别案例:

  • 这个演示过程需要调用计算机摄像头,测试用例是识别上海地铁纸质发票。
  • 具体过程是 AForge捕捉摄像头中发票图片,确定发票标号位置,调用验证码处理逻辑,切割发票编号,匹配字模识别并展示在图像上。
  • 字模是通过上面的程序手动训练得到的,放到了bin下 \发票识别\发票编号识别\bin\Debug\zimo.txt
  • 具体效果可以参考:

recapcha's People

Contributors

ccccccmd avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.