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 classLocation.BuilderBuilder. -
Method Summary
Modifier and Type Method Description Longheight()Gets the height.Longleft()Gets the left.Location.BuildernewBuilder()New builder.Longtop()Gets the top.Longwidth()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
-