You are here: Start » AVL.NET » Function Reference » Computer Vision » Optical Character Recognition » AVL.SplitRegionIntoExactlyNCharacters

AVL.SplitRegionIntoExactlyNCharacters

Splits the input region into a fixed-size array of regions corresponding to individual characters.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void SplitRegionIntoExactlyNCharacters
(
	AvlNet.Region inRegion,
	int inCharacterCount,
	int inCharacterSpacing,
	float inProjectionSmooth,
	INullable<SafeList<AvlNet.Region>> outRegions,
	IList<AvlNet.Region> diagClasses,
	AvlNet.Profile diagProjection
)

Parameters

Name Type Range Default Description
inRegionAvlNet.RegionRegion which contains characters.
inCharacterCountint<1, INF>Character count in provided region.
inCharacterSpacingint<0, INF>Spacing size between characters.
inProjectionSmoothfloat<0.0f, INF>1.0fProjection smoothing value used to remove noises from character region. Default value: 1.0f.
outRegionsAvlNet.INullable<AvlNet.SafeList<AvlNet.Region>>Output array of regions containing separated characters. This parameter cannot be null.
diagClassesSystem.Collections.Generic.IList<AvlNet.Region>Regions that contain location of split characters.
diagProjectionAvlNet.ProfileProfile of region projection used to distinguish characters.

Examples

Input region.

Result of the filter's usage.

Errors

List of possible exceptions:

Error type Description
DomainError Value of inCharacterCount is greater than inRegion frame width.
DomainError Value of inCharactersSpacing is greater than single character width.

Function Overrides

See also