detectObjects

fun detectObjects(imageFile: File, topK: Int = 5): List<DetectedObject>

Returns the detected object for the given image file sorted by the score.

NOTE: this method includes the EfficientDet - related preprocessing.

Return

List of DetectedObject sorted by score.

Parameters

imageFile

File, should be an image.

topK

The number of the detected objects with the highest score to be returned.