FacialTrainingModel
Last updated
Last updated
import com.sybrin.facialrecognition.models.FacialTrainingModel
If for some reason the model failed to upload during the normal operations of the SDK you can upload it at a later time.
Sybrin does not provide user management for the identifiers that are used to train and recognize on a specific license key. The proper management and storage of unique identifiers is the sole responsibility of the developer.
public
FacialTrainingModel
addOnModelUploadSuccessListener (
OnModelUploadFailureListener
onModelUploadFailureListener)
Adds a on failure callback for the uploadModel
method. Returns the current instance of FacialTrainingModel.
public
FacialTrainingModel
addOnModelUploadSuccessListener (
OnModelUploadSuccessListener
onModelUploadSuccessListener)
Adds a on success callback for the uploadModel
method. Returns the current instance of FacialTrainingModel.
public Bitmap getIdentifier ()
Returns the identifier used to train the facial recognition model.
public List<Bitmap> getTrainedImages ()
Returns a list of the images used for training the facial recognition model.
public String getTrainingTimeTakenMilliseconds ()
Returns the time it took to train the facial recognition model in milliseconds.
public String getUploadTimeTakenMilliseconds ()
Returns the time it took to upload the trained facial recognition model in milliseconds.
public Bitmap isUploaded ()
Returns the a boolean indicating whether the trained facial recognition model was uploaded online.
public void uploadModel ()
Uploads the current trained facial recognition model if it has not been uploaded yet. Result are posted to the onModelUploadSuccessListener and onModelUploadFailureListener respectively.
Public methods
addOnModelUploadFailureListener(OnModelUploadFailureListener onModelUploadFailureListener)
addOnModelUploadSuccessListener(OnModelUploadSuccessListener onModelUploadSuccessListener)
String
List<Bitmap>
float
float
boolean
void
Parameters
Callback that gets called when uploadModel
methods fails.
Returns
Value cannot be null
.
Parameters
Callback that gets called when uploadModel
methods succeeds.
Returns
Value cannot be null
.
Returns
String
Value cannot be null
.
Returns
List<Bitmap>
Value cannot be null
.
Returns
float
Returns
float
Returns
boolean
true
if model was uploaded, false
if otherwise.