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

public class Image
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Details about an image.
  • Constructor Details

    • Image

      public Image()
  • Method Details

    • getSource

      public ImageSource getSource()
      Gets the source.

      The source type of the image.

      Returns:
      the source
    • getDimensions

      public ImageDimensions getDimensions()
      Gets the dimensions.

      Height and width of an image.

      Returns:
      the dimensions
    • getObjects

      public DetectedObjects getObjects()
      Gets the objects.

      Container for the list of collections that have objects detected in an image.

      Returns:
      the objects
    • getErrors

      public List<Error> getErrors()
      Gets the errors.

      A container for the problems in the request.

      Returns:
      the errors