public class Portrait
extends java.lang.Object
implements java.lang.AutoCloseable, java.io.Serializable
| Constructor and Description |
|---|
Portrait()
Creates a new instance of the Portrait class.
|
Portrait(long handle)
Creates a new instance of the Portrait class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
clear()
Clears all attributes.
|
Portrait |
clone()
Creates a copy of the Portrait object.
|
void |
close()
Releases all resources used by this Portrait.
|
protected void |
finalize()
Finalizer for this class.
|
static Portrait |
fromBuffer(byte[] data)
Imports the portrait object from a buffer.
|
int |
getAge()
Gets the estimated age of the subject. -1 if not computed.
|
BackgroundUniformity |
getBackgroundUniformity()
Gets the result of the background uniformity computation.
|
FaceExpression |
getExpression()
Gets the estimated expression of the subject (angriness, disgust, fear, happiness, sadness, surprise, or neutral).
|
EyeGaze |
getEyeGaze()
Gets the estimated gaze.
|
int |
getFaceId()
Gets the unique face ID.
|
int |
getFaceMask()
Gets the value indicating whether a face mask is detected.
|
FaceTemplate |
getFaceTemplate()
Gets the face template.
|
int |
getGenderMale()
Gets the value indicating whether the subject is a male. -1 if not computed.
|
GeometricAttributes |
getGeometricAttributes()
Gets the geometric attributes.
|
int |
getGlasses()
Gets the value indicating whether the subject wears glasses. -1 if not computed.
|
long |
getHandle()
Gets the native handle.
|
int |
getHat()
Gets the value indicating whether the subject wears a hat. -1 if not computed.
|
Image |
getImage()
Gets the source image.
|
Point |
getImageCenter()
Gets the center of the portrait in the source image.
|
float |
getImageScale()
Gets the scale to be applied to the source image to display the portrait.
|
Point |
getImageTranslation()
Gets the translation to be applied to the source image to display the portrait.
|
PortraitInstruction |
getInstruction()
Gets the instruction to be given to the user for portrait capture.
|
PointList |
getLandmarks()
Gets the 68-points landmarks.
|
int |
getLeftEyeOpening()
Gets the value estimating the opening of the left eye. -1 if not computed.
|
int |
getLeftEyeVisibility()
Gets the value estimating the visibility of the left eye. -1 if not computed.
|
int |
getLookStraightScore()
Gets the value estimating if the user is looking straight towards the camera. -1 if not computed.
|
int |
getMakeup()
Gets the value indicating whether makeup is detected. -1 if not computed.
|
int |
getMouthOpening()
Gets the value indicating estimating the opening of the mouth. -1 if not computed.
|
int |
getMouthVisibility()
Gets the value estimating the visibility of the mouth. -1 if not computed.
|
int |
getNoseVisibility()
Gets the value estimating the visibility of the nose. -1 if not computed.
|
int |
getPadScore()
Gets the score of the presentation attack detection.
|
PadStatus |
getPadStatus()
Gets the status of the presentation attack detection.
|
PhotographicAttributes |
getPhotographicAttributes()
Gets the photographic attributes.
|
FacePose |
getPose()
Gets the face pose.
|
PortraitQualityCheckpoints |
getQualityCheckpoints()
Gets the quality check points of the portrait.
|
int |
getQualityScore()
Gets the unified quality score, from 0 to 100. -1 if not computed.
|
int |
getRightEyeOpening()
Gets the value estimating the opening of the left eye. -1 if not computed.
|
int |
getRightEyeVisibility()
Gets the value estimating the visibility of the right eye. -1 if not computed.
|
int |
getSmile()
Gets the value indicating whether the subject is smiling. -1 if not computed.
|
PortraitStatus |
getStatus()
Gets the status of the portrait.
|
int |
getSubjectPosition()
Gets the position of the subject in the image.
|
TrackedFace |
getTrackedFace()
Gets the tracked face.
|
byte[] |
toBuffer()
Exports the portrait to a buffer.
|
public Portrait()
throws FaceException
FaceException - An error has occurred during Face Library execution.public Portrait(long handle)
throws FaceException
handle - Handle to the Portrait.FaceException - An error has occurred during Face Library execution.public void close()
close in interface java.lang.AutoCloseableprotected void finalize()
finalize in class java.lang.Objectpublic long getHandle()
public Portrait clone() throws FaceException
clone in class java.lang.ObjectFaceException - An error has occurred during Face Library execution.public int getAge()
throws FaceException
FaceException - An error has occurred during Face Library execution.public BackgroundUniformity getBackgroundUniformity() throws FaceException
FaceException - An error has occurred during Face Library execution.public FaceExpression getExpression() throws FaceException
FaceException - An error has occurred during Face Library execution.public EyeGaze getEyeGaze() throws FaceException
FaceException - An error has occurred during Face Library execution.public int getFaceId()
throws FaceException
FaceException - An error has occurred during Face Library execution.public int getFaceMask()
throws FaceException
FaceException - An error has occurred during Face Library execution.public FaceTemplate getFaceTemplate() throws FaceException
FaceException - An error has occurred during Face Library execution.public int getGenderMale()
throws FaceException
FaceException - An error has occurred during Face Library execution.public GeometricAttributes getGeometricAttributes() throws FaceException
FaceException - An error has occurred during Face Library execution.public int getGlasses()
throws FaceException
FaceException - An error has occurred during Face Library execution.public int getHat()
throws FaceException
FaceException - An error has occurred during Face Library execution.public Image getImage() throws FaceException
FaceException - An error has occurred during Face Library execution.public Point getImageCenter() throws FaceException
FaceException - An error has occurred during Face Library execution.public float getImageScale()
throws FaceException
FaceException - An error has occurred during Face Library execution.public Point getImageTranslation() throws FaceException
FaceException - An error has occurred during Face Library execution.public PortraitInstruction getInstruction() throws FaceException
FaceException - An error has occurred during Face Library execution.public PointList getLandmarks() throws FaceException
FaceException - An error has occurred during Face Library execution.public int getLeftEyeOpening()
throws FaceException
FaceException - An error has occurred during Face Library execution.public int getLeftEyeVisibility()
throws FaceException
FaceException - An error has occurred during Face Library execution.public int getLookStraightScore()
throws FaceException
FaceException - An error has occurred during Face Library execution.public int getMakeup()
throws FaceException
FaceException - An error has occurred during Face Library execution.public int getMouthOpening()
throws FaceException
FaceException - An error has occurred during Face Library execution.public int getMouthVisibility()
throws FaceException
FaceException - An error has occurred during Face Library execution.public int getNoseVisibility()
throws FaceException
FaceException - An error has occurred during Face Library execution.public int getPadScore()
throws FaceException
FaceException - An error has occurred during Face Library execution.public PadStatus getPadStatus() throws FaceException
FaceException - An error has occurred during Face Library execution.public PhotographicAttributes getPhotographicAttributes() throws FaceException
FaceException - An error has occurred during Face Library execution.public FacePose getPose() throws FaceException
FaceException - An error has occurred during Face Library execution.public PortraitQualityCheckpoints getQualityCheckpoints() throws FaceException
FaceException - An error has occurred during Face Library execution.public int getQualityScore()
throws FaceException
FaceException - An error has occurred during Face Library execution.public int getRightEyeOpening()
throws FaceException
FaceException - An error has occurred during Face Library execution.public int getRightEyeVisibility()
throws FaceException
FaceException - An error has occurred during Face Library execution.public int getSmile()
throws FaceException
FaceException - An error has occurred during Face Library execution.public PortraitStatus getStatus() throws FaceException
FaceException - An error has occurred during Face Library execution.public int getSubjectPosition()
throws FaceException
FaceException - An error has occurred during Face Library execution.public TrackedFace getTrackedFace() throws FaceException
FaceException - An error has occurred during Face Library execution.public void clear()
throws FaceException
FaceException - An error has occurred during Face Library execution.public static Portrait fromBuffer(byte[] data) throws FaceException
data - Buffer to import the portrait object from.FaceException - An error has occurred during Face Library execution.public byte[] toBuffer()
throws FaceException
FaceException - An error has occurred during Face Library execution.Copyright © id3 Technologies. All rights reserved. eu.id3.face