codemillmatt / santa-talk

An Intelligent Serverless Xamarin App Challenge
MIT License
24 stars 40 forks source link

Cognitive Services ? #3

Open MehdiElMellali opened 4 years ago

MehdiElMellali commented 4 years ago

i try to use Cognitive Services free in santa-talk but not working

jamesmontemagno commented 4 years ago

What part are you having issues with from the instructions?

eincioch commented 4 years ago

Someone wants to tell me if I'm doing well here, that's what the app returns.

image

MehdiElMellali commented 4 years ago

i wanna just to get image informatoin by this method but not working for me

   public async Task<AnalysisResult> GetImageDescription(Stream imageStream)
        {
            VisionServiceClient visionClient = new VisionServiceClient("eadc0b749ddc4795beejkdea35905d0e", "https://westcentralus.api.cognitive.microsoft.com/vision");
            VisualFeature[] features = { VisualFeature.Tags, VisualFeature.Categories, VisualFeature.Description };
            var imageDesc = await visionClient.AnalyzeImageAsync(imageStream, features.ToList(), null);
            return imageDesc;
        }
ankittyagii commented 4 years ago

Someone wants to tell me if I'm doing well here, that's what the app returns.

image

Yes you are doing good.. you may proceed with other functionality