Class RecognisedObject
- java.lang.Object
-
- org.apache.tika.parser.recognition.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
-
-
Constructor Summary
Constructors Constructor Description RecognisedObject(String label, String labelLang, String id, double confidence)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description doublegetConfidence()StringgetId()StringgetLabel()StringgetLabelLang()voidsetConfidence(double confidence)voidsetId(String id)voidsetLabel(String label)voidsetLabelLang(String labelLang)StringtoString()
-
-
-
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)
-
-