public static async Task ProcessImagesFromFolderAsync(string key, string endpoint, string sourceFolder, string outFolder) { ComputerVisionClient client = ComputerVision.Authenticate(endpoint, key); IEnumerable <Uri> fileUris = GetFileUris(sourceFolder); foreach (var fileUri in fileUris) { await ProcessImageAsync(client, fileUri, outFolder); } }
public static async Task ProcessImageAsync(string key, string endpoint, Uri imageUri, string outFolder) { ComputerVisionClient client = ComputerVision.Authenticate(endpoint, key); await ProcessImageAsync(client, imageUri, outFolder); }