Example #1
0
        public void UploadAndAnalyzeInDomainImageTest()
        {
            //var imageFilePath = @"E:\Senparc\AzureDemo\WebSite\Senparc.Web\Upload\Emotion\happy.jpg";
            var model = new Model()
            {
                Name = "categories", Categories = new[] { "人" }
            };
            var result = VisionApi.UploadAndAnalyzeInDomainImage(imageFilePath, model);

            Assert.IsNotNull(result);
            //Console.WriteLine($"==============={result.ToJson()}");
        }