Upgrade to Pro — share decks privately, control downloads, hide ads and more …

Meetup Paris Cognitives Services #2 - Azure Vision

Meetup Paris Cognitives Services #2 - Azure Vision

Quick presentation of Azure Vision capabilities

Sylvain PONTOREAU

November 02, 2017
Tweet

More Decks by Sylvain PONTOREAU

Other Decks in Technology

Transcript

  1. Microsoft's vision reset comes after CEO of Google began saying

    that the world is shifting from being mobile-first to AI-first.
  2. "a cat lying on a bed" with probability of 87%

    Description - "indoor" with probability of 94% - "cat" with probability of 94% Tags - "animal_cat" with probability of 87% Category
  3. - Our mission - Empower every person - and every

    organization - on the planet to - achieve more. Text - HELLO COGNITIVES - SERVICES - PARIS Text
  4. JSON { "boundingBox": [1112, 597, 1360, 596, 1361, 614, 1113,

    615], "text": "Dossier UWUTWL", "words": [{ "boundingBox": [1115, 594, 1221, 596, 1218, 617, 1112, 615], "text": "Dossier" }, { "boundingBox": [1242, 596, 1364, 598, 1361, 620, 1239, 617], "text": "UWUTWL" }] }
  5. male Gender 53 Age No Makeup Happiness Emotion No Beard

    Yes Smile Blond & Gray Hair color x=509, y=714 Nose tip
  6. Detection Attributes Verification Similar Group ... Location and size Pose,

    Gender, Age, Hair … Authentication, Identity Match faces Goup by similarity
  7. Emotion Probabilities Surprise "scores": { "anger": 9.29041E-06, "contempt": 0.000118981574, "disgust":

    3.15619363E-05, "fear": 0.000589638, "happiness": 0.06630674, "neutral": 0.00555004273, "sadness": 7.44669524E-06, "surprise": 0.9273863 }
  8. var client = new HttpClient(); client.DefaultRequestHeaders.Add("Ocp-Apim-Subscription-Key", "myKey"); string uri =

    "https://westeurope.api.cognitive.microsoft.com/emotion/v1.0/recognize?"; using (var content = new ByteArrayContent(myImageAsByteArray)) { content.Headers.ContentType = new MediaTypeHeaderValue("application/octet-stream"); var response = await client.PostAsync(uri, content); var json = await response.Content.ReadAsStringAsync(); }
  9. var client = new HttpClient(); client.DefaultRequestHeaders.Add("Prediction-Key", "myKey"); string uri =

    "https://southcentralus.api.cognitive.microsoft.com/customvision/v1.0/Prediction/{model_id}/image"; using (var content = new ByteArrayContent(myImageAsByteArray)) { content.Headers.ContentType = new MediaTypeHeaderValue("application/octet-stream"); var response = await client.PostAsync(uri, content); var prediction = await response.Content.ReadAsStringAsync(); }