Back to Adaptive Vision Library website

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


Header: AVL.h
Namespace: avl
Module: OCR

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


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


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


Input region.

Result of the filter's usage.