TTMSFNCWXOCRHelperSelectionResult Class
Represents a single selected image region and the text recognition result associated with it. Holds the cropped bitmap, its position on the source image, the recognized text and bounding boxes, and the processing state used while recognition is running.
API unit family: TMSFNCWXOCRHelper
Inherits from: TPersistent
Syntax
TTMSFNCWXOCRHelperSelectionResult = class(TPersistent)
Properties
| Name | Description |
|---|---|
| Bitmap | Holds the cropped bitmap of the selected region that is submitted for text recognition. |
| FeedbackDPIScale | Display scaling factor applied when drawing the recognition feedback (word bounding boxes) over the selection. Captured at the time recognition starts so the overlay aligns with the original capture. |
| FromTemplate | Indicates whether the selection was created from a loaded template. True when the region originates from a template rather than a manual selection. |
| ID | Identifies the selection. Used to match an asynchronous recognition result back to the selection that started it. |
| InProgress | Indicates whether recognition for this selection is currently running. True while the request is pending and a result has not yet been received. |
| OCRResult | Holds the recognition result for this selection once processing has completed. Remains unassigned until a result is received. |
| Rectangle | The bounding rectangle of the selection, expressed in image coordinates. |
| SelectionDPIScale | Display scaling factor applied when the selection region was captured from the source image. Used to map the stored rectangle back to image coordinates. |