0

I would like to implement something simmilar to this solution, but instead of starting the analysis on creation of the app, I want to start and stop it with, for example press of a button. How can something like this be done?

1 Answers1

0

Can you simply introduce a flag to control whether processing camera frame in ImageAnalysis.Analyzer#analyze callback and then flip this flag in your button onclick listener?

zhouyi
  • 226
  • 1
  • 4