Microsoft Cognitive Services Tutorial

Microsoft Cognitive Services

画像認識ツールのチュートリアルを試してみた。

画像の中に存在するものを認識してくれる。

docs.microsoft.com

試した結果

写真は自分のTwitterから。

https://pbs.twimg.com/media/DK93DAaVYAAq4dk.jpg:large

  "description": {
    "captions": [
      {
        "confidence": 0.6717567580222624,
        "text": "a person holding a cup"
      }
    ],
    "tags": [
      "person",
      "cup",
      "table",
      "indoor",
      "sitting",
      "food",
      "man",
      "woman",
      "holding",
      "using",
      "glasses",
      "coffee",
      "glass",
      "black",
      "phone",
      "people",
      "sandwich"
    ]
  },
  "metadata": {
    "format": "Jpeg",
    "height": 800,
    "width": 600
  },
  "requestId": "b3e1bc66-92ee-4feb-aed8-255a1ad92136"
}

おーそれっぽい結果になった。

https://pbs.twimg.com/media/DK8n1QuUMAAR-v3.jpg

"description": {
    "captions": [
      {
        "confidence": 0.7312212174173306,
        "text": "a woman holding a plate of food on a table"
      }
    ],
    "tags": [
      "person",
      "table",
      "food",
      "woman",
      "plate",
      "holding",
      "cutting",
      "standing",
      "front",
      "man",
      "girl",
      "chocolate",
      "knife",
      "kitchen",
      "large",
      "sandwich",
      "eating",
      "cake",
      "young",
      "white",
      "people",
      "coffee",
      "cut",
      "cheese"
    ]
  },

女の子とケーキ・・・?

https://pbs.twimg.com/media/DGg0v_yUAAAkgew.jpg

  "description": {
    "captions": [
      {
        "confidence": 0.6271640295388085,
        "text": "a pair of black shoes"
      }
    ],
    "tags": [
      "indoor",
      "table",
      "sitting",
      "pair",
      "top",
      "small",
      "black",
      "orange",
      "phone",
      "hot",
      "dog",
      "purple",
      "blue"
    ]
  },

ちゃんと靴は認識されますね。