Class Line


  • public class Line
    extends Object
    An object representing a recognized text line.
    • Constructor Detail

      • Line

        public Line()
    • Method Detail

      • language

        public String language()
        Get the language value.
        Returns:
        the language value
      • withLanguage

        public Line withLanguage​(String language)
        Set the language value.
        Parameters:
        language - the language value to set
        Returns:
        the Line object itself.
      • boundingBox

        public List<Double> boundingBox()
        Get the boundingBox value.
        Returns:
        the boundingBox value
      • withBoundingBox

        public Line withBoundingBox​(List<Double> boundingBox)
        Set the boundingBox value.
        Parameters:
        boundingBox - the boundingBox value to set
        Returns:
        the Line object itself.
      • appearance

        public Appearance appearance()
        Get the appearance value.
        Returns:
        the appearance value
      • withAppearance

        public Line withAppearance​(Appearance appearance)
        Set the appearance value.
        Parameters:
        appearance - the appearance value to set
        Returns:
        the Line object itself.
      • text

        public String text()
        Get the text value.
        Returns:
        the text value
      • withText

        public Line withText​(String text)
        Set the text value.
        Parameters:
        text - the text value to set
        Returns:
        the Line object itself.
      • words

        public List<Word> words()
        Get the words value.
        Returns:
        the words value
      • withWords

        public Line withWords​(List<Word> words)
        Set the words value.
        Parameters:
        words - the words value to set
        Returns:
        the Line object itself.