Class Word


  • public class Word
    extends Object
    An object representing a recognized word.
    • Constructor Detail

      • Word

        public Word()
    • Method Detail

      • boundingBox

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

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

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

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

        public double confidence()
        Get the confidence value.
        Returns:
        the confidence value
      • withConfidence

        public Word withConfidence​(double confidence)
        Set the confidence value.
        Parameters:
        confidence - the confidence value to set
        Returns:
        the Word object itself.