You are here: Start » FIL.NET » Function Reference » Computer Vision » Optical Character Recognition » FIL.ExtractText2

FIL.ExtractText2

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

Namespace:FilNet
Assembly:FIL.NET.dll

Syntax

C++
C#
 
public static void ExtractText2
(
	FilNet.Image inImage,
	FilNet.Rectangle2D inRoi,
	FilNet.CoordinateSystem2D inRoiAlignment,
	FilNet.Polarity inPolarity,
	int inCharWidth,
	IList<FilNet.Region> outCharacters
)

Parameters

Name Type Range Default Description
inImageFilNet.ImageAn input image with text.
inRoiFilNet.Rectangle2DLocation of the text.
inRoiAlignmentFilNet.CoordinateSystem2DAdjusts the region of interest to the position of the inspected object.
inPolarityFilNet.PolarityText polarity.
inCharWidthint<5, 200>50Width of a single character in pixels. Default value: 50.
outCharactersSystem.Collections.Generic.IList<FilNet.Region>Regions representing individual characters aligned to the ROI.

Errors

List of possible exceptions:

Error type Description
DomainError inPolarity must be specified as Dark or Bright in ExtractText2.
DomainError inRoi is to narrow to fit a single character in ExtractText2.
DomainError It is impossible for inStrokeWidth to be greater than inCharWidth in ExtractText2.

Function Overrides

See also