EfficientDetObjectDetectionModel
class EfficientDetObjectDetectionModel(internalModel: OnnxInferenceModel, modelKindDescription: String?) : EfficientDetObjectDetectionModelBase<BufferedImage> , InferenceModel
Content copied to clipboard
Special model class for detection objects on images with built-in preprocessing and post-processing.
It internally uses ONNXModels.ObjectDetection.EfficientDetD0 or other EfficientDet models trained on the COCO dataset.
Since
0.4
Parameters
internalModel
model used to make predictions
Constructors
EfficientDetObjectDetectionModel
Link copied to clipboard
Constructs the object detection model from a given path.
EfficientDetObjectDetectionModel
Link copied to clipboard
fun EfficientDetObjectDetectionModel(internalModel: OnnxInferenceModel, modelKindDescription: String? = null)
Content copied to clipboard
Functions
convert
Link copied to clipboard
open override fun convert(output: OrtSession.Result): List<DetectedObject>
Content copied to clipboard
Converts raw model output to the result.
detectObjects
Link copied to clipboard
Returns the detected object for the given image file sorted by the score.
fun detectObjects(image: BufferedImage, topK: Int = 5): List<DetectedObject>
Content 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.
predictSoftly
Link copied to clipboard
open override fun predictSoftly(inputData: FloatArray, predictionTensorName: String): FloatArray
Content copied to clipboard
summary
Link copied to clipboard
Properties
inputDimensions
Link copied to clipboard
internalModel
Link copied to clipboard
modelKindDescription
Link copied to clipboard
preprocessing
Link copied to clipboard
open override val preprocessing: Operation<BufferedImage, Pair<FloatArray, TensorShape>>
Content copied to clipboard