你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

SmartCropsResult Class

  • java.lang.Object
    • com.azure.ai.vision.imageanalysis.models.SmartCropsResult

Implements

public final class SmartCropsResult
implements JsonSerializable<SmartCropsResult>

Smart cropping result. A list of crop regions at the desired as aspect ratios (if provided) that can be used as image thumbnails. These regions preserve as much content as possible from the analyzed image, with priority given to detected faces.

Method Summary

Modifier and Type Method and Description
static SmartCropsResult fromJson(JsonReader jsonReader)

Reads an instance of SmartCropsResult from the JsonReader.

List<CropRegion> getValues()

Get the values property: A list of crop regions.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static SmartCropsResult fromJson(JsonReader jsonReader)

Reads an instance of SmartCropsResult from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of SmartCropsResult if the JsonReader was pointing to an instance of it, or null if it was pointing to JSON null.

Throws:

IOException

- If the deserialized JSON object was missing any required properties.

getValues

public List<CropRegion> getValues()

Get the values property: A list of crop regions.

Returns:

the values value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to