Class ObjectDetail

java.lang.Object
com.ibm.cloud.sdk.core.service.model.GenericModel
com.ibm.watson.visual_recognition.v4.model.ObjectDetail
All Implemented Interfaces:
com.ibm.cloud.sdk.core.service.model.ObjectModel

public class ObjectDetail
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Details about an object in the collection.
  • Constructor Details

    • ObjectDetail

      public ObjectDetail()
  • Method Details

    • getObject

      public String getObject()
      Gets the object.

      The label for the object.

      Returns:
      the object
    • getLocation

      public ObjectDetailLocation getLocation()
      Gets the location.

      Defines the location of the bounding box around the object.

      Returns:
      the location
    • getScore

      public Float getScore()
      Gets the score.

      Confidence score for the object in the range of 0 to 1. A higher score indicates greater likelihood that the object is depicted at this location in the image.

      Returns:
      the score