NLPbox / olena-docker

run Olena/Scribo document image analysis in a Docker container

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Olena / Scribo

Olena is a generic image processing library written in C++. Scribo is an optional component of Olena providing Document Image Analysis tools and routines. This repository allows you to install the software in a docker container with one simple command.

Installation

docker build -t olena https://github.com/nlpdocker/olena-docker.git

Usage

# makes your /tmp directory available in the container
docker run -v /tmp:/tmp -ti olena

# run scribo-cli on a scanned document in German language (input.jpg) and
# return an XML file containing OCR and document layout
docker run -v /tmp:/tmp -ti olena scribo-cli doc-dia --ocr-lang deu /tmp/input.jpg /tmp/output.xml

# NOTE: by default, scribo's output format is set to "page-ext", which can't
# be opened with Prima Research's Page Viewer (JPageViewer 1.1 64bit).
# You can set the output format to "page" to avoid this problem. Unfortunately,
# this seems to disable the OCR functionality. I haven't found out why that is, yet.
#
docker run -v /tmp:/tmp -ti olena scribo-cli doc-dia --ocr-lang deu --xml-format page /tmp/input.jpg /tmp/output.xml

About

run Olena/Scribo document image analysis in a Docker container