Class RecognisedObject

  • Direct Known Subclasses:
    CaptionObject

    public class RecognisedObject
    extends java.lang.Object
    A model for recognised objects from graphics and texts typically includes human readable label for the object, language of the label, id and confidence score.
    Since:
    Apache Tika 1.14
    • Constructor Summary

      Constructors 
      Constructor Description
      RecognisedObject​(java.lang.String label, java.lang.String labelLang, java.lang.String id, double confidence)  
    • Constructor Detail

      • RecognisedObject

        public RecognisedObject​(java.lang.String label,
                                java.lang.String labelLang,
                                java.lang.String id,
                                double confidence)
    • Method Detail

      • getLabel

        public java.lang.String getLabel()
      • setLabel

        public void setLabel​(java.lang.String label)
      • getLabelLang

        public java.lang.String getLabelLang()
      • setLabelLang

        public void setLabelLang​(java.lang.String labelLang)
      • getId

        public java.lang.String getId()
      • setId

        public void setId​(java.lang.String id)
      • getConfidence

        public double getConfidence()
      • setConfidence

        public void setConfidence​(double confidence)
      • toString

        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object