private async void NextPageAsync() { var photo = await Plugin.Media.CrossMedia.Current.TakePhotoAsync(new Plugin.Media.Abstractions.StoreCameraMediaOptions() { PhotoSize = PhotoSize.Custom, CustomPhotoSize = 45, CompressionQuality = 60 }); ButtonVisibility = false; TextVisibility = false; AnimationVisibility = true; Models.ImageResult res = await _visionAPI.MakeAnalysisRequest(photo.Path); AnimationVisibility = false; var parameter = new NavigationParameters(); parameter.Add("ImageParam", res); parameter.Add("ImagePath", photo.Path); //foreach (char i in word) //{ // string str = i.ToString(); // Services.AudioRecService.PlayAudio(str); //} //Services.AudioRecService.PlayAudio(word); await _navigationService.NavigateAsync(new Uri("SpeakPage", UriKind.Relative), parameter); ButtonVisibility = true; }
public ImageResultsEventArgs(int cameraId, Dictionary <int, Face> faces, Frame frame) { ImageResult = new Models.ImageResult(cameraId, frame.getWidth(), frame.getHeight(), frame.getTimestamp(), faces.ToLocalFaces()); ImageData = frame.ToImageStream(); }