ExtractText2
Ready-to-use tool for extracting and splitting text elements to single characters.
Syntax
C++
C#
Python
def ExtractText2( inImage: Image, inRoi: Rectangle2D, inRoiAlignment: CoordinateSystem2D, inPolarity: Polarity, inCharWidth: int, /, *, inStrokeWidth: int | None = None, inMinWordGap: int | None = None ) -> ( outCharacters: list[Region], diagAlignedCharacters: list[Region] )
Parameters
| Name | Type | Range | Default | Description | |
|---|---|---|---|---|---|
![]() |
inImage | Image | An input image with text | ||
![]() |
inRoi | Rectangle2D | Location of the text | ||
![]() |
inRoiAlignment | CoordinateSystem2D | Adjusts the region of interest to the position of the inspected object | ||
![]() |
inPolarity | Polarity | Text polarity | ||
![]() |
inCharWidth | int | 5 - 200 | Width of a single character in pixels | |
![]() |
inStrokeWidth | int | None | 1 - 50 | None | Width of the stroke of the letters in pixels |
![]() |
inMinWordGap | int | None | 1 - 200 | None | Width of the smallest gap between letters that is to be treated as a space in pixels |
![]() |
outCharacters | list[Region] | Regions representing individual characters aligned to the ROI | ||
![]() |
diagAlignedCharacters | list[Region] | Regions representing individual characters aligned to the Image |



