public virtual async Task <VideoOperation> FaceDetectionAndTrackingAsync(string videoUrl)
        {
            var response = await RepositoryClient.SendOperationPostAsync(ApiKeys.Video, $"{ApiKeys.VideoEndpoint}trackface", JsonConvert.SerializeObject(new Video {
                Url = videoUrl
            }));

            return(new VideoOperation(response));
        }
 /// <summary>
 /// This takes in at least 100 documents and returns a url to the operation where you check for the status of the result
 /// </summary>
 /// <param name="request"></param>
 /// <returns></returns>
 public virtual async Task <string> GetTopicsAsync(TopicRequest request)
 {
     return(await RepositoryClient.SendOperationPostAsync(ApiKeys.TextAnalytics, $"{ApiKeys.TextAnalyticsEndpoint}{topicUrl}", JsonConvert.SerializeObject((object)request)));
 }
Beispiel #3
0
 public virtual async Task <string> RecognizeHandwrittenTextAsync(string imageUrl, bool handwriting = false)
 {
     return(await RepositoryClient.SendOperationPostAsync(ApiKeys.ComputerVision, $"{ApiKeys.ComputerVisionEndpoint}recognizeText?handwriting={handwriting}", GetImageUrlJson(imageUrl)));
 }