Share via


HeadPose Class

  • java.lang.Object
    • com.azure.ai.vision.face.models.HeadPose

Implements

public final class HeadPose
implements JsonSerializable<HeadPose>

3-D roll/yaw/pitch angles for face direction.

Method Summary

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

Reads an instance of HeadPose from the JsonReader.

double getPitch()

Get the pitch property: Value of angles.

double getRoll()

Get the roll property: Value of angles.

double getYaw()

Get the yaw property: Value of angles.

JsonWriter toJson(JsonWriter jsonWriter)

Methods inherited from java.lang.Object

Method Details

fromJson

public static HeadPose fromJson(JsonReader jsonReader)

Reads an instance of HeadPose from the JsonReader.

Parameters:

jsonReader - The JsonReader being read.

Returns:

An instance of HeadPose 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.

getPitch

public double getPitch()

Get the pitch property: Value of angles.

Returns:

the pitch value.

getRoll

public double getRoll()

Get the roll property: Value of angles.

Returns:

the roll value.

getYaw

public double getYaw()

Get the yaw property: Value of angles.

Returns:

the yaw value.

toJson

public JsonWriter toJson(JsonWriter jsonWriter)

Parameters:

jsonWriter

Throws:

Applies to