# Class ImageLabel

java.lang.Object
com.codename1.ai.vision.ImageLabel

public final class ImageLabel extends Object
Portable image classification label.

- ## Constructor Summary

  Constructors
  Constructor
  Description
  `ImageLabel(String text, float confidence, int index)`
  `ImageLabel(String text, float confidence, int index, VisionMetadata metadata)`

- ## Method Summary

  Modifier and Type
  Method
  Description
  `float`
  `getConfidence()`
  `int`
  `getIndex()`
  `VisionMetadata`
  `getMetadata()`
  `String`
  `getText()`

  ### Methods inherited from class Object

  `clone, equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait`

- ## Constructor Details

  - ### ImageLabel

    public ImageLabel(String text, float confidence, int index)

  - ### ImageLabel

    public ImageLabel(String text, float confidence, int index, VisionMetadata metadata)

- ## Method Details

  - ### getText

    public String getText()

  - ### getConfidence

    public float getConfidence()

  - ### getIndex

    public int getIndex()

  - ### getMetadata

    public VisionMetadata getMetadata()