CropArea Class

  • java.lang.Object
    • com.microsoft.azure.cognitiveservices.search.visualsearch.models.CropArea

public class CropArea

A JSON object consisting of coordinates specifying the four corners of a cropped rectangle within the input image.

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.

CropArea withBottom(double bottom)

Set the bottom value.

CropArea withLeft(double left)

Set the left value.

CropArea withRight(double right)

Set the right value.

CropArea withTop(double top)

Set the top value.

Method Details

bottom

public double bottom()

Get the bottom value.

Returns:

the bottom value

left

public double left()

Get the left value.

Returns:

the left value

right

public double right()

Get the right value.

Returns:

the right value

top

public double top()

Get the top value.

Returns:

the top value

withBottom

public CropArea withBottom(double bottom)

Set the bottom value.

Parameters:

bottom - the bottom value to set

Returns:

the CropArea object itself.

withLeft

public CropArea withLeft(double left)

Set the left value.

Parameters:

left - the left value to set

Returns:

the CropArea object itself.

withRight

public CropArea withRight(double right)

Set the right value.

Parameters:

right - the right value to set

Returns:

the CropArea object itself.

withTop

public CropArea withTop(double top)

Set the top value.

Parameters:

top - the top value to set

Returns:

the CropArea object itself.

Applies to