PortraitProcessor.createPortrait Method

Module: PortraitProcessor

Definition

Analyses an image and creates a portrait with the first detected face or the currently tracked face if the update parameter is activated.

This method performs the following tasks:

  • Face detection

  • Landmark detection (68 points)

  • Head pose estimation

  • Verification of subject position

  • Geometric attributes computation

  • Unified quality score computation

Important

This method requires the FaceDetector, FaceLandmarksEstimator and FacePoseEstimator models to be loaded.

Portrait createPortrait(Image image)

Parameters

image Image
in Source image.

Returns

The newly created portrait.

Exceptions

An error has occurred during Face Library execution.