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

public class Location
extends com.ibm.cloud.sdk.core.service.model.GenericModel
Defines the location of the bounding box around the object.
  • Method Details

    • newBuilder

      public Location.Builder newBuilder()
      New builder.
      Returns:
      a Location builder
    • top

      public Long top()
      Gets the top.

      Y-position of top-left pixel of the bounding box.

      Returns:
      the top
    • left

      public Long left()
      Gets the left.

      X-position of top-left pixel of the bounding box.

      Returns:
      the left
    • width

      public Long width()
      Gets the width.

      Width in pixels of of the bounding box.

      Returns:
      the width
    • height

      public Long height()
      Gets the height.

      Height in pixels of the bounding box.

      Returns:
      the height