predictTopKObjects

fun predictTopKObjects(imageFile: File, topK: Int): List<Pair<String, Float>>

Predicts topK objects for the given imageFile. Default preprocessing Operation is applied to an image.

Return

The list of pairs sorted from the most probable to the lowest probable.

See also

Parameters

imageFile

Input image File.

topK

Number of top ranked predictions to return