CropArea Class
- java.
lang. Object - com.
microsoft. azure. cognitiveservices. search. visualsearch. models. CropArea
- com.
public class CropArea
A JSON object consisting of coordinates specifying the four corners of a cropped rectangle within the input image.
Constructor Summary
Constructor | Description | |
---|---|---|
CropArea() |
Method Summary
Modifier and Type | Method and Description |
---|---|
double |
bottom()
Get the bottom value. |
double |
left()
Get the left value. |
double |
right()
Get the right value. |
double |
top()
Get the top value. |
Crop |
withBottom(double bottom)
Set the bottom value. |
Crop |
withLeft(double left)
Set the left value. |
Crop |
withRight(double right)
Set the right value. |
Crop |
withTop(double top)
Set the top value. |
Methods inherited from java.lang.Object
Constructor Details
CropArea
public CropArea()
Method Details
bottom
public double bottom()
Get the bottom value.
Returns:
left
public double left()
Get the left value.
Returns:
right
public double right()
Get the right value.
Returns:
top
public double top()
Get the top value.
Returns:
withBottom
public CropArea withBottom(double bottom)
Set the bottom value.
Parameters:
Returns:
withLeft
public CropArea withLeft(double left)
Set the left value.
Parameters:
Returns:
withRight
public CropArea withRight(double right)
Set the right value.
Parameters:
Returns:
withTop
public CropArea withTop(double top)
Set the top value.
Parameters:
Returns:
Applies to
Azure SDK for Java