public void DetectLandmarks() { Image image = LoadResourceImage("SydneyOperaHouse.jpg"); // Snippet: DetectLandmarks ImageAnnotatorClient client = ImageAnnotatorClient.Create(); IReadOnlyList <EntityAnnotation> result = client.DetectLandmarks(image); foreach (EntityAnnotation landmark in result) { Console.WriteLine($"Score: {(int)(landmark.Score * 100)}%; Description: {landmark.Description}"); } // End snippet Assert.Equal(2, result.Count); var descriptions = result.Select(r => r.Description).OrderBy(d => d).ToList(); Assert.Equal(new[] { "Sydney Harbour Bridge", "Sydney Opera House" }, descriptions); }