public DetectorPageViewModel(string path)
        {
            FaceImage = ImageSource.FromFile(path);
            FaceDetectorImpl.ImagePath = path;
            FaceDetectorImpl.Decode();

            DetectCommand = new Command(async() => RefreshPage(await FaceDetectorImpl.Detect()));
        }
        public DetectorPageViewModel(string path)
        {
            BarcodeImage = ImageSource.FromFile(path);

            BarcodeDetectorImpl.ImagePath = path;
            BarcodeDetectorImpl.Decode();

            DetectCommand = new Command(
                async() =>
            {
                try
                {
                    RefreshPage(await BarcodeDetectorImpl.Detect());
                    DetectionResultText = $"Success";
                }
                catch (Exception e)
                {
                    DetectionResultText = $"Failure";
                }
            }
                );
        }