Partager via


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.

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.

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.

Methods inherited from java.lang.Object

java.lang.Object.clone java.lang.Object.equals java.lang.Object.finalize java.lang.Object.getClass java.lang.Object.hashCode java.lang.Object.notify java.lang.Object.notifyAll java.lang.Object.toString java.lang.Object.wait java.lang.Object.wait java.lang.Object.wait

Constructor Details

CropArea

public CropArea()

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