PortraitProcessor.updatePortrait Method

Module: PortraitProcessor

Definition

Analyses an image and updates the specified portrait with the first detected face or the currently tracked face.

This method performs the following tasks:

  • Face detection and tracking with prediction models

  • Landmark detection (68 points)

  • Head pose estimation

  • Verification of subject position

  • Template encoding and updating

  • Geometric attributes computation

  • Unified quality score computation

Important

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

update_portrait(self, portrait: Portrait, image: Image) -> None

Parameters

portrait Portrait
in The portrait to be updated.

image Image
in The source image.

Exceptions

An error has occurred during Face Library execution.
void updatePortrait(Portrait portrait, Image image)

Parameters

portrait Portrait
in The portrait to be updated.

image Image
in The source image.

Exceptions

An error has occurred during Face Library execution.
public void UpdatePortrait(Portrait portrait, Image image)

Parameters

portrait Portrait
in The portrait to be updated.

image Image
in The source image.

Exceptions

An error has occurred during Face Library execution.
public void updatePortrait(Portrait portrait, Image image) throws FaceException

Parameters

portrait Portrait
in The portrait to be updated.

image Image
in The source image.

Exceptions

An error has occurred during Face Library execution.
public func updatePortrait(portrait: Portrait, image: Image) throws

Parameters

portrait Portrait
in The portrait to be updated.

image Image
in The source image.

Exceptions

An error has occurred during Face Library execution.
int id3FacePortraitProcessor_UpdatePortrait (
    ID3_FACE_PORTRAIT_PROCESSOR hPortraitProcessor,
    ID3_FACE_PORTRAIT hPortrait,
    ID3_FACE_IMAGE hImage)

Parameters

hPortraitProcessor ID3_FACE_PORTRAIT_PROCESSOR
in Handle to the PortraitProcessor object.

in The portrait to be updated.

in The source image.

Returns

int
An error code.
See id3FaceError file for the list of possible error codes.