Class RecognisedObject

  • Direct Known Subclasses:
    CaptionObject

    public class RecognisedObject
    extends 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
    • Field Detail

      • label

        protected String label
        Label of this object. Usually the name given to this object by humans
      • labelLang

        protected String labelLang
        Language of label, Example : english
      • id

        protected String id
        Identifier for this object
      • confidence

        protected double confidence
        Confidence score
    • Constructor Detail

      • RecognisedObject

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

      • getLabel

        public String getLabel()
      • setLabel

        public void setLabel​(String label)
      • getLabelLang

        public String getLabelLang()
      • setLabelLang

        public void setLabelLang​(String labelLang)
      • getId

        public String getId()
      • setId

        public void setId​(String id)
      • getConfidence

        public double getConfidence()
      • setConfidence

        public void setConfidence​(double confidence)