Esempio n. 1
0
        private async Task <string> GetImageBestGuessLabelsAsync(string imageBase64String)
        {
            byte[] imageBytes = Convert.FromBase64String(imageBase64String);
            var    image      = Image.FromBytes(imageBytes);
            var    annotation = await _visionClient.DetectWebInformationAsync(image);

            return(annotation.
                   BestGuessLabels.
                   ToString());
        }