estimateFaceAttributes method

void estimateFaceAttributes(
  1. Portrait portrait
)

Estimates the face attributes of the specified portrait. It includes glasses, hat, makeup, mouth opening, gender, smile, eye gaze, eye opening, face mask Note: The appropriate AI models must be loaded.

param portrait The portrait. throws FaceException An error has occurred during Face Library execution.

Implementation

void estimateFaceAttributes(Portrait portrait) {
  var err = faceSDK.id3FacePortraitProcessor_EstimateFaceAttributes(_pHandle.value, portrait.handle);
  if (err != FaceError.success.value) {
    throw FaceException(err);
  }
}