public class PortraitProcessor
extends java.lang.Object
implements java.lang.AutoCloseable, java.io.Serializable
| Constructor and Description |
|---|
PortraitProcessor()
Creates a new instance of the PortraitProcessor class.
|
PortraitProcessor(long handle)
Creates a new instance of the PortraitProcessor class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Releases all resources used by this PortraitProcessor.
|
Portrait |
createPortrait(Image image)
Analyses an image and creates a portrait with the first detected face or the currently tracked face if the update parameter is activated.
|
Image |
cropIcaoPortrait(Portrait portrait)
Creates an ICAO-compliant portrait image by cropping the source image around the detected face.
|
Image |
cropPortrait(Portrait portrait)
Creates a portrait image by cropping the source image around the detected face.
|
void |
detectOcclusions(Portrait portrait)
Detects occlusions on the subject's face.
|
void |
detectPresentationAttack(Portrait portrait)
Detects a possible presentation attack.
|
void |
estimateAge(Portrait portrait)
Estimates the age of the person.
|
void |
estimateBackgroundUniformity(Portrait portrait)
Checks the background uniformity of the specified portrait.
|
void |
estimateExpression(Portrait portrait)
Estimates the subject's expression on the specified portrait.
|
void |
estimateFaceAttributes(Portrait portrait)
Estimates the face attributes of the specified portrait.
|
void |
estimateGeometryQuality(Portrait portrait)
Estimates the geometric quality of the specified portrait according to the ICAO portrait parameters.
|
void |
estimatePhotographicQuality(Portrait portrait)
Etimates the photographic quality of the specified portrait.
|
protected void |
finalize()
Finalizer for this class.
|
int |
getBackgroundColorUniformityThreshold()
Gets the background color uniformity threshold.
|
int |
getBackgroundStructureUniformityThreshold()
Gets the background structure uniformity threshold.
|
float |
getCropAspectRatio()
Gets the aspect ratio (height to width) of the cropped portrait image.
|
float |
getCropEyePositionRatio()
Gets the ratio between the vertical eye position and the image height for ICAO portrait cropping.
|
float |
getCropIodRatio()
Gets the ratio between the interocular distance (IOD) and the image width for ICAO portrait cropping.
|
float |
getCropMargin()
Gets the relative margin around the face for basic portrait cropping.
|
int |
getDynamicRangeThreshold()
Gets the face dynamic range threshold.
|
int |
getEqualBrightnessThreshold()
Gets the equal brightness threshold.
|
int |
getExpressionSensibility()
Gets the sensibility of the expression classifier.
|
int |
getEyeOcclusionThreshold()
Gets the visible eye threshold.
|
int |
getEyeOpeningThreshold()
Gets the eye opening threshold.
|
int |
getFaceDetectionImageSize()
Gets the the size, in pixels, of the downscaled image used for face detection.
|
FaceModel |
getFaceDetectionModel()
Gets the specifies the model used to detect and track faces.
|
int |
getFaceDetectionThreshold()
Gets the specifies the face detection confidence threshold, in the range is [0;100].
|
FaceModel |
getFaceEncodingModel()
Gets the model used to create features and assess consistancy among views of a given face.
|
int |
getFaceMaskThreshold()
Gets the face mask detection threshold.
|
int |
getGlassesThreshold()
Gets the glasses detection threshold.
|
long |
getHandle()
Gets the native handle.
|
int |
getHatThreshold()
Gets the threshold for confirming that the person is wearing a hat.
|
int |
getMakeupThreshold()
Gets the make-up detection threshold.
|
int |
getMaleThreshold()
Gets the male gender detection threshold.
|
int |
getMaximumEyeGazeX()
Gets the maximum value of the eye gaze alongside the X axis.
|
int |
getMaximumEyeGazeY()
Gets the maximum value of the eye gaze alongside the Y axis.
|
int |
getMaximumHeadHeightRatio()
Gets the maximum distance between the base of the chin and the crown is less than 80% of the total height of the image.
|
int |
getMaximumHeadWidthRatio()
Gets the value indicating if the image width is conform to the (image width / head width) ratio of 7:5.
|
int |
getMaximumHorizontalPosition()
Gets the value indicating if the head is correctly centered horizontally.
|
int |
getMaximumIod()
Gets the maximum interocular distance (IOD), in pixels.
|
float |
getMaximumPitchAngle()
Gets the maximum head pitch angle, in degrees, for frontal positioning.
|
float |
getMaximumRollAngle()
Gets the maximum head roll angle, in degrees, for frontal positioning.
|
int |
getMaximumVerticalPosition()
Gets the maximum distance from the bottom edge of the image to the imaginary line passing through the center of the eyes is between 50% - 70% of the total vertical length of the image.
|
float |
getMaximumYawAngle()
Gets the maximum head yaw angle, in degrees, for frontal positioning.
|
int |
getMinimumHeadHeightRatio()
Gets the minimum distance between the base of the chin and the crown is less than 80% of the total height of the image.
|
int |
getMinimumHeadWidthRatio()
Gets the value indicating if the image width is conform to the (image width / head width) ratio of 7:5.
|
int |
getMinimumHorizontalPosition()
Gets the value indicating if the head is correctly centered horizontally.
|
int |
getMinimumIod()
Gets the minimum intra-occular distance, in pixels.
|
int |
getMinimumVerticalPosition()
Gets the minimum distance from the bottom edge of the image to the imaginary line passing through the center of the eyes is between 50% - 70% of the total vertical length of the image.
|
int |
getMouthOcclusionThreshold()
Gets the mouth occlusion threshold.
|
int |
getMouthOpenThreshold()
Gets the mouth opening threshold.
|
int |
getNaturalSkinColorThreshold()
Gets the natural skin color threshold.
|
int |
getNoFlashReflectionThreshold()
Gets the flash reflexion detection threshold.
|
int |
getNoiseThreshold()
Gets the threshold for confirming the presence of noise in the image.
|
int |
getNoseOcclusionThreshold()
Gets the nose occlusion threshold.
|
int |
getOverExposureThreshold()
Gets the over exposure threshold.
|
int |
getPadThreshold()
Gets the presentation attack detection threshold, from 0 to 100.
|
int |
getPixelationThreshold()
Gets the pixelation detection threshold.
|
int |
getRedEyeThreshold()
Gets the threshold for confirming the presence of red eyes.
|
int |
getResolutionThreshold()
Gets the threshold indicating whether the image resolution is sufficient.
|
int |
getSharpnessThreshold()
Gets the sharpness threshold.
|
int |
getSmileThreshold()
Gets the smile threshold.
|
int |
getThreadCount()
Gets the number of threads to be used for portrait processing.
|
int |
getTintedGlassThreshold()
Gets the tinted glass detection threshold.
|
int |
getTrackerMatchingThreshold()
Gets the minimum match score to reach to preserve the ID of a tracked face between frame 't-1' and frame 't'.
|
int |
getTrackerMaximumFaceAge()
Gets the maximum number of consecutive non-detections to be reached before deleting a tracked face.
|
int |
getTrackerMinimumFaceAge()
Gets the minimum number of consecutive detections to reach before creating a tracked face.
|
int |
getTrackerNmsIouThreshold()
Gets the non-maximum suppression (NMS) intersection-over-union (IOU) threshold, in the range [0;100].
|
int |
getUnderExposureThreshold()
Gets the under exposure threshold.
|
void |
removeBackground(Image image,
int red,
int green,
int blue)
Removes the background on the specified portrait image.
|
void |
reset()
Resets the face tracker.
|
void |
setBackgroundColorUniformityThreshold(int backgroundColorUniformityThreshold)
Sets the background color uniformity threshold.
|
void |
setBackgroundStructureUniformityThreshold(int backgroundStructureUniformityThreshold)
Sets the background structure uniformity threshold.
|
void |
setCropAspectRatio(float cropAspectRatio)
Sets the aspect ratio (height to width) of the cropped portrait image.
|
void |
setCropEyePositionRatio(float cropEyePositionRatio)
Sets the ratio between the vertical eye position and the image height for ICAO portrait cropping.
|
void |
setCropIodRatio(float cropIodRatio)
Sets the ratio between the interocular distance (IOD) and the image width for ICAO portrait cropping.
|
void |
setCropMargin(float cropMargin)
Sets the relative margin around the face for basic portrait cropping.
|
void |
setDynamicRangeThreshold(int dynamicRangeThreshold)
Sets the face dynamic range threshold.
|
void |
setEqualBrightnessThreshold(int equalBrightnessThreshold)
Sets the equal brightness threshold.
|
void |
setExpressionSensibility(int expressionSensibility)
Sets the sensibility of the expression classifier.
|
void |
setEyeOcclusionThreshold(int eyeOcclusionThreshold)
Sets the visible eye threshold.
|
void |
setEyeOpeningThreshold(int eyeOpeningThreshold)
Sets the eye opening threshold.
|
void |
setFaceDetectionImageSize(int faceDetectionImageSize)
Sets the the size, in pixels, of the downscaled image used for face detection.
|
void |
setFaceDetectionModel(FaceModel faceDetectionModel)
Sets the specifies the model used to detect and track faces.
|
void |
setFaceDetectionThreshold(int faceDetectionThreshold)
Sets the specifies the face detection confidence threshold, in the range is [0;100].
|
void |
setFaceEncodingModel(FaceModel faceEncodingModel)
Sets the model used to create features and assess consistancy among views of a given face.
|
void |
setFaceMaskThreshold(int faceMaskThreshold)
Sets the face mask detection threshold.
|
void |
setGlassesThreshold(int glassesThreshold)
Sets the glasses detection threshold.
|
void |
setHatThreshold(int hatThreshold)
Sets the threshold for confirming that the person is wearing a hat.
|
void |
setMakeupThreshold(int makeupThreshold)
Sets the make-up detection threshold.
|
void |
setMaleThreshold(int maleThreshold)
Sets the male gender detection threshold.
|
void |
setMaximumEyeGazeX(int maximumEyeGazeX)
Sets the maximum value of the eye gaze alongside the X axis.
|
void |
setMaximumEyeGazeY(int maximumEyeGazeY)
Sets the maximum value of the eye gaze alongside the Y axis.
|
void |
setMaximumHeadHeightRatio(int maximumHeadHeightRatio)
Sets the maximum distance between the base of the chin and the crown is less than 80% of the total height of the image.
|
void |
setMaximumHeadWidthRatio(int maximumHeadWidthRatio)
Sets the value indicating if the image width is conform to the (image width / head width) ratio of 7:5.
|
void |
setMaximumHorizontalPosition(int maximumHorizontalPosition)
Sets the value indicating if the head is correctly centered horizontally.
|
void |
setMaximumIod(int maximumIod)
Sets the maximum interocular distance (IOD), in pixels.
|
void |
setMaximumPitchAngle(float maximumPitchAngle)
Sets the maximum head pitch angle, in degrees, for frontal positioning.
|
void |
setMaximumRollAngle(float maximumRollAngle)
Sets the maximum head roll angle, in degrees, for frontal positioning.
|
void |
setMaximumVerticalPosition(int maximumVerticalPosition)
Sets the maximum distance from the bottom edge of the image to the imaginary line passing through the center of the eyes is between 50% - 70% of the total vertical length of the image.
|
void |
setMaximumYawAngle(float maximumYawAngle)
Sets the maximum head yaw angle, in degrees, for frontal positioning.
|
void |
setMinimumHeadHeightRatio(int minimumHeadHeightRatio)
Sets the minimum distance between the base of the chin and the crown is less than 80% of the total height of the image.
|
void |
setMinimumHeadWidthRatio(int minimumHeadWidthRatio)
Sets the value indicating if the image width is conform to the (image width / head width) ratio of 7:5.
|
void |
setMinimumHorizontalPosition(int minimumHorizontalPosition)
Sets the value indicating if the head is correctly centered horizontally.
|
void |
setMinimumIod(int minimumIod)
Sets the minimum intra-occular distance, in pixels.
|
void |
setMinimumVerticalPosition(int minimumVerticalPosition)
Sets the minimum distance from the bottom edge of the image to the imaginary line passing through the center of the eyes is between 50% - 70% of the total vertical length of the image.
|
void |
setMouthOcclusionThreshold(int mouthOcclusionThreshold)
Sets the mouth occlusion threshold.
|
void |
setMouthOpenThreshold(int mouthOpenThreshold)
Sets the mouth opening threshold.
|
void |
setNaturalSkinColorThreshold(int naturalSkinColorThreshold)
Sets the natural skin color threshold.
|
void |
setNoFlashReflectionThreshold(int noFlashReflectionThreshold)
Sets the flash reflexion detection threshold.
|
void |
setNoiseThreshold(int noiseThreshold)
Sets the threshold for confirming the presence of noise in the image.
|
void |
setNoseOcclusionThreshold(int noseOcclusionThreshold)
Sets the nose occlusion threshold.
|
void |
setOverExposureThreshold(int overExposureThreshold)
Sets the over exposure threshold.
|
void |
setPadThreshold(int padThreshold)
Sets the presentation attack detection threshold, from 0 to 100.
|
void |
setPixelationThreshold(int pixelationThreshold)
Sets the pixelation detection threshold.
|
void |
setRedEyeThreshold(int redEyeThreshold)
Sets the threshold for confirming the presence of red eyes.
|
void |
setResolutionThreshold(int resolutionThreshold)
Sets the threshold indicating whether the image resolution is sufficient.
|
void |
setSharpnessThreshold(int sharpnessThreshold)
Sets the sharpness threshold.
|
void |
setSmileThreshold(int smileThreshold)
Sets the smile threshold.
|
void |
setThreadCount(int threadCount)
Sets the number of threads to be used for portrait processing.
|
void |
setTintedGlassThreshold(int tintedGlassThreshold)
Sets the tinted glass detection threshold.
|
void |
setTrackerMatchingThreshold(int trackerMatchingThreshold)
Sets the minimum match score to reach to preserve the ID of a tracked face between frame 't-1' and frame 't'.
|
void |
setTrackerMaximumFaceAge(int trackerMaximumFaceAge)
Sets the maximum number of consecutive non-detections to be reached before deleting a tracked face.
|
void |
setTrackerMinimumFaceAge(int trackerMinimumFaceAge)
Sets the minimum number of consecutive detections to reach before creating a tracked face.
|
void |
setTrackerNmsIouThreshold(int trackerNmsIouThreshold)
Sets the non-maximum suppression (NMS) intersection-over-union (IOU) threshold, in the range [0;100].
|
void |
setUnderExposureThreshold(int underExposureThreshold)
Sets the under exposure threshold.
|
void |
updatePortrait(Portrait portrait,
Image image)
Analyses an image and updates the specified portrait with the first detected face or the currently tracked face.
|
public PortraitProcessor()
throws FaceException
FaceException - An error has occurred during Face Library execution.public PortraitProcessor(long handle)
throws FaceException
handle - Handle to the PortraitProcessor.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 int getBackgroundColorUniformityThreshold()
throws FaceException
FaceException - An error has occurred during Face Library execution.public void setBackgroundColorUniformityThreshold(int backgroundColorUniformityThreshold)
throws FaceException
backgroundColorUniformityThreshold - Background color uniformity threshold.FaceException - An error has occurred during Face Library execution.public int getBackgroundStructureUniformityThreshold()
throws FaceException
FaceException - An error has occurred during Face Library execution.public void setBackgroundStructureUniformityThreshold(int backgroundStructureUniformityThreshold)
throws FaceException
backgroundStructureUniformityThreshold - Background structure uniformity threshold.FaceException - An error has occurred during Face Library execution.public float getCropAspectRatio()
throws FaceException
FaceException - An error has occurred during Face Library execution.public void setCropAspectRatio(float cropAspectRatio)
throws FaceException
cropAspectRatio - Aspect ratio (height to width) of the cropped portrait image.FaceException - An error has occurred during Face Library execution.public float getCropEyePositionRatio()
throws FaceException
FaceException - An error has occurred during Face Library execution.public void setCropEyePositionRatio(float cropEyePositionRatio)
throws FaceException
cropEyePositionRatio - Ratio between the vertical eye position and the image height for ICAO portrait cropping. Must be in the range ]0;1[.FaceException - An error has occurred during Face Library execution.public float getCropIodRatio()
throws FaceException
FaceException - An error has occurred during Face Library execution.public void setCropIodRatio(float cropIodRatio)
throws FaceException
cropIodRatio - Ratio between the interocular distance (IOD) and the image width for ICAO portrait cropping. Must be in the range ]0;1[.FaceException - An error has occurred during Face Library execution.public float getCropMargin()
throws FaceException
FaceException - An error has occurred during Face Library execution.public void setCropMargin(float cropMargin)
throws FaceException
cropMargin - Relative margin around the face for basic portrait cropping.FaceException - An error has occurred during Face Library execution.public int getDynamicRangeThreshold()
throws FaceException
FaceException - An error has occurred during Face Library execution.public void setDynamicRangeThreshold(int dynamicRangeThreshold)
throws FaceException
dynamicRangeThreshold - Face dynamic range threshold.FaceException - An error has occurred during Face Library execution.public int getEqualBrightnessThreshold()
throws FaceException
FaceException - An error has occurred during Face Library execution.public void setEqualBrightnessThreshold(int equalBrightnessThreshold)
throws FaceException
equalBrightnessThreshold - Equal brightness threshold.FaceException - An error has occurred during Face Library execution.public int getExpressionSensibility()
throws FaceException
FaceException - An error has occurred during Face Library execution.public void setExpressionSensibility(int expressionSensibility)
throws FaceException
expressionSensibility - Sensibility of the expression classifier.FaceException - An error has occurred during Face Library execution.public int getEyeOcclusionThreshold()
throws FaceException
FaceException - An error has occurred during Face Library execution.public void setEyeOcclusionThreshold(int eyeOcclusionThreshold)
throws FaceException
eyeOcclusionThreshold - Visible eye threshold.FaceException - An error has occurred during Face Library execution.public int getEyeOpeningThreshold()
throws FaceException
FaceException - An error has occurred during Face Library execution.public void setEyeOpeningThreshold(int eyeOpeningThreshold)
throws FaceException
eyeOpeningThreshold - Eye opening threshold.FaceException - An error has occurred during Face Library execution.public int getFaceDetectionImageSize()
throws FaceException
FaceException - An error has occurred during Face Library execution.public void setFaceDetectionImageSize(int faceDetectionImageSize)
throws FaceException
faceDetectionImageSize - The size, in pixels, of the downscaled image used for face detection.FaceException - An error has occurred during Face Library execution.public FaceModel getFaceDetectionModel() throws FaceException
FaceException - An error has occurred during Face Library execution.public void setFaceDetectionModel(FaceModel faceDetectionModel) throws FaceException
faceDetectionModel - Specifies the model used to detect and track faces.FaceException - An error has occurred during Face Library execution.public int getFaceDetectionThreshold()
throws FaceException
FaceException - An error has occurred during Face Library execution.public void setFaceDetectionThreshold(int faceDetectionThreshold)
throws FaceException
faceDetectionThreshold - Specifies the face detection confidence threshold, in the range is [0;100].FaceException - An error has occurred during Face Library execution.public FaceModel getFaceEncodingModel() throws FaceException
FaceException - An error has occurred during Face Library execution.public void setFaceEncodingModel(FaceModel faceEncodingModel) throws FaceException
faceEncodingModel - Model used to create features and assess consistancy among views of a given face.FaceException - An error has occurred during Face Library execution.public int getFaceMaskThreshold()
throws FaceException
FaceException - An error has occurred during Face Library execution.public void setFaceMaskThreshold(int faceMaskThreshold)
throws FaceException
faceMaskThreshold - Face mask detection threshold.FaceException - An error has occurred during Face Library execution.public int getGlassesThreshold()
throws FaceException
FaceException - An error has occurred during Face Library execution.public void setGlassesThreshold(int glassesThreshold)
throws FaceException
glassesThreshold - Glasses detection threshold.FaceException - An error has occurred during Face Library execution.public int getHatThreshold()
throws FaceException
FaceException - An error has occurred during Face Library execution.public void setHatThreshold(int hatThreshold)
throws FaceException
hatThreshold - Threshold for confirming that the person is wearing a hat.FaceException - An error has occurred during Face Library execution.public int getMakeupThreshold()
throws FaceException
FaceException - An error has occurred during Face Library execution.public void setMakeupThreshold(int makeupThreshold)
throws FaceException
makeupThreshold - Make-up detection threshold.FaceException - An error has occurred during Face Library execution.public int getMaleThreshold()
throws FaceException
FaceException - An error has occurred during Face Library execution.public void setMaleThreshold(int maleThreshold)
throws FaceException
maleThreshold - Male gender detection threshold.FaceException - An error has occurred during Face Library execution.public int getMaximumEyeGazeX()
throws FaceException
FaceException - An error has occurred during Face Library execution.public void setMaximumEyeGazeX(int maximumEyeGazeX)
throws FaceException
maximumEyeGazeX - Maximum value of the eye gaze alongside the X axis.FaceException - An error has occurred during Face Library execution.public int getMaximumEyeGazeY()
throws FaceException
FaceException - An error has occurred during Face Library execution.public void setMaximumEyeGazeY(int maximumEyeGazeY)
throws FaceException
maximumEyeGazeY - Maximum value of the eye gaze alongside the Y axis.FaceException - An error has occurred during Face Library execution.public int getMaximumHeadHeightRatio()
throws FaceException
FaceException - An error has occurred during Face Library execution.public void setMaximumHeadHeightRatio(int maximumHeadHeightRatio)
throws FaceException
maximumHeadHeightRatio - Maximum distance between the base of the chin and the crown is less than 80% of the total height of the image.FaceException - An error has occurred during Face Library execution.public int getMaximumHeadWidthRatio()
throws FaceException
FaceException - An error has occurred during Face Library execution.public void setMaximumHeadWidthRatio(int maximumHeadWidthRatio)
throws FaceException
maximumHeadWidthRatio - Value indicating if the image width is conform to the (image width / head width) ratio of 7:5.FaceException - An error has occurred during Face Library execution.public int getMaximumHorizontalPosition()
throws FaceException
FaceException - An error has occurred during Face Library execution.public void setMaximumHorizontalPosition(int maximumHorizontalPosition)
throws FaceException
maximumHorizontalPosition - Value indicating if the head is correctly centered horizontally.FaceException - An error has occurred during Face Library execution.public int getMaximumIod()
throws FaceException
FaceException - An error has occurred during Face Library execution.public void setMaximumIod(int maximumIod)
throws FaceException
maximumIod - Maximum interocular distance (IOD), in pixels.FaceException - An error has occurred during Face Library execution.public float getMaximumPitchAngle()
throws FaceException
FaceException - An error has occurred during Face Library execution.public void setMaximumPitchAngle(float maximumPitchAngle)
throws FaceException
maximumPitchAngle - Maximum head pitch angle, in degrees, for frontal positioning.FaceException - An error has occurred during Face Library execution.public float getMaximumRollAngle()
throws FaceException
FaceException - An error has occurred during Face Library execution.public void setMaximumRollAngle(float maximumRollAngle)
throws FaceException
maximumRollAngle - Maximum head roll angle, in degrees, for frontal positioning.FaceException - An error has occurred during Face Library execution.public int getMaximumVerticalPosition()
throws FaceException
FaceException - An error has occurred during Face Library execution.public void setMaximumVerticalPosition(int maximumVerticalPosition)
throws FaceException
maximumVerticalPosition - Maximum distance from the bottom edge of the image to the imaginary line passing through the center of the eyes is between 50% - 70% of the total vertical length of the image.FaceException - An error has occurred during Face Library execution.public float getMaximumYawAngle()
throws FaceException
FaceException - An error has occurred during Face Library execution.public void setMaximumYawAngle(float maximumYawAngle)
throws FaceException
maximumYawAngle - Maximum head yaw angle, in degrees, for frontal positioning.FaceException - An error has occurred during Face Library execution.public int getMinimumHeadHeightRatio()
throws FaceException
FaceException - An error has occurred during Face Library execution.public void setMinimumHeadHeightRatio(int minimumHeadHeightRatio)
throws FaceException
minimumHeadHeightRatio - Minimum distance between the base of the chin and the crown is less than 80% of the total height of the image.FaceException - An error has occurred during Face Library execution.public int getMinimumHeadWidthRatio()
throws FaceException
FaceException - An error has occurred during Face Library execution.public void setMinimumHeadWidthRatio(int minimumHeadWidthRatio)
throws FaceException
minimumHeadWidthRatio - Value indicating if the image width is conform to the (image width / head width) ratio of 7:5.FaceException - An error has occurred during Face Library execution.public int getMinimumHorizontalPosition()
throws FaceException
FaceException - An error has occurred during Face Library execution.public void setMinimumHorizontalPosition(int minimumHorizontalPosition)
throws FaceException
minimumHorizontalPosition - Value indicating if the head is correctly centered horizontally.FaceException - An error has occurred during Face Library execution.public int getMinimumIod()
throws FaceException
FaceException - An error has occurred during Face Library execution.public void setMinimumIod(int minimumIod)
throws FaceException
minimumIod - Minimum intra-occular distance, in pixels.FaceException - An error has occurred during Face Library execution.public int getMinimumVerticalPosition()
throws FaceException
FaceException - An error has occurred during Face Library execution.public void setMinimumVerticalPosition(int minimumVerticalPosition)
throws FaceException
minimumVerticalPosition - Minimum distance from the bottom edge of the image to the imaginary line passing through the center of the eyes is between 50% - 70% of the total vertical length of the image.FaceException - An error has occurred during Face Library execution.public int getMouthOcclusionThreshold()
throws FaceException
FaceException - An error has occurred during Face Library execution.public void setMouthOcclusionThreshold(int mouthOcclusionThreshold)
throws FaceException
mouthOcclusionThreshold - Mouth occlusion threshold.FaceException - An error has occurred during Face Library execution.public int getMouthOpenThreshold()
throws FaceException
FaceException - An error has occurred during Face Library execution.public void setMouthOpenThreshold(int mouthOpenThreshold)
throws FaceException
mouthOpenThreshold - Mouth opening threshold.FaceException - An error has occurred during Face Library execution.public int getNaturalSkinColorThreshold()
throws FaceException
FaceException - An error has occurred during Face Library execution.public void setNaturalSkinColorThreshold(int naturalSkinColorThreshold)
throws FaceException
naturalSkinColorThreshold - Natural skin color threshold.FaceException - An error has occurred during Face Library execution.public int getNoFlashReflectionThreshold()
throws FaceException
FaceException - An error has occurred during Face Library execution.public void setNoFlashReflectionThreshold(int noFlashReflectionThreshold)
throws FaceException
noFlashReflectionThreshold - Flash reflexion detection threshold.FaceException - An error has occurred during Face Library execution.public int getNoiseThreshold()
throws FaceException
FaceException - An error has occurred during Face Library execution.public void setNoiseThreshold(int noiseThreshold)
throws FaceException
noiseThreshold - Threshold for confirming the presence of noise in the image.FaceException - An error has occurred during Face Library execution.public int getNoseOcclusionThreshold()
throws FaceException
FaceException - An error has occurred during Face Library execution.public void setNoseOcclusionThreshold(int noseOcclusionThreshold)
throws FaceException
noseOcclusionThreshold - Nose occlusion threshold.FaceException - An error has occurred during Face Library execution.public int getOverExposureThreshold()
throws FaceException
FaceException - An error has occurred during Face Library execution.public void setOverExposureThreshold(int overExposureThreshold)
throws FaceException
overExposureThreshold - Over exposure threshold.FaceException - An error has occurred during Face Library execution.public int getPadThreshold()
throws FaceException
FaceException - An error has occurred during Face Library execution.public void setPadThreshold(int padThreshold)
throws FaceException
padThreshold - Presentation attack detection threshold, from 0 to 100.FaceException - An error has occurred during Face Library execution.public int getPixelationThreshold()
throws FaceException
FaceException - An error has occurred during Face Library execution.public void setPixelationThreshold(int pixelationThreshold)
throws FaceException
pixelationThreshold - Pixelation detection threshold.FaceException - An error has occurred during Face Library execution.public int getRedEyeThreshold()
throws FaceException
FaceException - An error has occurred during Face Library execution.public void setRedEyeThreshold(int redEyeThreshold)
throws FaceException
redEyeThreshold - Threshold for confirming the presence of red eyes.FaceException - An error has occurred during Face Library execution.public int getResolutionThreshold()
throws FaceException
FaceException - An error has occurred during Face Library execution.public void setResolutionThreshold(int resolutionThreshold)
throws FaceException
resolutionThreshold - Threshold indicating whether the image resolution is sufficient.FaceException - An error has occurred during Face Library execution.public int getSharpnessThreshold()
throws FaceException
FaceException - An error has occurred during Face Library execution.public void setSharpnessThreshold(int sharpnessThreshold)
throws FaceException
sharpnessThreshold - Sharpness threshold.FaceException - An error has occurred during Face Library execution.public int getSmileThreshold()
throws FaceException
FaceException - An error has occurred during Face Library execution.public void setSmileThreshold(int smileThreshold)
throws FaceException
smileThreshold - Smile threshold.FaceException - An error has occurred during Face Library execution.public int getThreadCount()
throws FaceException
FaceException - An error has occurred during Face Library execution.public void setThreadCount(int threadCount)
throws FaceException
threadCount - Number of threads to be used for portrait processing.FaceException - An error has occurred during Face Library execution.public int getTintedGlassThreshold()
throws FaceException
FaceException - An error has occurred during Face Library execution.public void setTintedGlassThreshold(int tintedGlassThreshold)
throws FaceException
tintedGlassThreshold - Tinted glass detection threshold.FaceException - An error has occurred during Face Library execution.public int getTrackerMatchingThreshold()
throws FaceException
FaceException - An error has occurred during Face Library execution.public void setTrackerMatchingThreshold(int trackerMatchingThreshold)
throws FaceException
trackerMatchingThreshold - Minimum match score to reach to preserve the ID of a tracked face between frame 't-1' and frame 't'.FaceException - An error has occurred during Face Library execution.public int getTrackerMaximumFaceAge()
throws FaceException
FaceException - An error has occurred during Face Library execution.public void setTrackerMaximumFaceAge(int trackerMaximumFaceAge)
throws FaceException
trackerMaximumFaceAge - Maximum number of consecutive non-detections to be reached before deleting a tracked face.FaceException - An error has occurred during Face Library execution.public int getTrackerMinimumFaceAge()
throws FaceException
FaceException - An error has occurred during Face Library execution.public void setTrackerMinimumFaceAge(int trackerMinimumFaceAge)
throws FaceException
trackerMinimumFaceAge - Minimum number of consecutive detections to reach before creating a tracked face.FaceException - An error has occurred during Face Library execution.public int getTrackerNmsIouThreshold()
throws FaceException
FaceException - An error has occurred during Face Library execution.public void setTrackerNmsIouThreshold(int trackerNmsIouThreshold)
throws FaceException
trackerNmsIouThreshold - Non-maximum suppression (NMS) intersection-over-union (IOU) threshold, in the range [0;100].FaceException - An error has occurred during Face Library execution.public int getUnderExposureThreshold()
throws FaceException
FaceException - An error has occurred during Face Library execution.public void setUnderExposureThreshold(int underExposureThreshold)
throws FaceException
underExposureThreshold - Under exposure threshold.FaceException - An error has occurred during Face Library execution.public Portrait createPortrait(Image image) throws FaceException
image - Source image.FaceException - An error has occurred during Face Library execution.public Image cropIcaoPortrait(Portrait portrait) throws FaceException
portrait - Source portrait.FaceException - An error has occurred during Face Library execution.public Image cropPortrait(Portrait portrait) throws FaceException
portrait - The portrait to extract the face from.FaceException - An error has occurred during Face Library execution.public void detectOcclusions(Portrait portrait) throws FaceException
portrait - The portrait.FaceException - An error has occurred during Face Library execution.public void detectPresentationAttack(Portrait portrait) throws FaceException
portrait - The portrait.FaceException - An error has occurred during Face Library execution.public void estimateAge(Portrait portrait) throws FaceException
portrait - The portrait.FaceException - An error has occurred during Face Library execution.public void estimateBackgroundUniformity(Portrait portrait) throws FaceException
portrait - The portrait.FaceException - An error has occurred during Face Library execution.public void estimateExpression(Portrait portrait) throws FaceException
portrait - The portrait.FaceException - An error has occurred during Face Library execution.public void estimateFaceAttributes(Portrait portrait) throws FaceException
portrait - The portrait.FaceException - An error has occurred during Face Library execution.public void estimateGeometryQuality(Portrait portrait) throws FaceException
portrait - The portrait.FaceException - An error has occurred during Face Library execution.public void estimatePhotographicQuality(Portrait portrait) throws FaceException
portrait - The portrait.FaceException - An error has occurred during Face Library execution.public void removeBackground(Image image, int red, int green, int blue) throws FaceException
image - The portrait image.red - Green channel of the background color. Must be a value from 0 to 255.green - Red channel of the background color. Must be a value from 0 to 255.blue - Blue channel of the background color. Must be a value from 0 to 255.FaceException - An error has occurred during Face Library execution.public void reset()
throws FaceException
FaceException - An error has occurred during Face Library execution.public void updatePortrait(Portrait portrait, Image image) throws FaceException
portrait - The portrait to be updated.image - The source image.FaceException - An error has occurred during Face Library execution.Copyright © id3 Technologies. All rights reserved. eu.id3.face