Sdílet prostřednictvím


BoundingRect Class

  • java.lang.Object
    • com.microsoft.azure.cognitiveservices.vision.computervision.models.BoundingRect

public class BoundingRect

A bounding box for an area inside an image.

Method Summary

Modifier and Type Method and Description
int h()

Get the h value.

int w()

Get the w value.

BoundingRect withH(int h)

Set the h value.

BoundingRect withW(int w)

Set the w value.

BoundingRect withX(int x)

Set the x value.

BoundingRect withY(int y)

Set the y value.

int x()

Get the x value.

int y()

Get the y value.

Method Details

h

public int h()

Get the h value.

Returns:

the h value

w

public int w()

Get the w value.

Returns:

the w value

withH

public BoundingRect withH(int h)

Set the h value.

Parameters:

h - the h value to set

Returns:

the BoundingRect object itself.

withW

public BoundingRect withW(int w)

Set the w value.

Parameters:

w - the w value to set

Returns:

the BoundingRect object itself.

withX

public BoundingRect withX(int x)

Set the x value.

Parameters:

x - the x value to set

Returns:

the BoundingRect object itself.

withY

public BoundingRect withY(int y)

Set the y value.

Parameters:

y - the y value to set

Returns:

the BoundingRect object itself.

x

public int x()

Get the x value.

Returns:

the x value

y

public int y()

Get the y value.

Returns:

the y value

Applies to