DenseCaptionsResult Class

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

Implements

public final class DenseCaptionsResult
implements JsonSerializable<DenseCaptionsResult>

Represents a list of up to 10 image captions for different regions of the image. The first caption always applies to the whole image.

Method Summary

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

Reads an instance of DenseCaptionsResult from the JsonReader.

List<DenseCaption> getValues()

Get the values property: The list of image captions.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static DenseCaptionsResult fromJson(JsonReader jsonReader)

Reads an instance of DenseCaptionsResult from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of DenseCaptionsResult 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 getValues()

Get the values property: The list of image captions.

Returns:

the values value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to