Class Block


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

      Constructors 
      Constructor Description
      Block​(java.lang.String text, double confidence, java.util.List<PointF> roi, java.util.List<Line> lines)
      Constructs Block with the given params.
    • Constructor Detail

      • Block

        public Block​(java.lang.String text,
                     double confidence,
                     java.util.List<PointF> roi,
                     java.util.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 Detail

      • getLines

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