Skip to content

kba/ocrd_ocropus

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ocrd-cli

OCR-D command line tools

General usage

Virtualenv

Use virtualenv to install dependencies:

  • virutalenv -p python3 env-dir
  • source env-dir/bin/activate
  • pip install -e path/to/dir/containing/setup.py

OCR-D workspace

  • Create a new (empty) workspace: ocrd workspace init workspace-dir
  • cd into workspace-dir
  • Add new file to workspace: ocrd workspace add file -G group -i id -m mimetype

Tools

ocrd-cis-align

The alignment tool line-aligns multiple file groups. It can be used to align the results of multiple OCRs with their respective ground-truth.

The tool expects a comma-separated list of input file groups, the according output file group and the url of the configuration file:

ocrd-cis-align \
  --input-file-grp 'ocr1,ocr2,gt' \
  --ouput-file-grp 'ocr1 ocr2 gt' \
  --parameter file:///path/to/config.json

OCR-D links

About

OCR-D python tools

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages

  • Python 75.4%
  • Shell 21.5%
  • Makefile 3.1%