Class Page<TPagePrediction>

  • Type Parameters:
    TPagePrediction - The prediction model type.

    public class Page<TPagePrediction>
    extends Object
    Define a page in the parsed document.
    • Constructor Detail

      • Page

        public Page()
    • Method Detail

      • isPredictionEmpty

        public boolean isPredictionEmpty()
        Returns true if there are no predictions in this page. Accessing prediction values when this is true may result in a NullPointerException
      • getPageId

        public int getPageId()
        The id of the page. It starts at 0.
      • getExtras

        public Extras getExtras()
        Optional information.
      • getOrientation

        public Orientation getOrientation()
        The orientation which was applied from the original page.
      • getPrediction

        public TPagePrediction getPrediction()
        The prediction model type.