public void OnPhotoCaptured(AnylineImage anylineImage) { var result = new Dictionary <string, object> { }; result.Add("Image result", anylineImage); (Window.Current.Content as Frame).Navigate(typeof(ResultsPage), result); }
// this is called after the preview of the document is completed, and a full picture will be processed automatically void IDocumentResultListener.OnPreviewProcessingSuccess(AnylineImage anylineImage) { if (_toast != null) { _toast.Cancel(); } _imageViewFull.SetImageBitmap(anylineImage.Bitmap); _toast = Toast.MakeText(this, "Scanning full document. Please hold still.", ToastLength.Long); _toast.Show(); }
void IDocumentResultListener.OnResult(AnylineImage transformedImage, AnylineImage fullFrame) { _toast = Toast.MakeText(BaseContext, "Document scanned successfully.", ToastLength.Short); _toast.Show(); _progressDialog.Dismiss(); var resImg = transformedImage.Clone(); _imageViewFull.SetImageBitmap(null); _imageViewResult.SetImageBitmap(resImg.Bitmap); transformedImage.Release(); fullFrame.Release(); }
public ResultDialogBuilder SetResultImage(AnylineImage resultImage) { _imageView.SetImageBitmap(resultImage.Bitmap); return(this); }
void IEnergyResultListener.OnResult(EnergyScanView.ScanMode scanMode, string result, AnylineImage resultImage, AnylineImage fullSizedImage) { _scanView.CancelScanning(); // explicitly free memory GC.Collect(GC.MaxGeneration); string typeString = scanMode.ToString(); // for short results, we create a formatted result to visualize the numbers, but for longer results // we just want to display the plain text var formattedResult = result.Length < 7 ? GetFormattedResult(result) : new SpannableString(result); ResultDialogBuilder rdb = (ResultDialogBuilder) new ResultDialogBuilder(this) .SetResultImage(resultImage) .SetTextSize(ComplexUnitType.Dip, 32) .SetTextGravity(GravityFlags.Center) .SetText(formattedResult) .SetPositiveButton(Android.Resource.String.Ok, this) .SetTitle(typeString) .SetOnCancelListener(this); rdb.Show(); }
public void OnPictureCornersDetected(AnylineImage fullFrame, IList <PointF> corners) { }
public void OnPreviewProcessingSuccess(AnylineImage anylineImage) { }
public void OnPictureTransformed(AnylineImage transformedImage) { }
void IBarcodeResultListener.OnResult(string result, BarcodeScanView.BarcodeFormat barcodeFormat, AnylineImage anylineImage) { _resultText.SetText(result, TextView.BufferType.Normal); }
void IMrzResultListener.OnResult(Identification result, AnylineImage resultImage) { _resultView.SetIdentification(result); _resultView.Visibility = ViewStates.Visible; }
void IDocumentResultListener.OnPictureTransformed(AnylineImage transformedImage) { // }
void IDocumentResultListener.OnPictureCornersDetected(AnylineImage fullFrame, IList <PointF> corners) { // }
// this is called after the preview of the document is completed, and a full picture will be processed automatically void IDocumentResultListener.OnPreviewProcessingSuccess(AnylineImage anylineImage) { _textView.Text = "Scanning full document. Please hold still."; }
public void OnPhotoCaptured(AnylineImage anylineImage) { throw new NotImplementedException(); }