Update README.md

This commit is contained in:
Stephan Porada 2019-04-03 15:24:51 +02:00
parent 09f42660f5
commit 6978b3b344

View File

@ -28,6 +28,8 @@ docker run \
<image_name> <image_name>
``` ```
# Usage
## Start an OCR job ## Start an OCR job
1. Place some files inside the folder _files\_for\_ocr_. Files can either be multipage tiffs or PDF files. One folder per file is needed. Files should all be of the same language. 1. Place some files inside the folder _files\_for\_ocr_. Files can either be multipage tiffs or PDF files. One folder per file is needed. Files should all be of the same language.
2. Start a screen session with `screen -dmS <container_name>` 2. Start a screen session with `screen -dmS <container_name>`
@ -78,10 +80,10 @@ Example with all arguments used:
1. You can leave the currently running OCR process by pressing `ctrl + a + d` and thus leaving the screen session. 1. You can leave the currently running OCR process by pressing `ctrl + a + d` and thus leaving the screen session.
2. Re-enter the screen session to check the status of the running OCR job with `screen -r <container-name>`. (Try this if the error "Cannot open your terminal '/dev/pts/0' - please check." appears: `script -q -c "screen -r <container-name>" /dev/null`). 2. Re-enter the screen session to check the status of the running OCR job with `screen -r <container-name>`. (Try this if the error "Cannot open your terminal '/dev/pts/0' - please check." appears: `script -q -c "screen -r <container-name>" /dev/null`).
## Use prebuilt image # Use prebuilt image
Download via regestry function with login or deploy token. Download via regestry function with login or deploy token.
## Add additional traineddata for OCR of additional languages. # Add additional traineddata for OCR of additional languages.
Additional traineddata can be easily added to the Dockerfile. Additional traineddata can be easily added to the Dockerfile.
Just append the needed data file URL after line 56 in the Dockerfile following the same syntax. Just append the needed data file URL after line 56 in the Dockerfile following the same syntax.