Skip to content

Instantly share code, notes, and snippets.

@MCarlomagno
Created September 5, 2020 15:08
Show Gist options
  • Save MCarlomagno/f670b65e8dcfd9e5da8aaea7224c1b4d to your computer and use it in GitHub Desktop.
Save MCarlomagno/f670b65e8dcfd9e5da8aaea7224c1b4d to your computer and use it in GitHub Desktop.
_cameraController.startImageStream((img) async {
if (available) {
available = false;
await _tensorflowService.runModel(img); // Tflite.runModelOnFrame(...) code
await Future.delayed(Duration(seconds: 1));
available = true;
}
});
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment