File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change 449449local_image_path_type = "resources\\ type-image.jpg"
450450local_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
454454detect_type_results_local = computervision_client .analyze_image_in_stream (local_image_type , local_image_features )
455455
482482# Get URL of an image with a type
483483remote_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
487487detect_type_results_remote = computervision_client .analyze_image (remote_image_url_type , remote_image_features )
488488
You can’t perform that action at this time.
0 commit comments