Created
September 19, 2020 03:47
-
-
Save MCarlomagno/ec25ced379729e548fa7103437d7640f 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
_cameraService.cameraController.startImageStream((image) async { | |
... | |
try { | |
/// returns a list of faces, but for our propose we just need the first one detected | |
List<Face> faces = await _mlVisionService.getFacesFromImage(image); | |
... | |
} catch (e) { | |
... | |
} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment