Class ResponseAddFace
-
- All Implemented Interfaces:
public class ResponseAddFace
-
-
Field Summary
Fields Modifier and Type Field Description public double
confidence
public double
blurriness
public boolean
isBright
public Boolean
hasFaceMask
public boolean
isError
public int
errorCode
-
Constructor Summary
Constructors Constructor Description ResponseAddFace()
ResponseAddFace(Throwable error)
ResponseAddFace(double confidence, double blurriness, boolean hasLenses, boolean isBright, Boolean hasFaceMask, boolean hasClosedEyes, boolean hasHeadCover)
-
Method Summary
Modifier and Type Method Description double
getConfidence()
double
getBlurriness()
boolean
isBright()
Boolean
getHasFaceMask()
boolean
isError()
int
getErrorCode()
void
setErrorCode(int errorCode)
boolean
hasLenses()
boolean
hasFaceMask()
boolean
hasClosedEyes()
boolean
hasHeadCover()
void
overrideConfidence(double newConfidence)
This method is used to bypass liveness check result String
toString()
static ResponseAddFace
parse(ResponseBody responseBody)
-
-
Method Detail
-
getConfidence
double getConfidence()
-
getBlurriness
double getBlurriness()
-
isBright
boolean isBright()
-
getHasFaceMask
Boolean getHasFaceMask()
-
isError
boolean isError()
-
getErrorCode
int getErrorCode()
-
setErrorCode
void setErrorCode(int errorCode)
-
hasLenses
boolean hasLenses()
-
hasFaceMask
boolean hasFaceMask()
-
hasClosedEyes
boolean hasClosedEyes()
-
hasHeadCover
boolean hasHeadCover()
-
overrideConfidence
void overrideConfidence(double newConfidence)
This method is used to bypass liveness check result
-
parse
static ResponseAddFace parse(ResponseBody responseBody)
-
-
-
-