mirror of
https://github.com/qurator-spk/dinglehopper.git
synced 2025-06-09 03:40:12 +02:00
No description
.screenshots | ||
qurator | ||
.travis.yml | ||
LICENSE | ||
ocrd-tool.json | ||
pytest.ini | ||
README.md | ||
requirements.txt | ||
setup.py |
dinglehopper
dinglehopper is an OCR evaluation tool and reads ALTO, PAGE and text files.
Goals
- Useful
- As a UI tool
- For an automated evaluation
- As a library
- Unicode support
Installation
It's best to use pip, e.g.:
sudo pip install .
Usage
dinglehopper some-document.gt.page.xml some-document.ocr.alto.xml
This generates report.html
and report.json
.
As a OCR-D processor:
ocrd-dinglehopper -m mets.xml -I OCR-D-GT-PAGE,OCR-D-OCR-TESS -O OCR-D-OCR-TESS-EVAL
This generates HTML and JSON reports in the OCR-D-OCR-TESS-EVAL
filegroup.
Testing
Use pytest
to run the tests in the tests directory:
virtualenv -p /usr/bin/python3 venv
. venv/bin/activate
pip install -r requirements.txt
pip install pytest
pytest