page_title: OCRopus
section_title: Usage
hierarchical_section_title: OCRopus / Usage
caption_attribution_description: Deutsch: Workflow der einzelnen Kommandozeilen-Tools von der freien Texterkennungssoftware OCRopus. Man sieht, welche Tools man in welcher Reihenfolge braucht, um beispielsweise von einem Eingangsbild zu einem PDF mit hinterlegten Text zu kommen.
context_page_description: OCRopus is a free document analysis and optical character recognition system released under the Apache License v2.0 with a very modular design using command-line interfaces.
  OCRopus is developed under the lead of Thomas Breuel from the German Research Centre for Artificial Intelligence in Kaiserslautern, Germany and was sponsored by Google.
context_section_description: OCRopus can  be used from the command line. Once installed, it can be invoked by specifying the input images. It will output the recognized text to standard output directly or write it as hOCR (HTML-based) code into files, from which it then can be transformed to a searchable PDF. If more precise control is needed, options can be specified on the command line to perform specific operations (e.g. recognizing a single line).
  Example for the OCRopus calls to recognize the text in an image:
  # perform binarization
  ocropus-nlbin tests/ersch.png -o book
  
  # perform page layout analysis
  ocropus-gpageseg book/0001.bin.png
  
  # perform text line recognition (with a fraktur model)
  ocropus-rpred -m models/fraktur.pyrnn.gz book/0001/*.bin.png
  
  # generate HTML output
  ocropus-hocr book/0001.bin.png -o book/0001.html
  Other tools concentrate on the training part of OCRopus. There are OCRopus models to extract text from Latin, Greek, Cyrillic and Indic scripts.
caption: Workflow diagram of the separate command line tools from OCRopus.
exif: {}