Skip to content

Commit e894093

Browse files
authored
Merge pull request #194 from kyichii/master
This fixes an error when running the "Detect Image Types - remote" an…
2 parents e0b187a + aaec0d0 commit e894093

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

python/ComputerVision/ComputerVisionQuickstart.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -449,7 +449,7 @@
449449
local_image_path_type = "resources\\type-image.jpg"
450450
local_image_type = open(local_image_path_type, "rb")
451451
# Select visual feature(s) you want
452-
local_image_features = VisualFeatureTypes.image_type
452+
local_image_features = [VisualFeatureTypes.image_type]
453453
# Call API with local image and features
454454
detect_type_results_local = computervision_client.analyze_image_in_stream(local_image_type, local_image_features)
455455

@@ -482,7 +482,7 @@
482482
# Get URL of an image with a type
483483
remote_image_url_type = "https://raw.githubusercontent.com/Azure-Samples/cognitive-services-sample-data-files/master/ComputerVision/Images/type-image.jpg"
484484
# Select visual feature(s) you want
485-
remote_image_features = VisualFeatureTypes.image_type
485+
remote_image_features = [VisualFeatureTypes.image_type]
486486
# Call API with URL and features
487487
detect_type_results_remote = computervision_client.analyze_image(remote_image_url_type, remote_image_features)
488488

0 commit comments

Comments
 (0)