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