FacialRecognitionModel
import com.sybrin.facialrecognition.models.FacialRecognitionModel
Summary
Public methods
float
Bitmap
String
String
Bitmap
String
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 recognition algorithm is that the presented face is the same as the face that was used for training.
Returns
float
0.0
if faces are 0% similar, 1.0
if faces are 100% similar.
getCroppedRecognizedImage
public Bitmap getCroppedRecognizedImage ()
Returns a cropped version of the image captured when recognition occurred.
Returns
Bitmap
Value cannot be null
.
getCroppedRecognizedImagePath
public String getCroppedRecognizedImagePath ()
Returns the file path of the cropped version of the image captured when recognition occurred.
Returns
String
Value is null
if image was not saved.
getIdentifier
public Bitmap getIdentifier ()
Returns the identifier used to locate the facial recognition model online.
Returns
String
Value cannot be null
.
getRecognizedImage
public Bitmap getRecognizedImage ()
Returns the image captured when recognition occurred.
Returns
Bitmap
Value cannot be null
.
getRecognizedImagePath
public String getRecognizedImagePath ()
Returns the file path of the image captured when recognition occurred.
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