다음을 통해 공유


BoundingBox Class

  • java.lang.Object
    • com.microsoft.azure.cognitiveservices.vision.customvision.prediction.models.BoundingBox

public class BoundingBox

Bounding box that defines a region of an image.

Method Summary

Modifier and Type Method and Description
double height()

Get the height value.

double left()

Get the left value.

double top()

Get the top value.

double width()

Get the width value.

BoundingBox withHeight(double height)

Set the height value.

BoundingBox withLeft(double left)

Set the left value.

BoundingBox withTop(double top)

Set the top value.

BoundingBox withWidth(double width)

Set the width value.

Method Details

height

public double height()

Get the height value.

Returns:

the height value

left

public double left()

Get the left value.

Returns:

the left value

top

public double top()

Get the top value.

Returns:

the top value

width

public double width()

Get the width value.

Returns:

the width value

withHeight

public BoundingBox withHeight(double height)

Set the height value.

Parameters:

height - the height value to set

Returns:

the BoundingBox object itself.

withLeft

public BoundingBox withLeft(double left)

Set the left value.

Parameters:

left - the left value to set

Returns:

the BoundingBox object itself.

withTop

public BoundingBox withTop(double top)

Set the top value.

Parameters:

top - the top value to set

Returns:

the BoundingBox object itself.

withWidth

public BoundingBox withWidth(double width)

Set the width value.

Parameters:

width - the width value to set

Returns:

the BoundingBox object itself.

Applies to