public class FacePad
extends java.lang.Object
implements java.lang.AutoCloseable, java.io.Serializable
| Constructor and Description |
|---|
FacePad()
Creates a new instance of the FacePad class.
|
FacePad(long handle)
Creates a new instance of the FacePad class.
|
| Modifier and Type | Method and Description |
|---|---|
void |
close()
Releases all resources used by this FacePad.
|
int |
computeBlurrinessScore(Image image,
DetectedFace detectedFace)
Computes a blurriness score for a color image.
|
ColorBasedPadResult |
computeColorBasedScore(Image image,
DetectedFace detectedFace)
Computes the PAD score and confidence of a detected face using only the color image.
|
int |
computeDepthBasedScore(Image image,
DetectedFace detectedFace)
Computes the PAD score of a detected face using a depth map image.
|
DetectedFaceAttackSupport |
detectAttackSupport(Image image,
DetectedFace detectedFace)
Detects if an attack support surrounds the detected face.
|
protected void |
finalize()
Finalizer for this class.
|
int |
getAttackSupportDetectorConfidenceThreshold()
Gets the attack support detector confidence threshold, in the range [0;100].
|
long |
getHandle()
Gets the native handle.
|
void |
setAttackSupportDetectorConfidenceThreshold(int attackSupportDetectorConfidenceThreshold)
Sets the attack support detector confidence threshold, in the range [0;100].
|
public FacePad()
throws FaceException
FaceException - An error has occurred during Face Library execution.public FacePad(long handle)
throws FaceException
handle - Handle to the FacePad.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 getAttackSupportDetectorConfidenceThreshold()
throws FaceException
FaceException - An error has occurred during Face Library execution.public void setAttackSupportDetectorConfidenceThreshold(int attackSupportDetectorConfidenceThreshold)
throws FaceException
attackSupportDetectorConfidenceThreshold - Attack support detector confidence threshold, in the range [0;100].FaceException - An error has occurred during Face Library execution.public int computeBlurrinessScore(Image image, DetectedFace detectedFace) throws FaceException
image - Source image to process.detectedFace - Detected face to process.FaceException - An error has occurred during Face Library execution.public ColorBasedPadResult computeColorBasedScore(Image image, DetectedFace detectedFace) throws FaceException
image - Source image to process.detectedFace - Detected face to process.FaceException - An error has occurred during Face Library execution.public int computeDepthBasedScore(Image image, DetectedFace detectedFace) throws FaceException
image - Source image to process. Must be Grayscale 16 Bits.detectedFace - Detected face to process.FaceException - An error has occurred during Face Library execution.public DetectedFaceAttackSupport detectAttackSupport(Image image, DetectedFace detectedFace) throws FaceException
image - Source image to process.detectedFace - Detected face to process.FaceException - An error has occurred during Face Library execution.Copyright © id3 Technologies. All rights reserved. eu.id3.face