Back to Adaptive Vision Library website

You are here: Start » Function Reference » Computer Vision » Deep Learning » MergeCharactersIntoLines

MergeCharactersIntoLines


Header: AVL.h
Namespace: avl
Module: DL_OCR

Converts a output of DL_ReadCharacters to lines of text.

Syntax

C++
C#
 
void avl::MergeCharactersIntoLines
(
	const atl::Array<avl::OcrResult>& inCharacters,
	float inMaxGap,
	float inMaxShift,
	float inMargin,
	int inMinLength,
	atl::Array<avl::Rectangle2D >& outLines,
	atl::Array <atl::String >& outStrings
)

Parameters

Name Type Range Default Description
Input value
inCharacters const Array<OcrResult>& Output of DL_ReadCharacters
Input value
inMaxGap float 0.0 - 1.0 0.25f Maximum horizontal gap between joint characters' boxes, denoted as % of 'A' char height
Input value
inMaxShift float 0.0 - 1.0 0.25f Maximum vertical misalignment between joint character's boxes, denoted as % of 'A' char height
Input value
inMargin float 0.0 - Additional margin added to result, denoted as % of 'A' char height
Input value
inMinLength int 1 - 1 Minimal number of chars to create line
Output value
outLines Array<Rectangle2D >& Minimal Box which cover all selected character boxes
Output value
outStrings Array <String >& Text of merged characters