FeatureLinker - PPilger/text-detection GitHub Wiki

Links features (letters, word-fragments) together (to words or text).

SimpleFeatureLinker

Usage

Use this feature linker only if using BestDirectionFeatureLinker is somehow not possible.

BestDirectionFeatureLinker

Usage

It is recommended to use this linker instead of SimpleFeatureLinker.

Parameter

centerVariance

Defines how much the centers can vary along a certain direction.

A reasonable value is the height of the letters (or less).

numDirections

The number of angles scanned for possible links.

A reasonable value is 16 (for the full 180° range). If this is too inaccurate use 32.

range

The value range of angles.

Use this parameter to restrict the possible directions. The angle value is measured in radians.