Sdílet prostřednictvím


ImageInfo Class

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

public class ImageInfo

A JSON object that identities the image to get insights of . It also includes the optional crop area that you use to identify the region of interest in the image.

Method Summary

Modifier and Type Method and Description
CropArea cropArea()

Get the cropArea value.

String imageInsightsToken()

Get the imageInsightsToken value.

String url()

Get the url value.

ImageInfo withCropArea(CropArea cropArea)

Set the cropArea value.

ImageInfo withImageInsightsToken(String imageInsightsToken)

Set the imageInsightsToken value.

ImageInfo withUrl(String url)

Set the url value.

Method Details

cropArea

public CropArea cropArea()

Get the cropArea value.

Returns:

the cropArea value

imageInsightsToken

public String imageInsightsToken()

Get the imageInsightsToken value.

Returns:

the imageInsightsToken value

url

public String url()

Get the url value.

Returns:

the url value

withCropArea

public ImageInfo withCropArea(CropArea cropArea)

Set the cropArea value.

Parameters:

cropArea - the cropArea value to set

Returns:

the ImageInfo object itself.

withImageInsightsToken

public ImageInfo withImageInsightsToken(String imageInsightsToken)

Set the imageInsightsToken value.

Parameters:

imageInsightsToken - the imageInsightsToken value to set

Returns:

the ImageInfo object itself.

withUrl

public ImageInfo withUrl(String url)

Set the url value.

Parameters:

url - the url value to set

Returns:

the ImageInfo object itself.

Applies to