Class WordBox

java.lang.Object
io.scanbot.sdk.textpattern.WordBox

public class WordBox extends Object
Structure containing recognized word text and bounds.
  • Constructor Details

    • WordBox

      public WordBox(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(String text, Rectangle boundingRect)
      Constructs WordBox with default parameters.
      Parameters:
      text - Recognized word text.
      boundingRect - Bounding rectangle of the recognized word.
  • Method Details

    • getText

      public 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