BuildIt.CognitiveServices.ComputerVisionAPIV10Extensions.AnalyzeImage C# (CSharp) Метод

AnalyzeImage() публичный статический Метод

This operation extracts a rich set of visual features based on the image content. <br> <br> Two input methods are supported -- (1) Uploading an image or (2) specifying an image URL. Within your request, there is an optional parameter to allow you to choose which features to return. By default, image categories are returned in the response. <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 AnalyzeImage ( this operations, string visualFeatures = "Categories", string details = default(string), string language = "en", string subscriptionKey = default(string), string ocpApimSubscriptionKey = default(string) ) : void
operations this /// The operations group for this extension method. ///
visualFeatures string /// A string indicating what visual feature types to return. Multiple values /// should be comma-separated. /// <br/>Valid visual feature types include: /// <br/> /// <ul> /// <li><b>Categories</b> - categorizes image content /// according to a taxonomy defined in documentation. </li> /// <li><b>Tags</b> - tags the image with a detailed list of /// words related to the image content. </li> /// <li><b>Description</b> - describes the image content /// with a complete English sentence. </li> /// <li><b>Faces</b> - detects if faces are present. If /// present, generate coordinates, gender and age.</li> /// <li><b >ImageType</b> - detects if image is clipart or a /// line drawing.</li> /// <li><b> Color</b> - determines the accent color, /// dominant color, and whether an image is black&white.</li> /// <li><b>Adult</b> - detects if the image is pornographic /// in nature (depicts nudity or a sex act). Sexually suggestive content is /// also detected.</li> /// </ul>. Possible values include: 'ImageType', 'Faces', 'Adult', /// 'Categories', 'Color', 'Tags', 'Description' ///
details string /// A string indicating which domain-specific details to return. Multiple /// values should be comma-separated. /// <br/>Valid visual feature types include: /// <br/> /// <ul> /// <li><b >Celebrities</b> - identifies celebrities if /// detected in the image.</li> /// </ul> /// . Possible values include: 'Celebrities' ///
language string /// A string indicating which language to return. The service will return /// recognition results in specified language. If this parameter is not /// specified, the default value is &quot;en&quot;.<br /> /// Supported languages: /// <ul> /// <li><b >en</b> - English, Default.</li> /// <li><b >zh</b> - Simplified Chinese.</li> /// </ul>. Possible values include: 'en', 'zh' ///
subscriptionKey string /// subscription key in url ///
ocpApimSubscriptionKey string /// subscription key in header ///
Результат void
            public static void AnalyzeImage(this IComputerVisionAPIV10 operations, string visualFeatures = "Categories", string details = default(string), string language = "en", string subscriptionKey = default(string), string ocpApimSubscriptionKey = default(string))
            {
                System.Threading.Tasks.Task.Factory.StartNew(s => ((IComputerVisionAPIV10)s).AnalyzeImageAsync(visualFeatures, details, language, subscriptionKey, ocpApimSubscriptionKey), operations, System.Threading.CancellationToken.None, System.Threading.Tasks.TaskCreationOptions.None,  System.Threading.Tasks.TaskScheduler.Default).Unwrap().GetAwaiter().GetResult();
            }