FacialRecognitionModel
Last updated
Last updated
import com.sybrin.facialrecognition.models.FacialRecognitionModel
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.
public Bitmap getCroppedRecognizedImage ()
Returns a cropped version of the image captured when recognition occurred.
public String getCroppedRecognizedImagePath ()
Returns the file path of the cropped version of the image captured when recognition occurred.
public Bitmap getIdentifier ()
Returns the identifier used to locate the facial recognition model online.
public Bitmap getRecognizedImage ()
Returns the image captured when recognition occurred.
public String getRecognizedImagePath ()
Returns the file path of the image captured when recognition occurred.
public void saveImage (Context context)
Saves all images within the model to the local device and populates all path fields.
Public methods
float
Bitmap
String
String
Bitmap
String
void
saveImages(Context context)
Saves all images within the model to the local device and populates all path fields.
Returns
float
0.0
if faces are 0% similar, 1.0
if faces are 100% similar.
Returns
Bitmap
Value cannot be null
.
Returns
String
Value is null
if image was not saved.
Returns
String
Value cannot be null
.
Returns
Bitmap
Value cannot be null
.
Returns
String
Value is null
if image was not saved.
Parameters
Context
Value cannot be null
.