Giter Site home page Giter Site logo

allensmile / chineseaddress_ocr Goto Github PK

View Code? Open in Web Editor NEW

This project forked from walleclipse/chineseaddress_ocr

0.0 3.0 0.0 245.83 MB

Photographing Chinese-Address OCR implemented using CTPN+CTC+Address Correction. 拍照文档中文地址文字识别。

Python 82.86% C++ 0.05% Shell 0.09% Cuda 1.74% JavaScript 15.27%

chineseaddress_ocr's Introduction

ChineseAddress_OCR

环境不可控场景下拍照文档地址文字识别

Photographing Chinese-Address OCR implemented using CTPN+CTC+Address Correction.

This is a project of the 2018 Deecamp 25th group (DRPRG). Thanks to my team members!
这个是 2018年 Deecamp 25组 (深度受限抠图小组) 的项目,非常非常的感谢每一位队友!

Our Demo: https://www.bilibili.com/video/av30081208
Our Wechat Program (微信小程序): OCRdeecamp

Reference Paper: Detecting Text in Natural Image with Connectionist Text Proposal Network https://arxiv.org/pdf/1609.03605.pdf
Reference Code: https://github.com/YCG09/chinese_ocr (Thanks Yang Chenguang)

Method

Text Detection : CTPN (https://arxiv.org/pdf/1609.03605.pdf)
Text Recognition: CTC+DenseNet
Address Judgment: Light GBM or textgrocery (https://github.com/2shou/TextGrocery)
Address Correction: Fuzzy matching based on address library

About Code

demo_final.py
You can simpely use demo_final.py for inference. Input a picture and output the Chinese address string.
run_flask.py
Communicate between server and wechat program using flask ocr_whole.py
Text detection using CTPN, then text recognition using Densenet
stupid_addrs_rev.py
Address correction using fuzyy-matching based on address library
ctpn
If you want to know more details about CTPN codes, please check https://github.com/eragonruan/text-detection-ctpn
wechat_program
Some files of wechat program (微信小程序的一些文件)

Results

In our dataset, the accuracy of exactly correct is 83% ,accuracy of edit distance less than 3 is 97%. This result is better than Baidu and Tencent's general OCR.
Our program has a high accuracy at identifying very fuzzy multi-line addresses.

If you want to know more details, please read 'ChineseAddress_OCR_Report.pdf'(Chinese). If you want to read details in English, please contact me.

chineseaddress_ocr's People

Contributors

walleclipse avatar

Watchers

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