com.groupdocs.redaction.integration

Class TextLine



  • public class TextLine
    extends Object

    Represents a line of text, extracted by OCR engine from an image.


    Learn more

    • Constructor Detail

      • TextLine

        public TextLine(TextFragment[] fragments)

        Initializes a new instance of a line of text, extracted by OCR engine from an image.

        Parameters:
        fragments - initial set of text fragments
    • Method Detail

      • getFragments

        public final TextFragment[] getFragments()

        Gets an array of text fragments, such as symbols and words, recognized in the line.

        Returns:
        An array of text fragments, such as symbols and words, recognized in the line.
      • toString

        public String toString()

        Returns textual content of the recognised line of text.

        Overrides:
        toString in class Object
        Returns:
        textual content of the recognised line of text