imageClassifier Object
The imageClassifier object classifies the given image based on the trained model categories.
It provides the following methods.
Methods
The imageClassifier Object contains the following methods.
recognizeImage
The recognizeImage method is used to classify the given image based on the categories provided in the model.
This method invokes the onSuccess callback of the image classifier object.
Syntax
Input Parameters
Parameter | Description |
---|---|
rawBytes | rawbytes is an object that is returned from Camera, a file or device gallery. |
Example
Return Values
None.
Availability
iOS and Android.
releaseResource
The releaseResource method releases the resources held by the ImageClassifier object.
Once released, the imageClassifier Object cannot be re-used.You must create another imageClassifier object after using this method if you want to use recognizeImage method again. If you call the recognizeImage method without creating a different object, the onFailure callback set in the voltmx.ml.ImageClassifier API is invoked.
Syntax
Input Parameters
None
Example
Availability
iOS and Android.