You are here: Start » AVL.NET » Invoke.MergeCharactersIntoOneLine
Converts the output of the Deep Learning filter DL_ReadCharacters into a single text value, with the detected lines separated by a new line character.
| Namespace: | Avl |
|---|---|
| Assembly: | AvlNet.dll |
Syntax
C++
C#
public static void MergeCharactersIntoOneLine ( List<Avl.OcrResult> inCharacters, float inMaxGap, float inMaxShift, float inMargin, int inMinLength, string inPattern, Optional<List<List<Avl.OcrCandidate>>> inCandidates, float inMinScore, Avl.LineDirection inLineDirection, out string outText, out Avl.Rectangle2D outLine, out float outScore, List<Conditional<int>> outMapping, List<Avl.OcrResult> outProcessedCharacters )
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() | inCharacters | System.Collections.Generic.List<Avl.OcrResult> | Output of DL_ReadCharacters. | ||
![]() | inMaxGap | float | <0.0f, 10.0f> | 0.25f | Maximum gap between adjacent characters along the reading direction, denoted as fraction of 'A' char height. Default value: 0.25f. |
![]() | inMaxShift | float | <0.0f, 1.0f> | 0.25f | Maximum misalignment between adjacent characters perpendicular to the reading direction, 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. |
![]() | inPattern | string | Pattern used in Grammar rules filtering; a new line escape sequence is supported to match across detected lines. | ||
![]() | inCandidates | Atl.Optional<System.Collections.Generic.List<System.Collections.Generic.List<Avl.OcrCandidate>>> | Candidates - optional output of DL_ReadCharacters, Required when using grammar rules (when inPattern is not empty). Default value: atl::NIL. | ||
![]() | inMinScore | float | <0.0f, 1.0f> | 0.2f | Minimum score for filtering the line of text. Default value: 0.2f. |
![]() | inLineDirection | Avl.LineDirection | Horizontal | Expected text orientation direction. Default value: Horizontal. | |
![]() | outText | string | All merged characters as a single text value, with the detected lines separated by a new line character. | ||
![]() | outLine | Avl.Rectangle2D | Minimal box which covers all selected character boxes. | ||
![]() | outScore | float | Calculated score for the whole result. | ||
![]() | outMapping | System.Collections.Generic.List<Atl.Conditional<int>> | Mapping between input characters and the output text, outMapping[i] is 0 if inCharacters[i] has been added to the result, NIL otherwise. | ||
![]() | outProcessedCharacters | System.Collections.Generic.List<Avl.OcrResult> | Contains the full set of character results after grammar rule processing. Maintains a one-to-one correspondence with inCharacters, preserving original positions but possibly with modified values, scores, or other attributes based on grammar rule application. |


