FacialTrainingModel
import com.sybrin.facialrecognition.models.FacialTrainingModel
Summary
Public methods | |
addOnModelUploadFailureListener(OnModelUploadFailureListener onModelUploadFailureListener) | |
addOnModelUploadSuccessListener(OnModelUploadSuccessListener onModelUploadSuccessListener) | |
String | |
List<Bitmap> | |
float | |
float | |
boolean | |
void |
Uploading model
If for some reason the model failed to upload during the normal operations of the SDK you can upload it at a later time.
For example:
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 methods
addOnModelUploadFailureListener
public
FacialTrainingModel
addOnModelUploadSuccessListener (
OnModelUploadFailureListener
onModelUploadFailureListener)
Adds a on failure callback for the uploadModel
method. Returns the current instance of FacialTrainingModel.
Parameters | |
Callback that gets called when |
Returns | |
Value cannot be |
addOnModelUploadSuccessListener
public
FacialTrainingModel
addOnModelUploadSuccessListener (
OnModelUploadSuccessListener
onModelUploadSuccessListener)
Adds a on success callback for the uploadModel
method. Returns the current instance of FacialTrainingModel.
Parameters | |
Callback that gets called when |
Returns | |
Value cannot be |
getIdentifier
public Bitmap getIdentifier ()
Returns the identifier used to train the facial recognition model.
Returns | |
String | Value cannot be |
getTrainedImages
public List<Bitmap> getTrainedImages ()
Returns a list of the images used for training the facial recognition model.
Returns | |
List<Bitmap> | Value cannot be |
getTrainingTimeTakenMilliseconds
public String getTrainingTimeTakenMilliseconds ()
Returns the time it took to train the facial recognition model in milliseconds.
Returns | |
float |
getUploadTimeTakenMilliseconds
public String getUploadTimeTakenMilliseconds ()
Returns the time it took to upload the trained facial recognition model in milliseconds.
Returns | |
float |
isUploaded
public Bitmap isUploaded ()
Returns the a boolean indicating whether the trained facial recognition model was uploaded online.
Returns | |
boolean |
|
uploadModel
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.
Last updated