Class Word


  • public class Word
    extends OcrElement
    Represents a single word. A word is made up of glyphs.
    • Constructor Summary

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

      • Word

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

      • getGlyphs

        public java.util.List<Glyph> getGlyphs()
        Getter for glyphs field. See constructor documentation for more information about the field.
        Returns:
        glyphs