ImageInfo Class
- java.
lang. Object - com.
microsoft. azure. cognitiveservices. search. visualsearch. models. ImageInfo
- com.
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 |
---|---|
Crop |
cropArea()
Get the cropArea value. |
String |
imageInsightsToken()
Get the imageInsightsToken value. |
String |
url()
Get the url value. |
Image |
withCropArea(CropArea cropArea)
Set the cropArea value. |
Image |
withImageInsightsToken(String imageInsightsToken)
Set the imageInsightsToken value. |
Image |
withUrl(String url)
Set the url value. |
Method Details
cropArea
public CropArea cropArea()
Get the cropArea value.
Returns:
imageInsightsToken
public String imageInsightsToken()
Get the imageInsightsToken value.
Returns:
url
public String url()
Get the url value.
Returns:
withCropArea
public ImageInfo withCropArea(CropArea cropArea)
Set the cropArea value.
Parameters:
Returns:
withImageInsightsToken
public ImageInfo withImageInsightsToken(String imageInsightsToken)
Set the imageInsightsToken value.
Parameters:
Returns:
withUrl
public ImageInfo withUrl(String url)
Set the url value.
Parameters:
Returns:
Applies to
Azure SDK for Java