com.groupdocs.conversion.integration.ocr

Class TextFragment



  • public class TextFragment
    extends Object
    Represents a part of recognized text (word, symbol, etc), extracted by OCR engine.
    • Constructor Detail

      • TextFragment

        public TextFragment(String text,
                            Rectangle rectangle)
        Initializes a new instance of the recognized text fragment.
        Parameters:
        text - textual content of the recognized text fragment
        rectangle - bounding rectangle of the recognized text fragment
    • Method Detail

      • getText

        public String getText()
        Gets a textual content of the recognized text fragment.
      • getRectangle

        public Rectangle getRectangle()
        Gets a bounding rectangle of the recognized text fragment.