/** Send a decode request for realtime OCR mode */
  private void restartOcrPreviewAndDecode() {
    // Continue capturing camera frames
    cameraManager.startPreview();

    // Continue requesting decode of images
    cameraManager.requestOcrDecode(decodeThread.getHandler(), R.id.ocr_continuous_decode);
    activity.drawViewfinder();
  }
 /** Request OCR on the current preview frame. */
 private void ocrDecode() {
   setState(State.PREVIEW);
   cameraManager.requestOcrDecode(decodeThread.getHandler(), R.id.ocr_decode);
 }