{"word_count": 222, "character_count": 1578}
Ocropy (also called ocropus) is not a standalone program for text recognition: it consists of several command line modules forbinarization (creates a binary raster graphic)segmentation (splitting documents into lines)optical character recognition (OCR)controlling the recognised text andtraining new character sets.Ocropy is free, modules for new fonts are relatively easy to create, and - with a little preprocessing of the images - it has very good recognition rates - up to 98% (see fig. 1).[caption id="attachment_18" align="aligncenter" width="500"] Figure 1: Error rates of modules with different training steps for known text (training) and unknown text (testing).[/caption]Ocropy has no graphical interface, you have to operate inside a linux shell. It's not that handy, but even if you have not experience  with the command line, you will get used to it very fast. The normal workflow with ocropy is shown in figure 2.[caption id="attachment_28" align="aligncenter" width="220"] Figure 2: Ocropy workflow with data (green), models &#38; tools (blue), processes (yellow) and decisions (red).[/caption]My favorite feature of ocropy is the ocropus-gtedit module. After a recognition you can transform the data into a HTML-File (see fig. 3).[caption id="attachment_30" align="aligncenter" width="300"] Figure 3: HTML for correcting recognised text.[/caption]This offers a very user-friendly possibility to correct the text and generate ground truth data for training.There is some literature about ocropy as well. Check out Springmann 2016, Springmann 2015, and DANVK 2015.