Partilhar via


LivenessResponseBody Class

Definition

The response body of detect liveness API call.

public class LivenessResponseBody : System.ClientModel.Primitives.IJsonModel<Azure.AI.Vision.Face.LivenessResponseBody>, System.ClientModel.Primitives.IPersistableModel<Azure.AI.Vision.Face.LivenessResponseBody>
type LivenessResponseBody = class
    interface IJsonModel<LivenessResponseBody>
    interface IPersistableModel<LivenessResponseBody>
Public Class LivenessResponseBody
Implements IJsonModel(Of LivenessResponseBody), IPersistableModel(Of LivenessResponseBody)
Inheritance
LivenessResponseBody
Implements

Properties

AdditionalProperties

Additional Properties

To assign an object to the value of this property use FromObjectAsJson<T>(T, JsonSerializerOptions).

To assign an already formatted json string to this property use FromString(String).

Examples:

  • BinaryData.FromObjectAsJson("foo"): Creates a payload of "foo".
  • BinaryData.FromString("\"foo\""): Creates a payload of "foo".
  • BinaryData.FromObjectAsJson(new { key = "value" }): Creates a payload of { "key": "value" }.
  • BinaryData.FromString("{\"key\": \"value\"}"): Creates a payload of { "key": "value" }.

LivenessDecision

The liveness classification for the target face.

ModelVersionUsed

The model version used for liveness classification.

Target

Specific targets used for liveness classification.

VerifyResult

The face verification output. Only available when the request is liveness with verify.

Explicit Interface Implementations

IJsonModel<LivenessResponseBody>.Create(Utf8JsonReader, ModelReaderWriterOptions)

Reads one JSON value (including objects or arrays) from the provided reader and converts it to a model.

IJsonModel<LivenessResponseBody>.Write(Utf8JsonWriter, ModelReaderWriterOptions)

Writes the model to the provided Utf8JsonWriter.

IPersistableModel<LivenessResponseBody>.Create(BinaryData, ModelReaderWriterOptions)

Converts the provided BinaryData into a model.

IPersistableModel<LivenessResponseBody>.GetFormatFromOptions(ModelReaderWriterOptions)

Gets the data interchange format (JSON, Xml, etc) that the model uses when communicating with the service.

IPersistableModel<LivenessResponseBody>.Write(ModelReaderWriterOptions)

Writes the model into a BinaryData.

Applies to