Created
February 22, 2019 08:19
-
-
Save frogermcs/50482aeb5af34a724aa7c574a859e779 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][GtsrbModelConfig.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