mirror of
https://github.com/qurator-spk/ocrd-galley.git
synced 2025-06-08 22:29:56 +02:00
📝 README: Describe what this does and why
This commit is contained in:
parent
abc207d655
commit
dcbdefc16e
1 changed files with 17 additions and 2 deletions
19
README.md
19
README.md
|
@ -3,8 +3,22 @@ My OCR-D workflow
|
||||||
|
|
||||||
[](https://travis-ci.org/mikegerber/my_ocrd_workflow)
|
[](https://travis-ci.org/mikegerber/my_ocrd_workflow)
|
||||||
|
|
||||||
WIP.
|
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](my_ocrd_workflow) and possibly the [Dockerfile](Dockerfile) and the [requirements](requirements.txt).
|
||||||
|
|
||||||
|
Goal
|
||||||
|
----
|
||||||
|
Provide an environment to produce OCR output using OCR-D, especially [ocrd_calamari](https://github.com/OCR-D/ocrd_calamari) and [sbb_textline_detection](https://github.com/qurator-spk/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:
|
It's easiest to use it as a container. To build the container using Docker:
|
||||||
~~~
|
~~~
|
||||||
cd ~/devel/my_ocrd_workflow
|
cd ~/devel/my_ocrd_workflow
|
||||||
|
@ -23,6 +37,7 @@ cd actevedef_718448162.first-page
|
||||||
~/devel/my_ocrd_workflow/run
|
~/devel/my_ocrd_workflow/run
|
||||||
~~~
|
~~~
|
||||||
|
|
||||||
|
### Viewing results
|
||||||
You may then examine the results using
|
You may then examine the results using
|
||||||
[PRImA's PAGE Viewer](https://www.primaresearch.org/tools/PAGEViewer):
|
[PRImA's PAGE Viewer](https://www.primaresearch.org/tools/PAGEViewer):
|
||||||
~~~
|
~~~
|
||||||
|
@ -31,7 +46,7 @@ java -jar /path/to/JPageViewer.jar --resolve-dir . OCR-D-OCR-CALAMARI/OCR-D-OCR-
|
||||||
|
|
||||||
The workflow also produces OCR evaluation reports using
|
The workflow also produces OCR evaluation reports using
|
||||||
[dinglehopper](https://github.com/qurator-spk/dinglehopper), if ground truth was
|
[dinglehopper](https://github.com/qurator-spk/dinglehopper), if ground truth was
|
||||||
available in a OCR-D-GT-PAGE file group:
|
available:
|
||||||
~~~
|
~~~
|
||||||
firefox OCR-D-OCR-CALAMARI-EVAL/OCR-D-OCR-CALAMARI-EVAL_00000024.html
|
firefox OCR-D-OCR-CALAMARI-EVAL/OCR-D-OCR-CALAMARI-EVAL_00000024.html
|
||||||
~~~
|
~~~
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue