detectObjects

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.

Return

List of DetectedObject sorted by score.

Parameters

imageProxy

Input image.

topK

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