Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
public List<Classification> recognizeImage(Bitmap bitmap) {
ByteBuffer byteBuffer = convertBitmapToByteBuffer(bitmap);
float[][] result = new float[1][MnistModelConfig.OUTPUT_LABELS.size()];
interpreter.run(byteBuffer, result);
return getSortedResult(result);
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.