📝 ppn2ocr: Add to README, including proxy configuration

This commit is contained in:
Gerber, Mike 2020-05-22 17:23:49 +02:00
parent 1585247482
commit 7c5cbc7244
2 changed files with 20 additions and 3 deletions

View file

@ -55,3 +55,23 @@ available:
~~~
firefox OCR-D-OCR-CALAMARI-EVAL/OCR-D-OCR-CALAMARI-EVAL_00000024.html
~~~
ppn2ocr
-------
The `ppn2ocr` script produces OCR output for a given document in the State
Library Berlin (SBB)'s digitized collection. The document must be specified by its
PPN, for example:
~~~
./ppn2ocr PPN77164308X
~~~
This produces a workspace directory `PPN77164308X` with the OCR results in it;
the results are viewable as explained above.
ppn2ocr requires a working Docker setup and properly set up environment
variables for the proxy configuration. At SBB, this means:
~~~
export HTTP_PROXY=http://http-proxy.sbb.spk-berlin.de:3128/
export HTTPS_PROXY=$HTTP_PROXY; export http_proxy=$HTTP_PROXY; export https_proxy=$HTTP_PROXY
export no_proxy=localhost,digital.staatsbibliothek-berlin.de,content.staatsbibliothek-berlin.de
~~~