Facial Hair Attributes API Response Scheme
Haut.AI provides an AI algorithm that segments facial hair of different types.
Description
The algorithm segments facial hair on the provided restored image.
It considers three types of facial hair, depending on its length: Unshaven, Stubble or Beard. For long facial hair, it also considers a division into Beard and Moustache (according to the location of the hair).
"algorithm_tech_name": "facial_hair_attributes"
area_name
area_name
The algorithm returns metrics for the following area:
face
main_metric
main_metric
The main metric indicates the presence or absence of facial hair of any type on the face.
value
0
- no facial hair1
- any facial hair present
"widget_type": "category"
"name": "Facial_hair"
"tech_name": "facial_hair"
sub_metrics
sub_metrics
The algorithm returns four types of sub-metrics: Unshaven
,Stubble
, Beard
, Moustache
.
Unshaven
indicates the presence of the "unshaven" type of facial hair (short 1-2 day stubble)value
0
- no unshaven type of facial hair1
- any unshaven type of facial hair present
"widget_type": "category"
"name": "Unshaven"
"tech_name": "unshaven"
Stubble
indicates the presence of stubble (medium-length stubble)value
0
- no stubble1
- any stubble presented
"widget_type": "category"
"name": "Stubble"
"tech_name": "stubble"
Beard
indicates the presence of a beard (long facial hair on the chin and/or cheeks)value
0
- no beard1
- any beard presented
"widget_type": "category"
"name": "Beard"
"tech_name": "beard"
Moustache
indicates the presence of a moustache (long facial hair above the upper lip)value
0
- no moustache1
- any moustache present
"widget_type": "category"
"name": "Moustache"
"tech_name": "moustache"
masks_restored
masks_restored
The algorithm returns vectorized masks for each type of facial hair (unshaven_mask
, stubble_mask
, beard_mask
, moustache_mask
) for a face-aligned image.
"mask_type": "polygon_mask"
features
geometry
"type": "Multipolygon
See more on Masks here.
masks_original
masks_original
The algorithm returns vectorized masks for each type of facial hair (unshaven_mask
, stubble_mask
, beard_mask
, moustache_mask
) for an original image.
"mask_type": "polygon_mask"
features
geometry
"type": "Multipolygon"
See more on Masks here.
Example (JSON)
Last updated