public class TextFragment extends Object
Represents a part of recognized text (word, symbol, etc), extracted by OCR engine.
Learn more
| Constructor and Description |
|---|
TextFragment(String text,
Rectangle rectangle)
Initializes a new instance of the recognised text fragment.
|
| Modifier and Type | Method and Description |
|---|---|
Rectangle |
getRectangle()
Gets a bounding rectangle of the recognised text fragment.
|
String |
getText()
Gets a textual content of the recognised text fragment.
|
String |
toString()
Returns textual content of the recognised text fragment.
|
public final Rectangle getRectangle()
Gets a bounding rectangle of the recognised text fragment.
public final String getText()
Gets a textual content of the recognised text fragment.
Copyright © 2025. All rights reserved.