BuildIt.CognitiveServices.ComputerVisionAPIV10Extensions.TagImage C# (CSharp) Method

TagImage() public static method

This operation generates a list of words, or tags, that are relevant to the content of the supplied image. The Computer Vision API can return tags based on objects, living beings, scenery or actions found in images. Unlike categories, tags are not organized according to a hierarchical classification system, but correspond to image content. Tags may contain hints to avoid ambiguity or provide context, for example the tag “cello” may be accompanied by the hint “musical instrument”. All tags are in English. <br> <br> Two input methods are supported -- (1) Uploading an image or (2) specifying an image URL. <br> <br> A successful response will be returned in JSON. If the request failed, the response will contain an error code and a message to help understand what went wrong. <h4>Http Method</h4> POST
public static TagImage ( this operations, string subscriptionKey = default(string), string ocpApimSubscriptionKey = default(string) ) : void
operations this /// The operations group for this extension method. ///
subscriptionKey string /// subscription key in url ///
ocpApimSubscriptionKey string /// subscription key in header ///
return void
            public static void TagImage(this IComputerVisionAPIV10 operations, string subscriptionKey = default(string), string ocpApimSubscriptionKey = default(string))
            {
                System.Threading.Tasks.Task.Factory.StartNew(s => ((IComputerVisionAPIV10)s).TagImageAsync(subscriptionKey, ocpApimSubscriptionKey), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None,  System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
            }