你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
BoundingBox Class
- java.
lang. Object - com.
microsoft. azure. cognitiveservices. vision. customvision. training. models. BoundingBox
- com.
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. |
Bounding |
withHeight(double height)
Set the height value. |
Bounding |
withLeft(double left)
Set the left value. |
Bounding |
withTop(double top)
Set the top value. |
Bounding |
withWidth(double width)
Set the width value. |
Method Details
height
public double height()
Get the height value.
Returns:
left
public double left()
Get the left value.
Returns:
top
public double top()
Get the top value.
Returns:
width
public double width()
Get the width value.
Returns:
withHeight
public BoundingBox withHeight(double height)
Set the height value.
Parameters:
Returns:
withLeft
public BoundingBox withLeft(double left)
Set the left value.
Parameters:
Returns:
withTop
public BoundingBox withTop(double top)
Set the top value.
Parameters:
Returns:
withWidth
public BoundingBox withWidth(double width)
Set the width value.
Parameters:
Returns: