FacialComparisonResult
import com.sybrin.facecomparison.models.FacialComparisonResult
Summary
Public methods
float
Bitmap
String
String
String
boolean
String
float
void
Saves all images within the model to the local device and populates all path fields.
Public methods
getConfidence
public Bitmap getConfidence ()
Returns a floating point value showing how confident the facial comparison algorithm is that the two faces presented are similar.
Returns
float
0.0
if faces are 0% similar, 1.0
if faces are 100% similar.
getFaceImage
public Bitmap getFaceImage ()
Returns the face image used for facial comparison.
Returns
Bitmap
Value cannot be null
.
getFaceImagePath
public String getFaceImagePath ()
Returns the file path of the face image used for facial comparison.
Returns
String
Value is null
if image was not saved.
getFaceName
public String getFaceName ()
Returns the file name of the face image used for facial comparison.
Returns
String
Value cannot be null.
getMessage
public String getMessage ()
Returns a message indicating the status of the facial comparison process.
Returns
String
Value cannot be null.
getResult
public String getResult ()
Returns a boolean value indicating whether the facial comparison algorithm estimates that the compared faces are that of the same person or not.
Returns
boolean
true
if faces are that of the same person, false
otherwise.
getTargetName
public String getTargetName ()
Returns the file name of the target image used for facial comparison.
Returns
String
Value cannot be null.
getTimeTakenMilliseconds
public String getTimeTakenMilliseconds ()
Returns the time it took to perform the facial comparison operation in milliseconds.
Returns
float
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