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.
|
public final String getText()
Gets a textual content of the recognised text fragment.
public final Rectangle getRectangle()
Gets a bounding rectangle of the recognised text fragment.