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)
-
Method Summary
Modifier and Type Method Description double
getConfidence()
double
getBlurriness()
boolean
isBright()
Boolean
getHasFaceMask()
boolean
isError()
int
getErrorCode()
void
setErrorCode(int errorCode)
boolean
isHasLenses()
Boolean
hasFaceMask()
boolean
isHasClosedEyes()
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)
-
isHasLenses
boolean isHasLenses()
-
hasFaceMask
Boolean hasFaceMask()
-
isHasClosedEyes
boolean isHasClosedEyes()
-
overrideConfidence
void overrideConfidence(double newConfidence)
This method is used to bypass liveness check result
-
parse
static ResponseAddFace parse(ResponseBody responseBody)
-
-
-
-