Created
September 19, 2020 03:52
-
-
Save MCarlomagno/c193181a8c2671325b16af22f40592d8 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
setCurrentPrediction(CameraImage cameraImage, Face face) { | |
/// crops the face from the image and transforms it to an array of data | |
List input = _preProcess(cameraImage, face); | |
/// then reshapes input and ouput to model format 🧑🔧 | |
input = input.reshape([1, 112, 112, 3]); | |
List output = List(1 * 192).reshape([1, 192]); | |
/// runs the interpreter and produces the output 🤖 | |
this._interpreter.run(input, output); | |
output = output.reshape([192]); | |
this._predictedData = List.from(output); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
the List output is it empty ?