Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 14 Next »

About

Some KGS OSGi products are capable to do an OCR on given documents. This is done by this plugin.

Content

Introduction

The plugin in used by several products like KGS Migration.

This article describes how this plugin works and how to configure it.

How it works

The plugin have an built in recognizer. In addition it is capable to configure remote instances. How they are working is out of scope of this article. Here only the built it OCR recognizer is explained.

After calling the recognizePage methode of this plugin, it tries to get a free service. This can be a remote service as well as the local one.

After selecting a service it is called.

How the local recognizer works

The local recognizer is based on Tesseract. It maintains a pool of local instances. If not configured the pool has the size of core amounts. (https://en.wikipedia.org/wiki/Tesseract_(software) )

On calling the local trigger a local instance will be selected. If there is no available instance in pool and the pool size still has not reached the configured maximum size, a new instance is generated, added to the pool and returned. Then the recognizer is called.

Configuration

The plugin is an multi instance plugin. Therefore there is an instance config as well as a local one.

Below how to enter the configuration is explained. Then the instance and global configuration is explained.

Enter configuration

  • use OSGi main menü in order to enter KGS OCR Recognizer configuration

Instance configuration

  • per default an local OCR instance is configured.

  • there can be added other remote instances which are called by HTTP via new Instance button.

  • after naming the new instance it will appear in the list

  • in order to configure the remote instance, please click on the gear icon

  • the please enter the remote instance URL

  • the reachability of this remote instance can be tested by using the information icon

Per default, if an remote instance is configured, the local one is deactivated. See config item Disable builtin reco !

Global configuration

  • enter OCR plugin configuration

  • klick on “Configuration Editor”

  • There are 2 tabs for configuration

    • OCS

    • Common

Global configuration Items

OCR

config item

meaning

default

Preserve Interword Whitespaces

User defined DPI

if defined the recognizer will recognize imaged gained from PDF with the given resolution.

300

OCR Whitelist

*

OCR Blacklist

Optimize for Invoice

false

Local Recognizer Pool Size

Amount recognizer instances for local recognizer. If not given the amount of CPUs is used.

Local Recognizer Pool Timeout

Timout for local recognizer pool. If no recognizer can be retrieved inside given timeout (ms) an Timeout-Exception is thrown. If no value is given, it will be endless waited.

60000

Common

config item

meaning

default

Disable builtin reco

If there are other recognizer instances configured and this flag is enabled, the local recognizer instance is disabled.

true

Http Connection timeout (ms)

If other recognizer instances are configured, they will communicate by HTTP. This is the http timeout.

0

Query Thread Pool

 5

Debug Level

 2

Recognition Languages

The recognizer languages.

 eng+deu

Working Directory

Related

  • No labels