Class Location
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.
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
Location.Builder
Builder. -
Method Summary
Modifier and Type Method Description Long
height()
Gets the height.Long
left()
Gets the left.Location.Builder
newBuilder()
New builder.Long
top()
Gets the top.Long
width()
Gets the width.Methods inherited from class com.ibm.cloud.sdk.core.service.model.GenericModel
equals, hashCode, toString
-
Method Details
-
newBuilder
New builder.- Returns:
- a Location builder
-
top
Gets the top.Y-position of top-left pixel of the bounding box.
- Returns:
- the top
-
left
Gets the left.X-position of top-left pixel of the bounding box.
- Returns:
- the left
-
width
Gets the width.Width in pixels of of the bounding box.
- Returns:
- the width
-
height
Gets the height.Height in pixels of the bounding box.
- Returns:
- the height
-