LivenessDetectionModel
import com.sybrin.livenessdetection.models.livenessDetectionModels.LivenessDetectionModel
Summary
Public methods
Casts the current model to the type specified by the class parameter.
Bitmap
String
Bitmap
String
void
Saves all images within the model to the local device and populates all path fields.
Public methods
castToModel
public <T extends
LivenessDetectionModel
> castToModel (Class<T> class)
Casts the current model to the type specified by the class parameter. The specified type must be a child of LivenessDetectionModel.
Parameters
class
Class<T>: Type of class the result is being cast to.
Returns
Value is null
if casting was not possible.
getCroppedSelfieImage
public Bitmap getCroppedSelfieImage ()
Returns a cropped face image found during the liveness detection process.
Returns
Bitmap
Value is null
if selfie action was not present during liveness detection.
getCroppedSelfieImagePath
public String getCroppedSelfieImagePath ()
Returns the file path of the saved cropped face image found during the liveness detection process.
Returns
String
Value is null
if image was not saved.
getSelfieImage
public Bitmap getSelfieImage ()
Returns selfie image captured during the liveness detection process.
Returns
Bitmap
Value is null
if selfie action was not present during liveness detection.
getSelfieImagePath
public String getSelfieImagePath()
Returns the file path of the saved portrait image.
Returns
String
Value is null
if image was not saved.
saveImages
public void saveImage (Context context)
Saves all images within the model to the local device and populates all path fields.
Parameters
Context
Value cannot be null
.
Last updated