ImageRecognitionModel
class ImageRecognitionModel(internalModel: InferenceModel, modelType: ModelType<out InferenceModel, out InferenceModel>) : InferenceModel
Content copied to clipboard
The light-weight API for solving Image Recognition task with one of the Model Hub models trained on ImageNet dataset.
Constructors
ImageRecognitionModel
Link copied to clipboard
fun ImageRecognitionModel(internalModel: InferenceModel, modelType: ModelType<out InferenceModel, out InferenceModel>)
Content copied to clipboard
Functions
predictObject
Link copied to clipboard
Predicts object for the given imageFile.
predictSoftly
Link copied to clipboard
open override fun predictSoftly(inputData: FloatArray, predictionTensorName: String): FloatArray
Content copied to clipboard
Predicts vector of probabilities instead of specific class in predict method.
predictTopKObjects
Link copied to clipboard