ImageRecognitionModel
class ImageRecognitionModel(internalModel: InferenceModel, inputColorMode: ColorMode, channelsFirst: Boolean, preprocessor: Operation<Pair<FloatArray, TensorShape>, Pair<FloatArray, TensorShape>>, modelKindDescription: String?) : ImageRecognitionModelBase<BufferedImage>
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, inputColorMode: ColorMode, channelsFirst: Boolean, preprocessor: Operation<Pair<FloatArray, TensorShape>, Pair<FloatArray, TensorShape>> = Identity(), modelKindDescription: String? = null)
Content copied to clipboard
Functions
predict
Link copied to clipboard
predictObject
Link copied to clipboard
predictSoftly
Link copied to clipboard
open override fun predictSoftly(inputData: FloatArray, predictionTensorName: String): FloatArray
Content copied to clipboard
predictTopKObjects
Link copied to clipboard
fun predictTopKObjects(image: BufferedImage, topK: Int = 5): List<Pair<String, Float>>
Content copied to clipboard
summary
Link copied to clipboard
Properties
inputDimensions
Link copied to clipboard