ExtractText
Ready-to-use tool for extracting and splitting character to single characters.
Syntax
C++
C#
Python
def ExtractText( inImage: Image, inRoi: Rectangle2D, inRoiAlignment: CoordinateSystem2D, inSegmentationModel: TextSegmentation, /, *, diagTextRegion: Region | None = None, diagAlignedRoi: Rectangle2D | None = None ) -> ( outCharacters: list[Region], diagAlignedCharacters: list[Region] )
Parameters
| Name | Type | 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 | |
![]() |
inSegmentationModel | TextSegmentation | Model used for separating text from background | |
![]() |
outCharacters | list[Region] | Split characters aligned to ROI | |
![]() |
diagTextRegion | Region | None | None | Region of text after extraction |
![]() |
diagAlignedCharacters | list[Region] | Character regions preserving original image orientation | |
![]() |
diagAlignedRoi | Rectangle2D | None | None | ROI rectangle after alignment |



