private async void TextButton_Click(object sender, RoutedEventArgs e) { var fileOpenPicker = new FileOpenPicker { ViewMode = PickerViewMode.Thumbnail, SuggestedStartLocation = PickerLocationId.PicturesLibrary }; fileOpenPicker.FileTypeFilter.Add(".png"); fileOpenPicker.FileTypeFilter.Add(".jpg"); fileOpenPicker.FileTypeFilter.Add(".jpeg"); fileOpenPicker.FileTypeFilter.Add(".bmp"); var file = await fileOpenPicker.PickSingleFileAsync(); if (file != null) { var fp = new FlowProcessor(); await fp.FlowMessage(file, "sample result", false); } }
public HoloCsFlowApp(ApplicationOptions opts) : base(opts) { _flowProcessor = new FlowProcessor(); _computerVisionProcessor = new ComputerVisionProcessor(); }