Class Page


  • public class Page
    extends OcrElement
    Represents result of performing OCR on an image. A page is made up of blocks.
    • Constructor Summary

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

      • Page

        public Page​(java.lang.String text,
                    double confidence,
                    java.util.List<PointF> roi,
                    java.util.List<Block> blocks)
        Constructs Page 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.
        blocks - List of blocks.
    • Method Detail

      • getBlocks

        public java.util.List<Block> getBlocks()
        Getter for blocks field. See constructor documentation for more information about the field.
        Returns:
        blocks