com.groupdocs.redaction.integration

Class RecognizedImage



  • public class RecognizedImage
    extends Object

    Represents text, extracted from an image as a result of its recognition process.


    Learn more

    • Constructor Detail

      • RecognizedImage

        public RecognizedImage(TextLine[] lines)

        Initializes a new instance of the class, using a set of recognized lines.

        Parameters:
        lines - an IEnumerable (e.g. a list or an array) of recognized lines
    • Method Detail

      • getText

        public final String getText()

        Gets textual equivalent of the structured text.

        Returns:
        Textual equivalent of the structured text.
      • getLines

        public final TextLine[] getLines()

        Gets lines of text, with their fragments, recognized within the document.

        Returns:
        Lines of text, with their fragments, recognized within the document.
      • toString

        public String toString()

        Gets textual equivalent of the structured text.

        Overrides:
        toString in class Object
        Returns:
        Recognized text