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
Exceptions
An error has occurred during Face Library execution.
void updatePortrait(Portrait portrait, Image image)
Parameters
Exceptions
An error has occurred during Face Library execution.
public void UpdatePortrait(Portrait portrait, Image image)
Parameters
Exceptions
An error has occurred during Face Library execution.
public void updatePortrait(Portrait portrait, Image image) throws FaceException
Parameters
Exceptions
An error has occurred during Face Library execution.
public func updatePortrait(portrait: Portrait, image: Image) throws
Parameters
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
hPortraitProcessorID3_FACE_PORTRAIT_PROCESSORin Handle to the PortraitProcessor object.hPortraitID3_FACE_PORTRAITin The portrait to be updated.hImageID3_FACE_IMAGEin The source image.
Returns