Go to file
Gerber, Mike a5897ead97 🎨 Re-use ./run for ./run-docker-hub
data@dcd3643917 ⬆ Update calamari-models URL + path
ocrd-bugs 🐛 ocrd-bugs: Most/All workspaces in bag files don't validate
xsd Use PAGE 2019
.gitmodules Run Calamari OCR
.travis.yml 👷 Travis: Deploy on master + on tags
Dockerfile 🧹 Remove work around for fixed issue
README.md 📝 README: **test environment**
build Travis: Cache Docker builds from previous image
my_ocrd_workflow Include glyph output
ocrd_logging.py 🔧 Set up logging level using /etc/ocrd_logging.py instead of "-l"
qurator_data_lib.sh ⬆ Update qurator_data_lib.sh to use a silent curl instead of wget
requirements.txt 🐛 Add tessdata_best Tesseract models again
run 🎨 Re-use ./run for ./run-docker-hub
run-docker-hub 🎨 Re-use ./run for ./run-docker-hub

README.md

My OCR-D workflow

Build Status

WIP. Given a OCR-D workspace with document images in the OCR-D-IMG file group, this workflow produces:

  • Binarized images
  • Line segmentation
  • OCR text (using Calamari and Tesseract, both with GT4HistOCR models)
  • (Given ground truth in OCR-D-GT-PAGE, also an OCR text evaluation report)

If you're interested in the exact processors, versions and parameters, please take a look at the script and possibly the Dockerfile and the requirements.

Goal

Provide a test environment to produce OCR output for historical prints, using OCR-D, especially ocrd_calamari and sbb_textline_detection, including all dependencies in Docker.

How to use

It's easiest to use it as a container. To build the container using Docker:

cd ~/devel/my_ocrd_workflow
./build

To run the container on an example workspace:

# Download an example workspace
cd /tmp
wget https://qurator-data.de/examples/actevedef_718448162.first-page.zip
unzip actevedef_718448162.first-page.zip

# Run the workflow on it
cd actevedef_718448162.first-page
~/devel/my_ocrd_workflow/run

Viewing results

You may then examine the results using PRImA's PAGE Viewer:

java -jar /path/to/JPageViewer.jar --resolve-dir . OCR-D-OCR-CALAMARI/OCR-D-OCR-CALAMARI_00000024.xml

The workflow also produces OCR evaluation reports using dinglehopper, if ground truth was available:

firefox OCR-D-OCR-CALAMARI-EVAL/OCR-D-OCR-CALAMARI-EVAL_00000024.html