Back to Adaptive Vision Library website

You are here: Start » Function Reference » Computer Vision » Optical Character Recognition » SplitRegionIntoMultipleCharacters

SplitRegionIntoMultipleCharacters


Header: AVL.h
Namespace: avl
Module: OCR

Splits the input region into an array of regions corresponding to individual characters.

Applications: Text segmentation when the number of characters is unknown, usually followed by a RecognizeCharacters filter.

Syntax

C++
C#
 
void avl::SplitRegionIntoMultipleCharacters
(
	const avl::Region& inRegion,
	const float inProjectionSmooth,
	const int inCharacterWidth,
	atl::Array<avl::Region>& outRegions,
	atl::Array<avl::Region>& diagClasses,
	avl::Profile& diagProjection
)

Parameters

Name Type Range Default Description
inRegion const Region& Input region containing characters
inProjectionSmooth const float 0.0 - 1.0f Value of smooth applied to region projection before splitting into separated characters
inCharacterWidth const int 0 - 15 Single character width
outRegions Array<Region>& Array or regions containing single characters
diagClasses Array<Region>& Regions in which characters parts will be connected into a single character region
diagProjection Profile& Profile of region projection used to distinguish characters

Examples

Input region.

Result of the filter's usage.