Start » Filter Reference » Computer Vision » Deep Learning » MergeCharactersIntoLines

MergeCharactersIntoLines


Module: DL_OCR

Converts a output of DL_ReadCharacters to lines of text.

Name Type Range Description
Input value
inCharacters OcrResultArray Output of DL_ReadCharacters
Input value
inMaxGap Real 0.0 - 10.0 Maximum horizontal gap between joint characters' boxes, denoted as % of 'A' char height
Input value
inMaxShift Real 0.0 - 1.0 Maximum vertical misalignment between joint character's boxes, denoted as % of 'A' char height
Input value
inMargin Real 0.0 - 10.0 Additional margin added to result, denoted as % of 'A' char height
Input value
inMinLength Integer 1 - 200 Minimal number of chars to create line
Input value
inFlatten Bool If True, it concatenates the words on the line into a single result string, otherwise each word is a separate result string
Output value
outLines Rectangle2DArray Minimal Box which cover all selected character boxes
Output value
outStrings StringArray Text of merged characters
Output value
outMapping Integer?Array Mapping between input characters and output lines, outMapping[i] stores the index line to which inCharacters[i] belongs. If outMapping[i] is NIL it means that inCharacters[i] has not been added to any line

Complexity Level

This filter is available on Expert Complexity Level.