Class Line


  • public class Line
    extends OcrElement
    Represents a single line. A line is made up of words.
    • Constructor Summary

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

      • Line

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

      • getWords

        public java.util.List<Word> getWords()
        Getter for words field. See constructor documentation for more information about the field.
        Returns:
        words