Class WordBox


  • public class WordBox
    extends java.lang.Object
    Structure containing recognized word text and bounds.
    • Constructor Summary

      Constructors 
      Constructor Description
      WordBox​(java.lang.String text, Rectangle boundingRect)
      Constructs WordBox with default parameters.
      WordBox​(java.lang.String text, Rectangle boundingRect, double recognitionConfidence)
      Constructs WordBox with the given params.
    • Constructor Detail

      • WordBox

        public WordBox​(java.lang.String text,
                       Rectangle boundingRect,
                       double recognitionConfidence)
        Constructs WordBox with the given params.
        Parameters:
        text - Recognized word text.
        boundingRect - Bounding rectangle of the recognized word.
        recognitionConfidence - Confidence of the recognition. Default is 0.0
      • WordBox

        public WordBox​(java.lang.String text,
                       Rectangle boundingRect)
        Constructs WordBox with default parameters.
        Parameters:
        text - Recognized word text.
        boundingRect - Bounding rectangle of the recognized word.
    • Method Detail

      • getText

        public java.lang.String getText()
        Getter for text field. See constructor documentation for more information about the field.
        Returns:
        text
      • getBoundingRect

        public Rectangle getBoundingRect()
        Getter for boundingRect field. See constructor documentation for more information about the field.
        Returns:
        boundingRect
      • getRecognitionConfidence

        public double getRecognitionConfidence()
        Getter for recognitionConfidence field. See constructor documentation for more information about the field.
        Returns:
        recognitionConfidence