使っている写真はこれ。
実物は顔も入っています。
機能:LOGO_DETECTION・・・画面内の企業ロゴを検出します。
結果
{
"responses": [
{}
]
}
ロゴなんてないから結果は返ってこないですね。
機能:LABEL_DETECTION・・・画面の内容に基づいてラベルを追加します。
結果
{
"responses": [
{
"labelAnnotations": [
{
"mid": "/m/013s93",
"description": "t shirt",
"score": 0.98103017
},
{
"mid": "/m/09j2d",
"description": "clothing",
"score": 0.9702155
},
{
"mid": "/m/02wzbmj",
"description": "standing",
"score": 0.8899597
},
{
"mid": "/m/01ssh5",
"description": "shoulder",
"score": 0.85661554
},
{
"mid": "/m/0fly7",
"description": "jeans",
"score": 0.7919443
},
{
"mid": "/m/062581",
"description": "sleeve",
"score": 0.76095957
},
{
"mid": "/m/01bfm9",
"description": "shorts",
"score": 0.7443739
},
{
"mid": "/m/047vlmn",
"description": "outerwear",
"score": 0.738526
},
{
"mid": "/m/01dvt1",
"description": "joint",
"score": 0.6035635
},
{
"mid": "/m/0ds99lh",
"description": "fun",
"score": 0.5950062
},
{
"mid": "/m/0h8krv8",
"description": "top",
"score": 0.5398491
},
{
"mid": "/m/01jwgf",
"description": "product",
"score": 0.5287482
},
{
"mid": "/m/07mhn",
"description": "trousers",
"score": 0.5226776
},
{
"mid": "/m/06rrc",
"description": "shoe",
"score": 0.513172
}
]
}
]
}
なんかいろいろ返ってきました。
中身を見ると
mid・・・エンティティID。一部のIDはGoogleナレッジグラフ検索APIで使えるみたい。
description・・・説明。内容を見るとTシャツとかありますね。
score・・・スコア。説明の合致度みたいなものでしょうか?
自分の写真だとTシャツが一番合致しているようです。
写真の中で面積が広いのがTシャツだからでしょうか?
今回の写真だと人が真ん中にいるのでそれに関するもののスコアが高いと考えれます。
風景の場合だと違ったことが返ってくるのではないでしょうか。
0 件のコメント:
コメントを投稿