Skip to content

Commit

Permalink
Merge pull request #194 from kyichii/master
Browse files Browse the repository at this point in the history
This fixes an error when running the "Detect Image Types - remote" an…
  • Loading branch information
erhopf committed Dec 10, 2020
2 parents e0b187a + aaec0d0 commit e894093
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/ComputerVision/ComputerVisionQuickstart.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@
local_image_path_type = "resources\\type-image.jpg"
local_image_type = open(local_image_path_type, "rb")
# Select visual feature(s) you want
local_image_features = VisualFeatureTypes.image_type
local_image_features = [VisualFeatureTypes.image_type]
# Call API with local image and features
detect_type_results_local = computervision_client.analyze_image_in_stream(local_image_type, local_image_features)

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

Expand Down

0 comments on commit e894093

Please sign in to comment.