SplitRegionIntoExactlyNCharacters
Splits the input region into a fixed-size array of regions corresponding to individual characters.
Applications:Text segmentation when the number of characters is known, usually followed by a RecognizeCharacters filter.
Syntax
C++
C#
Python
def SplitRegionIntoExactlyNCharacters( inRegion: Region, /, *, inCharacterCount: int = 1, inCharacterSpacing: int = 0, inProjectionSmooth: float = 1.0, diagProjection: Profile | None = None ) -> ( outRegions: list[Region] | None, diagClasses: list[Region] )
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() |
inRegion | Region | Region which contains characters | ||
![]() |
inCharacterCount | int | 1 - ![]() |
1 | Character count in provided region |
![]() |
inCharacterSpacing | int | 0 - ![]() |
0 | Spacing size between characters |
![]() |
inProjectionSmooth | float | 0.0 - ![]() |
1.0 | Projection smoothing value used to remove noises from character region |
![]() |
outRegions | list[Region] | None | Output array of regions containing separated characters | ||
![]() |
diagClasses | list[Region] | Regions that contain location of split characters | ||
![]() |
diagProjection | Profile | None | None | Profile of region projection used to distinguish characters |




