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

AVL.GroupRegionsByLines

Splits an array of blobs by distance to computed base lines.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void GroupRegionsByLines
(
	IList<AvlNet.Region> inRegions,
	AvlNet.Rectangle2D inRoi,
	AvlNet.CoordinateSystem2D? inRoiAlignment,
	int inLinesCount,
	float inLineWidth,
	bool inRemoveOutliers,
	IList<SafeList<AvlNet.Region>> outLines,
	IList<AvlNet.Region> outLine0,
	IList<AvlNet.Region> outLine1,
	IList<AvlNet.Region> outLine2,
	IList<AvlNet.Region> outLine3,
	out AvlNet.Rectangle2D outAlignedRoi
)

Parameters

Name Type Range Default Description
inRegionsSystem.Collections.Generic.IList<AvlNet.Region>Input regions (parts of characters).
inRoiAvlNet.Rectangle2DRange of character classification.
inRoiAlignmentAvlNet.CoordinateSystem2D?
inLinesCountint<0, INF>1ROI is divided into inLinesCount lines. Default value: 1.
inLineWidthfloat<0.0f, INF>1.0fValue of line range used if inRemoveOutliers is set to TRUE. Default value: 1.0f.
inRemoveOutliersboolFalseIf this flag is set blobs with distance greater than inLineWidth are removed. Default value: False.
outLinesSystem.Collections.Generic.IList<AvlNet.SafeList<AvlNet.Region>>Lines in single Array.
outLine0System.Collections.Generic.IList<AvlNet.Region>
outLine1System.Collections.Generic.IList<AvlNet.Region>
outLine2System.Collections.Generic.IList<AvlNet.Region>
outLine3System.Collections.Generic.IList<AvlNet.Region>
outAlignedRoiAvlNet.Rectangle2D

Examples

As you can see in the below picture, the filter's task is to divide the input region into several sub-regions by its placement in a line. As a result, each line represents a separate region.

Exemplary result of the filter's usage.

Function Overrides

See also