Example #1
0
        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);
            }
        }
Example #2
0
        public static async Task ProcessImageAsync(string key, string endpoint, Uri imageUri, string outFolder)
        {
            ComputerVisionClient client = ComputerVision.Authenticate(endpoint, key);

            await ProcessImageAsync(client, imageUri, outFolder);
        }