Giter VIP home page Giter VIP logo

ocr's Introduction

身份证识别

代码详解:

https://zhuanlan.zhihu.com/p/559978244

使用方法:

运行 run.py。

requiremnets

matplotlib>=3.2.2 numpy>=1.18.5 opencv-python>=4.1.1
Pillow>=7.1.2 PyYAML>=5.3.1 requests>=2.23.0
scipy>=1.4.1 # Google Colab version
torch>=1.7.0
torchvision>=0.8.1
tqdm>=4.41.0
protobuf<=3.20.1 # ultralytics/yolov5#8012 imgaug==0.4.0

使用的cuda

cuda10.2
cudnn8.4.1
显卡2070

参数修改:

48行 选择图片是正面或反面 ifFan = True表示图片为反面:人脸面
217行 修改图片路径 default= 图片路径或文件夹路径
152行 保存人脸图片,保存路径是savepath,ims[point1[1]:point2[1], point1[0]:point2[0]]是应存图片
167-183行 ocr识别返回值,返回重新识别或者识别结果
184行-214行 测试图片准确率。应把217行路径改为文件夹路径

结果

image image image

ocr's People

Contributors

jackliu1111 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.