Class Block


public class Block extends OcrElement
Represents a single block, e.g. a paragraph. A block is made up of lines.
  • Constructor Details

    • Block

      public Block(String text, double confidence, List<PointF> roi, List<Line> lines)
      Constructs Block with the given params.
      Parameters:
      text - The recognized text.
      confidence - Text confidence. Range is [0-1].
      roi - Quad where the text was found in image coordinates. The order of the points is clockwise starting from the top left.
      lines - List of lines.
  • Method Details

    • getLines

      public List<Line> getLines()
      Getter for lines field. See constructor documentation for more information about the field.
      Returns:
      lines