Created
January 30, 2019 21:15
-
-
Save frogermcs/dd2c13d25fb43da5e8e434d6ce55bfc1 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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