ObjectDetectionModelBase
abstract class ObjectDetectionModelBase<I>(modelKindDescription: String?) : OnnxHighLevelModel<I, List<<ERROR CLASS>>>
Content copied to clipboard
Base class for object detection models.
Constructors
ObjectDetectionModelBase
Link copied to clipboard
Functions
detectObjects
Link copied to clipboard
Returns the detected object for the given image sorted by the score.
initializeWith
Link copied to clipboard
open override fun initializeWith(vararg executionProviders: ExecutionProvider)
Content copied to clipboard
Initialize the model with the specified executions providers.
Properties
internalModel
Link copied to clipboard
modelKindDescription
Link copied to clipboard
preprocessing
Link copied to clipboard
abstract val preprocessing: <ERROR CLASS><I, <ERROR CLASS><FloatArray, <ERROR CLASS>>>
Content copied to clipboard
Inheritors
EfficientDetObjectDetectionModelBase
Link copied to clipboard
SSDLikeModelBase
Link copied to clipboard
Extensions
detectObjects
Link copied to clipboard
fun ObjectDetectionModelBase<Bitmap>.detectObjects(imageProxy: ImageProxy, topK: Int = 3): List<DetectedObject>
Content copied to clipboard
Returns the detected object for the given image sorted by the score. Internal preprocessing is updated to rotate image to match target orientation. After prediction, internal preprocessing is restored to the original state.