Package org.jetbrains.kotlinx.dl.onnx.inference.objectdetection

Types

EfficientDetObjectDetectionModel
Link copied to clipboard
class EfficientDetObjectDetectionModel(internalModel: OnnxInferenceModel, modelKindDescription: String?) : EfficientDetObjectDetectionModelBase<BufferedImage> , InferenceModel

Special model class for detection objects on images with built-in preprocessing and post-processing.

EfficientDetObjectDetectionModelBase
Link copied to clipboard
common
abstract class EfficientDetObjectDetectionModelBase<I>(modelType: String?) : ObjectDetectionModelBase<I>

Base class for object detection models based on EfficientDet architecture.

ObjectDetectionModelBase
Link copied to clipboard
common
abstract class ObjectDetectionModelBase<I>(modelKindDescription: String?) : OnnxHighLevelModel<I, List<<ERROR CLASS>>>

Base class for object detection models.

SSDLikeModel
Link copied to clipboard
class SSDLikeModel(internalModel: OnnxInferenceModel, metadata: SSDLikeModelMetadata, modelKindDescription: String?) : SSDLikeModelBase<Bitmap> , CameraXCompatibleModel, InferenceModel

Special model class for detection objects on images with built-in preprocessing and post-processing. Suitable for models with SSD like output decoding.

SSDLikeModelBase
Link copied to clipboard
common
abstract class SSDLikeModelBase<I>(metadata: SSDLikeModelMetadata, modelType: String?) : ObjectDetectionModelBase<I>

Base class for object detection model based on SSD architecture.

SSDLikeModelMetadata
Link copied to clipboard
common
data class SSDLikeModelMetadata(outputBoxesName: String, outputClassesName: String, outputScoresName: String, yMinIdx: Int, xMinIdx: Int)

This class aggregates the metadata of the SSD-like model used for decoding the output. The class is exists mostly for reducing code duplication.

SSDMobileNetV1ObjectDetectionModel
Link copied to clipboard
class SSDMobileNetV1ObjectDetectionModel(internalModel: OnnxInferenceModel, modelKindDescription: String?) : SSDLikeModelBase<BufferedImage> , InferenceModel

Special model class for detection objects on images with built-in preprocessing and post-processing.

SSDObjectDetectionModel
Link copied to clipboard
class SSDObjectDetectionModel(internalModel: OnnxInferenceModel, modelKindDescription: String?) : SSDLikeModelBase<BufferedImage> , InferenceModel

Special model class for detection objects on images with built-in preprocessing and post-processing.

Functions

detectObjects
Link copied to clipboard
fun ObjectDetectionModelBase<Bitmap>.detectObjects(imageProxy: ImageProxy, topK: Int = 3): List<DetectedObject>

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.