public bool HandleResult(ContourDetectorFrameHandler.DetectedFrame result)
        {
            // Here you are continiously notified about contour detection results.
            // For example, you can set a localized text for user guidance depending on the detection status.

            var color     = new Color(ContextCompat.GetColor(Application.Context, Resource.Color.brand_dark));
            var guideText = GetString(Resource.String.camera_view_receipt_too_far);

            if (result.Polygon == null || result.Polygon.Count == 0)
            {
                guideText = GetString(Resource.String.camera_view_receipt_not_found);
            }

            if (result.DetectionResult == DetectionResult.Ok)
            {
                guideText = GetString(Resource.String.camera_view_receipt_found);
            }
            // else ...

            // Warning: The HandleResult callback is coming from a worker thread. Use main UI thread to update the UI elements.
            userGuidanceTextView.Post(() => {
                userGuidanceTextView.Text = guideText;
                userGuidanceTextView.SetTextColor(color);
            });

            return(false);
        }
        public bool HandleResult(ContourDetectorFrameHandler.DetectedFrame result)
        {
            // Here you are continiously notified about contour detection results.
            // For example, you can set a localized text for user guidance depending on the detection status.

            ShowUserGuidance(result.DetectionResult);

            return(false);
        }