private void sendContinuousOcrFailMessage() {
    Handler handler = activity.getHandler();
    if (handler != null) {
      Message message = Message.obtain(handler, R.id.ocr_continuous_decode_failed, new OcrResultFailure(timeRequired));
      message.sendToTarget();
    }
  }
Perform an OCR decode for realtime recognition mode.
 
@param data Image data
@param width Image width
@param height Image height
OCRTest/src/main/java/edu/sfsu/cs/orange/ocr/DecodeHandler.java