Share via


PeopleResult Class

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

Implements

public final class PeopleResult
implements JsonSerializable<PeopleResult>

Represents a list of people detected in an image and their ___location.

Method Summary

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

Reads an instance of PeopleResult from the JsonReader.

List<DetectedPerson> getValues()

Get the values property: A list of people detected in an image and their ___location.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static PeopleResult fromJson(JsonReader jsonReader)

Reads an instance of PeopleResult from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

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

Get the values property: A list of people detected in an image and their ___location.

Returns:

the values value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to