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

RecognizeDomainSpecificContentAsync() public static method

This operation recognizes content within an image by applying a domain-specific model. The list of domain-specific models that are supported by the Computer Vision API can be retrieved using the /models GET request. Currently, the API only provides a single domain-specific model: celebrities. <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 RecognizeDomainSpecificContentAsync ( this operations, string model, string subscriptionKey = default(string), string ocpApimSubscriptionKey = default(string), System cancellationToken = default(System.Threading.CancellationToken) ) : System.Threading.Tasks.Task
operations this /// The operations group for this extension method. ///
model string /// The domain-specific content to recognize. ///
subscriptionKey string /// subscription key in url ///
ocpApimSubscriptionKey string /// subscription key in header ///
cancellationToken System /// The cancellation token. ///
return System.Threading.Tasks.Task
            public static async System.Threading.Tasks.Task RecognizeDomainSpecificContentAsync(this IComputerVisionAPIV10 operations, string model, string subscriptionKey = default(string), string ocpApimSubscriptionKey = default(string), System.Threading.CancellationToken cancellationToken = default(System.Threading.CancellationToken))
            {
                await operations.RecognizeDomainSpecificContentWithHttpMessagesAsync(model, subscriptionKey, ocpApimSubscriptionKey, null, cancellationToken).ConfigureAwait(false);
            }