You are here: Start » FIL.NET » Function Reference » Computer Vision » Optical Character Recognition » 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, int? inStrokeWidth, int? inMinWordGap, IList<FilNet.Region> outCharacters, IList<FilNet.Region> diagAlignedCharacters )
Parameters
Name | Type | Range | Default | Description | |
---|---|---|---|---|---|
![]() | inImage | FilNet.Image | An input image with text. | ||
![]() | inRoi | FilNet.Rectangle2D | Location of the text. | ||
![]() | inRoiAlignment | FilNet.CoordinateSystem2D | Adjusts the region of interest to the position of the inspected object. | ||
![]() | inPolarity | FilNet.Polarity | Text polarity. | ||
![]() | inCharWidth | int | <5, 200> | 50 | Width of a single character in pixels. Default value: 50. |
![]() | inStrokeWidth | int? | <1, 50> | Width of the stroke of the letters in pixels. Default value: ftl::NIL. | |
![]() | inMinWordGap | int? | <1, 200> | Width of the smallest gap between letters that is to be treated as a space in pixels. Default value: ftl::NIL. | |
![]() | outCharacters | System.Collections.Generic.IList<FilNet.Region> | Regions representing individual characters aligned to the ROI. | ||
![]() | diagAlignedCharacters | System.Collections.Generic.IList<FilNet.Region> | Regions representing individual characters aligned to the Image. |
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
- ExtractText2(Image, Rectangle2D, CoordinateSystem2D, Polarity, Int32, IList<Region>)
- ExtractText2(Image, Rectangle2D, CoordinateSystem2D, Polarity, Int32, Nullable<Int32>, Nullable<Int32>, IList<Region>)