Giter VIP home page Giter VIP logo

stata-ensemble-ocr's Introduction

ensemble_ocr

This is a Stata package that improves the quality of variables generated through multiple OCR scans or engines.

The input is a set of variables that reflects specific words or numbers in an OCRed text. This text must have been OCRed with multiple engines, from different paper copies, or through multiple scans, so the versions are different.

As long as the different methods are unbiased, picking the most common digit will give the correct result. For instance, in this hypothetical example we obtain a number from three engines:

"Ground Truth" Abbyy Tesseract v3 Tesseract v4
123456 23456 128450 123186

This package works by first aligning the input:

 23456
128450
123186

Then, the most common digit is picked, and ground truth is recovered:

 23456
128450
123186
------
123456

Note: this approach is similar in spirit to several papers by WB Lundt.

Installation

net install ensemble_ocr, from(https://github.com/sergiocorreia/stata-ensemble-ocr/raw/master/)

Syntax

ensemble_ocr varlist , generate(newvar)

Warnings

  • This is aimed at dealing with relatively small numbers (<15 digits); will fail in unexpected ways otherwise (because it exceeds the capacity of -double-)
  • Could be extended to deal with non-digit strings but currently only handles digits and nothing else
  • Cases where strings have different length (and thus need to be aligned) are not fully implemented

stata-ensemble-ocr's People

Contributors

sergiocorreia avatar

Stargazers

Austin Moss avatar yflv.yanxia avatar Chris Goodman avatar

Watchers

 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.