Attributes

Function

This topic describes facial attribute structures.

Parameter Description

Table 1 Structure format description

Parameter

Type

Description

age

Integer

Age

dress

List of strings

Contains the glass and hat attributes.

glass

String

Glasses:

  • yes: with glasses
  • none: without glasses
  • unknown

hat

String

Hat:

  • yes: with a hat
  • none: without a hat
  • unknown

mask

String

Mask:

  • yes: with a mask
  • none: without a mask
  • unknown

hair

String

Hairstyle:

  • long: long hair
  • short: short hair
  • unknown

beard

String

Beard:

  • yes: with beard
  • none: without beard
  • unknown

phototype

String

Image type:

  • idcard: ID photo
  • monitor: camera surveillance
  • internet photo: network image

smile

String

A smiling face

quality

FaceQuality

Blocking degree, blurring degree, illumination intensity, and posture angle of a face in an image

expression

FaceExpression

Facial expression, including neutral, happy, scared, surprised, sad, angry, and disgusted

face_angle

Integer

Rotation angle of a facial image (clockwise rotation angle). The value can be 0°, 90°, 180°, or 270°.

dress

List of strings

Contains the glass and hat attributes.

glass

String

Whether a face wears glasses. Possible values are:

  • yes: with glasses
  • dark: with sunglasses
  • none: without glasses
  • unknown

hat

String

Whether a face wears a hat. Possible values are:

  • yes: with a hat
  • none: without a hat
  • unknown

headpose

List of doubles

Coordinate value of the face contour

pitch_angle

Double

Pitch angle (rotation around the x-axis). The value ranges from -180 to 180.

roll_angle

Double

Roll angle (rotation around the z-axis). The value ranges from -180 to 180.

yaw_angle

Double

Yaw angle (rotation around the y-axis). The value ranges from -180 to 180.