estimateExpression method

void estimateExpression(
  1. Portrait portrait
)

Estimates the subject's expression on the specified portrait. Important: This method requires the FaceExpressionClassifier1A model to be loaded.

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

Implementation

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