You are here: Start » FIL.NET » Invoke.MergeCharactersIntoLines
Converts a output of Deep Learning filter DL_ReadCharacters to lines of text.
Namespace: | Fil |
---|---|
Assembly: | FilNet.dll |
Syntax
C++
C#
public static void MergeCharactersIntoLines ( List<Fil.OcrResult> inCharacters, float inMaxGap, float inMaxShift, float inMargin, int inMinLength, bool inFlatten, string inPattern, Optional<List<List<Fil.OcrCandidate>>> inCandidates, float inMinScore, List<Fil.Rectangle2D> outLines, List<string> outStrings, List<Conditional<int>> outMapping, List<float> outScores )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inCharacters | System.Collections.Generic.List<Fil.OcrResult> | Output of DL_ReadCharacters. | ||
![]() | inMaxGap | float | <0.0f, 10.0f> | 0.25f | Maximum horizontal gap between joint characters' boxes, denoted as fraction of 'A' char height. Default value: 0.25f. |
![]() | inMaxShift | float | <0.0f, 1.0f> | 0.25f | Maximum vertical misalignment between joint character's boxes, denoted as fraction of 'A' char height. Default value: 0.25f. |
![]() | inMargin | float | <0.0f, 10.0f> | Additional margin added to result, denoted as fraction of 'A' char height. | |
![]() | inMinLength | int | <1, 200> | 1 | Minimal number of chars to create line. Default value: 1. |
![]() | inFlatten | bool | False | If True, it concatenates the words on the line into a single result string, otherwise each word is a separate result string. Default value: False. | |
![]() | inPattern | string | Pattern used in Grammar rules filtering. | ||
![]() | inCandidates | Ftl.Optional<System.Collections.Generic.List<System.Collections.Generic.List<Fil.OcrCandidate>>> | Candidates - optional output of DL_ReadCharacters, Required when using grammar rules (when inPattern is not empty). Default value: ftl::NIL. | ||
![]() | inMinScore | float | <0.0f, 1.0f> | 0.2f | Minimum score for filtering the line of text. Default value: 0.2f. |
![]() | outLines | System.Collections.Generic.List<Fil.Rectangle2D> | Minimal Box which cover all selected character boxes. | ||
![]() | outStrings | System.Collections.Generic.List<string> | Text of merged characters. | ||
![]() | outMapping | System.Collections.Generic.List<Ftl.Conditional<int>> | 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. | ||
![]() | outScores | System.Collections.Generic.List<float> | Calculated the score for the line. |