/// <summary>
        /// Formatting bankCardResult
        /// </summary>
        /// <param name="bankCardResult"></param>
        private string FormatIdCardResult(MLBcrCaptureResult bankCardResult)
        {
            StringBuilder resultBuilder = new StringBuilder();

            resultBuilder.Append("Number:");
            resultBuilder.Append(bankCardResult.Number);
            resultBuilder.Append("\r\n");

            resultBuilder.Append("Issuer:");
            resultBuilder.Append(bankCardResult.Issuer);
            resultBuilder.Append("\r\n");

            resultBuilder.Append("Expire: ");
            resultBuilder.Append(bankCardResult.Expire);
            resultBuilder.Append("\r\n");

            resultBuilder.Append("Type: ");
            resultBuilder.Append(bankCardResult.Type);
            resultBuilder.Append("\r\n");

            resultBuilder.Append("Organization: ");
            resultBuilder.Append(bankCardResult.Organization);
            resultBuilder.Append("\r\n");

            return(resultBuilder.ToString());
        }
        public void OnBcrResult(MLBcrCaptureResult idCardResult)
        {
            Intent intent = new Intent();
            Bitmap bitmap = idCardResult.OriginalBitmap;

            bitmap = Bitmap.CreateScaledBitmap(bitmap, bitmap.Width / 2, bitmap.Height / 2, true);
            // Because the set mode is MLBcrCaptureConfig.RESULT_SIMPLE, only the corresponding data is returned
            intent.PutExtra("bitmap", bitmap);
            intent.PutExtra("number", idCardResult.Number);
            mActivity.SetResult(Result.Ok, intent);
            mActivity.Finish();
        }
            public void OnSuccess(MLBcrCaptureResult result)
            {
                Log.Info(BcrAnalyseActivity.Tag, "CallBack onRecSuccess");
                if (result == null)
                {
                    Log.Info(BcrAnalyseActivity.Tag, "CallBack onRecSuccess idCardResult is null");
                    return;
                }
                Bitmap bitmap = result.OriginalBitmap;

                this.bcrAnalyseActivity.previewImage.SetImageBitmap(bitmap);
                this.bcrAnalyseActivity.cardResultFront = this.bcrAnalyseActivity.FormatIdCardResult(result);
                this.bcrAnalyseActivity.mTextView.Text  = this.bcrAnalyseActivity.cardResultFront;
            }