title: How to stop classifying after first Correct Image Detection using tensorflow lite Android API
body: <p>I am referring to the examples from google for tensorflow lite image detection. : <a href="https://github.com/tensorflow/examples/tree/master/lite/examples/object_detection/android/app/src/main/java/org/tensorflow/lite/examples/detection" rel="nofollow noreferrer">https://github.com/tensorflow/examples/tree/master/lite/examples/object_detection/android/app/src/main/java/org/tensorflow/lite/examples/detection</a></p>
  <p>The callback when the camera is open : onImageAvailable() calls the processImage() which calls the pane with detected object and thier confidence.
  If the camer remains open it will keep classifying the object.
  Is there a way to stop classifying once first successfull image detetection has happened?
  All i can think of is to press the back button once first image is detected or stop the camera preview.
  Any other suggestion?
  If there is some method from tensorflow lite like stop Classification() , it may work</p>