Successfully reported this slideshow.
We use your LinkedIn profile and activity data to personalize ads and to show you more relevant ads. You can change your ad preferences anytime.

Xamarin で Cognitive Services を使う

466 views

Published on

2019/1/22 の「Cogbot勉強会!#19 - QnA Maker & LT Night !」
https://cogbot.connpass.com/event/115061/
で LT したスライドです。

Published in: Mobile
  • Be the first to comment

  • Be the first to like this

Xamarin で Cognitive Services を使う

  1. 1. // var faceClient = new FaceClient(new ApiKeyServiceClientCredentials("<API_KEY>")){ Endpoint = "<Endpoint>" }; // API var faces = await faceClient.Face.DetectWithUrlAsync("<Url>", true, false, faceAttributes);
  2. 2. // var computerVisionClient = new ComputerVisionClient(new ApiKeyServiceClientCredentials("<API_KEY>")){ Endpoint = "<Endpoint>" }; // ImageAnalytics API var analysisResult = await computerVisionClient.AnalyzeImageAsync("<URL>", features, null, "ja"); // OCR API var ocrResult = await computerVisionClient.RecognizePrintedTextAsync(true, "<URL>", "ja");
  3. 3. // var client = new TextAnalyticsClient(new TextAnalyticsApiKeyServiceClientCredentials()){ Endpoint = "<Endpoint>" }; // API var result = await client.SentimentAsync(new MultiLanguageBatchInput( new List<MultiLanguageInput> { new MultiLanguageInput("en", "0", "<InputText>"), }));
  4. 4. // var client = new VisualSearchClient(new ApiKeyServiceClientCredentials("<API_KEY>"); // API var visualSearchResults = await client.Images.VisualSearchMethodAsync(image: imageStream, market: "en- us", knowledgeRequest: (string)null);

×