/// <summary>
 /// Here camera errors should be handled.
 /// </summary>
 /// <param name="error"></param>
 void mRecognizer_OnCameraError(Microblink.UserControls.CameraError error)
 {
     // just throw an exception
     throw new NotImplementedException();
 }
 void mRecognizer_OnDisplayOcrResult(Microblink.OCRResult result)
 {
     mOCRDisplay.DisplayOCRResult(result);
 }
 /// <summary>
 /// Here camera errors should be handled.
 /// </summary>
 /// <param name="error"></param>
 void mRecognizer_OnCameraError(Microblink.UserControls.CameraError error)
 {
     if (OnFailure != null) {
         switch (error) {
             case CameraError.CameraNotReady: OnFailure("Camera not ready"); break;
             case CameraError.NoCameraAtSelectedSensorLocation: OnFailure("No camera at selected sensor location"); break;
             case CameraError.NotSupported: OnFailure("Camera not supported"); break;
             case CameraError.PreviewSizeTooSmall: OnFailure("Camera preview size too small"); break;
             default: OnFailure("Camera error"); break;
         }
     }
     // just throw an exception
     else throw new NullReferenceException();
 }