GithubHelp home page GithubHelp logo

joelibaceta / python-tesseract-3.02-training Goto Github PK

View Code? Open in Web Editor NEW
0.0 0.0 0.0 118 KB

A script to partially automate the training of new fonts/languages with Tesseract 3.02

License: Apache License 2.0

Python 100.00%

python-tesseract-3.02-training's Introduction

python-tesseract-3.02-training

A script to partially automate the training of new fonts/languages with Tesseract 3.02 - part of the Open ICR Project: http://opensource.newmediaist.com/open-source-icr.html

The Tesseract OCR Engine is a powerful open source text recognition engine, designed specifically for machine-printed text (fonts). Tesseract can be trained to both improve recognition accuracy, as well as teach it new languages. Training Tesseract is just another way of saying adding new fonts to tesseract. Training Tesseract 3.02 can be difficult for the novice though, as the official instructions are long and complex. We built a simple Python script to somewhat automate the Tesseract 3.02 language file build process.

How to use

Usage of this script assumes Python and Tesseract are both installed correctly on computer, and also that you have already generated your training text and box files. If you have not generated your training text yet, here is one of the simplest methods to do so:

  1. Collect image of text in TIF format - scan a sample document printed in the desired font, or create a new sample document
  2. Upload TIF to this online box editor, and correct any errors in character detection. Select the box file information from the right side of the tool, copy it to your clipboard, and paste it into a new blank text file. Save the textfile with the same name as the document image, but with a .box extension - for example, "scanned-image.box".
Save your training image and box file into the same directory as the training script, then running the following command:

python traininscript.py language fontname

Code licensed under Apache License v2.0

python-tesseract-3.02-training's People

Contributors

this-is-ari 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.