Code Monkey home page Code Monkey logo

idcarddistinguish's Introduction

切图与身份证识别

0.环境

  • (1). 主要依靠python3的pillow与cv2来完成,通过PYQT5写的简陋的gui界面
  • (2). 识别文字方面,依靠谷歌的 tesseract-OCR来识别,通过pytesseract来调用
  • 注意,要记得给tesseract-OCR装中文依赖chi_sim,否则中文识别不出来,网上很多教程

1.目录结构

iDcardDistinguish
    ├── image # 存放一些测试身份证,与切图结果
    │   ├── 958.jpg
    │   ├── Card1_N.jpg
    │   ├── Card2_Y.jpg
    │   ├── Card3_Y.jpg
    │   ├── Card4_Y.jpg
    │   ├── Card5_N.jpg
    │   ├── Card6_YN.jpg
    │   ├── cutImg.jpg
    │   ├── cutImg1.jpg
    │   ├── cutImg2.jpg
    │   ├── dest.jpg
    │   ├── dest1.jpg
    │   ├── show.png
    │   └── test.jpg
    ├── main 主函数文件夹
    │   ├── CropLines.py  切行
    │   ├── OCR_Img.py  通过谷歌OCR识别主程序
    │   ├── __init__.py
    │   ├── idCardRecognition.py 切图程序,将图片除了身份证外多余的部分切除
    │   └── photoImg.py 主函数,包括gui界面
    └── readme.md

2. 切图

  • 原图
    avatar
  • 切图后
    avatar

3. 识别

  • 起始gui结构
    avatar
  • 起始gui结构
    avatar
  • 起始gui结构
    avatar

idcarddistinguish's People

Contributors

jianhaoxie avatar

Watchers

James Cloos 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.