Class BoundingBox
- java.lang.Object
-
- com.azure.android.ai.vision.common.BoundingBox
-
public final class BoundingBox extends Object
Represents a rectangular area inside an image.
-
-
Constructor Summary
Constructors Constructor Description BoundingBox(int x, int y, int w, int h)
Instantiates a new BoundingBox.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getH()
Get the height of the area, in pixels.int
getW()
Get the width of the area, in pixels.int
getX()
Get the X-coordinate of the top left point of the area, in pixels.int
getY()
Get the Y-coordinate of the top left point of the area, in pixels.String
toString()
String representation of the object
-
-
-
Constructor Detail
-
BoundingBox
public BoundingBox(int x, int y, int w, int h)
Instantiates a new BoundingBox.- Parameters:
x
- the X-coordinate of the top left point of the area, in pixelsy
- the Y-coordinate of the top left point of the area, in pixelsw
- the width of the area, in pixelsh
- the height of the area, in pixels
-
-
Method Detail
-
getX
public final int getX()
Get the X-coordinate of the top left point of the area, in pixels.- Returns:
- The X-coordinate of the top left point of the area, in pixels.
-
getY
public final int getY()
Get the Y-coordinate of the top left point of the area, in pixels.- Returns:
- The Y-coordinate of the top left point of the area, in pixels.
-
getH
public final int getH()
Get the height of the area, in pixels.- Returns:
- The height of the area, in pixels.
-
getW
public final int getW()
Get the width of the area, in pixels.- Returns:
- The width of the area, in pixels.
-
-