SSDObjectDetectionModel
Special model class for detection objects on images with built-in preprocessing and post-processing.
It internally uses ONNXModels.ObjectDetection.SSD trained on the COCO dataset.
Note that output class labels do not correspond to ids in COCO annotations. If you want to evaluate this model on the COCO validation/test set, you need to convert class predictions using appropriate mapping.
Since
0.3
See also
Constructors
SSDObjectDetectionModel
Link copied to clipboard
fun SSDObjectDetectionModel()
Content copied to clipboard
Functions
detectObjects
Link copied to clipboard
fun detectObjects(inputData: FloatArray, topK: Int = 5): List<DetectedObject>
Content copied to clipboard
Returns the top N detected object for the given image file sorted by the score.
predict
Link copied to clipboard
predictRaw
Link copied to clipboard
Returns list of multidimensional arrays with data from model outputs.
predictRawWithShapes
Link copied to clipboard
fun predictRawWithShapes(inputData: FloatArray): List<Pair<FloatBuffer, LongArray>>
Content copied to clipboard
Returns list of pairs from model outputs.
predictSoftly
Link copied to clipboard
Predicts vector of probabilities instead of specific class in predict method.
open override fun predictSoftly(inputData: FloatArray, predictionTensorName: String): FloatArray
Content copied to clipboard
Properties
inputDataType
Link copied to clipboard
inputDimensions
Link copied to clipboard
inputShape
Link copied to clipboard
outputDataType
Link copied to clipboard
outputShape
Link copied to clipboard