Code Monkey home page Code Monkey logo

icr-detection-in-filled-form's Introduction

ICR detection in filled form

The goal is to automatically detect paper-based form fields.

This project is not finished yet. This is a proof of concept.

Here is a simple example with its output. But, keep in mind, in the real world, there is noise, missing parts and imperfection.

Example

Hopefully one day, the code will be able to highlight where are the handwritten characters with a great accuracy.

I focus only on paper-based forms. Because handwriting text represents valuable data. They can help automatically detect entities involved. Printed characters can be processed by tesseract 4.

Results

Paper-based form (Jan 5, 2018)

It can highlight most boxes. It's a great start. Some work need to be done to improve accuracy. We can see boxes, but I need to find a way to isolate each characters (and manage overlapping characters on 2 boxes)

Example

Paper-based form (Jan 9, 2018)

We know where are those boxes. If the page is too complex, we stop processing to prevent spending too much time and/or using resource (CPU).

Some extra processing need to be done to evaluate if those boxes seem valid. (For example, most boxes should have the same width and height)

For now, we know some position: top left, top right, bottom left and bottom right.

The example below shows boxes corners and centers.

Example

Characters extraction (Jan 10, 2018)

It validates that most boxes has the same width and height.

Some fine tuning has been done to support more paper-based forms.

The image below shows some characters.

Example

Characters extraction (Jan 19, 2018)

The boxes are better centered. Empty boxes detection and removal.

Copyright and license

Code released under the MIT license.

icr-detection-in-filled-form's People

Contributors

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