LivenessDetectionModel
import com.sybrin.livenessdetection.models.livenessDetectionModels.LivenessDetectionModel
Summary
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. |
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 | |
<T extends LivenessDetectionModel> | Value is |
getCroppedSelfieImage
public Bitmap getCroppedSelfieImage ()
Returns a cropped face image found during the liveness detection process.
Returns | |
Bitmap | Value is |
getCroppedSelfieImagePath
public String getCroppedSelfieImagePath ()
Returns the file path of the saved cropped face image found during the liveness detection process.
Returns | |
String | Value is |
getSelfieImage
public Bitmap getSelfieImage ()
Returns selfie image captured during the liveness detection process.
Returns | |
Bitmap | Value is |
getSelfieImagePath
public String getSelfieImagePath()
Returns the file path of the saved portrait image.
Returns | |
String | Value is |
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 |
Last updated