Giter Site home page Giter Site logo

stweil / ancientgreekocr-ocr-evaluation-tools Goto Github PK

View Code? Open in Web Editor NEW

This project forked from ryanfb/ancientgreekocr-ocr-evaluation-tools

0.0 3.0 0.0 267 KB

'ocr-evaluation-tools' from http://ancientgreekocr.org/. Tools to test OCR accuracy.

License: Other

Makefile 0.98% C 89.71% C++ 2.11% Roff 6.10% Shell 1.11%

ancientgreekocr-ocr-evaluation-tools's Introduction

Introduction
============

There are 19 tools for measuring the performance and quality of OCR
output. See the user guide (user-guide.pdf) for more information.


Building
========

To build the tools, run:

  make

To install them, run:

  make install

To install them to a different directory, run:

  make PREFIX=/my/install/directory install


Running tests with UTF-8
========================

Run the tool inside the ocrevalutf8 wrapper script, e.g.

   ocrevalutf8 accuracy correct.txt ocr.txt
or
   ocrevalutf8 wordacc correct.txt ocr.txt

This is needed as the tools don't (yet) natively handle UTF-8, but
they can handle strangely encoded UTF-16, which this wrapper script
delivers.

Testing Tesseract with a .traineddata file
==========================================

'tessaccsummary' is an included script to make testing the accuracy
of a Tesseract training file simple and easy.

The script expects a directory laid out as follows:

  images/
  images/firstimg.png
  images/firstimg.txt
  images/secondimg.png
  images/secondimg.txt

The .txt file should be a UTF-8 file of the correct text ("ground
truth") for the .png file of the same name. The image and text
files may be named anything.

You can then run the script like so:

  tessaccsummary images/ /path/to/lang.traineddata

This runs Tesseract using the provided .traineddata file on each
.png image in the image directory, and print the character 
accuracy for each image.

You can instead get the word accuracy for each image like this:

  tessaccsummary -w images/ /path/to/lang.traineddata

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.