ImageRecognitionModelBase

abstract class ImageRecognitionModelBase<I>(internalModel: <ERROR CLASS>, modelKindDescription: String?)

Base class for image classification models.

Constructors

ImageRecognitionModelBase
Link copied to clipboard
common
fun ImageRecognitionModelBase(internalModel: <ERROR CLASS>, modelKindDescription: String? = null)

Functions

predictObject
Link copied to clipboard
common
fun predictObject(image: I): String

Predicts object for the given image. Default preprocessing Operation is applied to an image.

predictTopKObjects
Link copied to clipboard
common
fun predictTopKObjects(image: I, topK: Int = 5): List<<ERROR CLASS><String, Float>>

Predicts topK objects for the given image. Default preprocessing Operation is applied to an image.

summary
Link copied to clipboard
common
open fun summary(): <ERROR CLASS>

Inheritors

ImageRecognitionModel
Link copied to clipboard