title: Android text recognition - Throttling the text recognizer
body: <p>I'm testing the android vision text recognizer, and in real-time use, the <a href="https://firebase.google.com/docs/ml-kit/android/recognize-text##performance_tips" rel="nofollow noreferrer">docs</a> suggest I "Throttle calls to the text recognizer. If a new video frame becomes available while the text recognizer is running, drop the frame."</p>
  
  <p>In the sample <a href="https://github.com/googlesamples/android-vision/tree/master/visionSamples/ocr-reader" rel="nofollow noreferrer">ocr-reader</a> app, which shares the <code>CameraSource</code> and <code>OcrDetectorProcessor</code> with the <a href="https://github.com/firebase/quickstart-android/tree/master/mlkit" rel="nofollow noreferrer">ML Kit</a> sample app, I'm trying to figure out precisely how this is accomplished. Can someone point me in the right direction? I'm lookng at the <code>CameraPreviewCallback</code> and <code>FrameProcessingRunnable</code> classes, but no progress yet. Thanks!</p>