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

AVL.ExtractText

Ready-to-use tool for extracting and splitting character to single characters.

Namespace:AvlNet
Assembly:AVL.NET.dll

Syntax

C++
C#
 
public static void ExtractText
(
	AvlNet.Image inImage,
	AvlNet.Rectangle2D inRoi,
	AvlNet.CoordinateSystem2D inRoiAlignment,
	AvlNet.TextSegmentation inSegmentationModel,
	IList<AvlNet.Region> outCharacters
)

Parameters

Name Type Range Default Description
inImageAvlNet.ImageAn input image with text.
inRoiAvlNet.Rectangle2DLocation of the text.
inRoiAlignmentAvlNet.CoordinateSystem2DAdjusts the region of interest to the position of the inspected object.
inSegmentationModelAvlNet.TextSegmentationModel used for separating text from background.
outCharactersSystem.Collections.Generic.IList<AvlNet.Region>Split characters aligned to ROI.

Description

This filter distinguish characters from the background using a set of algorithms. This filter performs two steps: text extraction and text segmentation:

  • Text extraction – in this step filter uses some basic thresholding methods to get a characters region from the image.
  • Text segmentation – split previously found region into separate regions contains character.

Input inRoi should contains only a single line of text.

Examples

Result of reading text using the ExtractText.

Remarks

To read more about how to use OCR technique, refer to Machine Vision Guide: Optical Character Recognition

Errors

List of possible exceptions:

Error type Description
DomainError Invalid segmentation algorithm in ExtractText.
DomainError Invalid thresholding algorithm in ExtractText.

Function Overrides

See also