GithubHelp home page GithubHelp logo

lize1803 / ocrtable Goto Github PK

View Code? Open in Web Editor NEW

This project forked from bitdata/ocrtable

0.0 0.0 0.0 1.35 MB

Recognize tables and text from scanned images that contain tables. 从包含表格的扫描图片中识别表格和文字

License: MIT License

C++ 59.81% C# 37.72% C 2.48%

ocrtable's Introduction

OCR Table

中文文档

Introduction

For scanning copies containing tables or forms, many OCR softwares recognize text in entire page as whole by discarding all tables. Sometimes it is inconvenient for users. This project retains table structures as well and save the recognizing result as a Microsoft Word document.

This project consists of a DLL and an EXE, both of which are 64-bit. The subdirectory corresponding to DLL is tableocr, developed by Visual C++. It implements core functions, including table structure recognition and text recognition. the subdirectory corresponding to EXE is ocrtable, developed by C#, which provides user interface. Below the pictures directory are sample scanning copies.

Suggestions are welcome. In addition to submitting an issue, you can email me as well. My email address is [email protected].

Recognition Performance

Download pre-compiled components

English Character Recognition Example

Please do not select "Recognize simplified Chinese characters".

Scanning copy:

Result (Note that tables are not displayed in order):

Chinese Character Recognition Example

You need select "Recognize simplified Chinese characters".

Scanning copy:

Result:

Chinese character recognition relies on Tesseract official pre-training package, which supports only a few fonts. Users can consider training Tesseract mannually or using other OCR technologies instead.

Development Environment

DLL Development environment

Windows 7 SP1 x64

Visual Studio Community 2017

OpenCV 3.4.3

Tesseract 4.0.0-beta.4 (Compiled by Git source. Please search online resources to learn how to setup Chinese character recognition.)

For the convenience of debugging, the DLL module includes Debug EXE configuration, which outputs EXE. The program displays table structures and outputs recognized text by OutputDebugString Windows API. Note that recognition process may take long time, and the popup window needs to be closed by keyboard instead of mouse.

EXE Development environment

Windows 7 SP1 x64

Visual Studio Community 2017

DocX(Xceed.Words.NET.dll)(downloaded by nuget)

Revision History

2018-09-30

  1. Complete the first edition.

2019-09-14

  1. Fix bugs in DLL.

  2. Add international support in EXE.

  3. Update this document.

ocrtable's People

Contributors

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