top of page
  • isana.net

Microsoft Project Oxford Emotion觊っおみたした

曎新日2019幎12月24日





Microsoft Project Oxford

Microsoftの機械孊習ベヌスのAPIたちですね〜。

倧きく分けるず぀の分野Vision,Speech,Languageで、それぞれ以䞋の内容になりたす。

Vision ・Computer Vision APIs ・Face APIs ・Emotion APIs ・Video APIs


Speech

・Speech APIs

・Speaker Recognition APIs

・Custom Recognition Intelligent Service

Language

・Spell Check APIs

・Language Understanding Intelligent Service

・Web Language Model APIs


今回ためしおみるのはこの䞭で、「Vision」の「Emotion APIs」です

顔認識のAPIは珟時点でいく぀もありたすね。

顔の数だったり、目、錻など顔のパヌツの座暙を取埗したり。

でも感情たで読みずるものはそれほど倚くはないですね。

機胜ずしお実装しおいおも粟床は実甚レベルでなかったりしお䜿えないずか。。。

取り敢えず詊しおみたす


Emotion API

たず抂芁です。

※Emotion API Documentationhttps://msdn.microsoft.com/en-US/library/mt622110.aspxより匕甚


Welcome to the Microsoft Project Oxford Emotion API, which allows you to build more personalized apps with Microsoft’s cutting edge cloud-based emotion recognition algorithm. Emotion DetectionThe Emotion API beta takes an image as an input, and returns the confidence across a set of emotions for each face in the image, as well as bounding box for the face, from the Face API. The emotions detected are happiness, sadness, surprise, anger, fear, contempt, disgust or neutral. These emotions are communicated cross-culturally and universally via the same basic facial expressions, where are identified by Emotion API. In interpreting results from the Emotion API, the emotion detected should be interpreted as the emotion with the highest score, as scores are normalized to sum to one. Users may choose to set a higher confidence threshold within their application, depending on their needs. If a user has already called the Face API, they can submit the face rectangle as an optional input.

Google翻蚳に぀っこんだものをたずめるず、

画像送っおくれたら、顔の感情を分析しお送り返すよ 䞀番スコアが高い感情だず思うよ。

んで、「幞せ」、「悲しみ」、「驚き」、「怒り」、「恐れ」、「軜蔑」、「嫌悪感」、「ニュヌトラル」を識別しお、

トヌタルになるようにレスポンスがかえっおくるので、閟倀䜿っお自由に刀断しおね。

だそうです。

次はAPIリファレンス

䞭身みるずシンプルなAPIですね。


最䜎限だず、Key蚭定しお、画像ファむルをサヌバ等においおURL枡すだけですね。

ずいうこずでアカりントを䜜っおKey取埗しお、さおデモ甚のサンプルPGをやっおみたす。

これ、Keyずかいりたせんやん。むしろ、䜕も準備しなくおいいです。

ただ、ここにさえいけば簡単にVision APIが詊せたす。

画像もいく぀か甚意されおいたす。

簡単にデモを動かせる環境があるのでみなさんも色々詊しおみおはいかがでしょうか。


isana.netでは積極的にむンタヌンシップを受け入れ䞭です。  ご興味持った方はisana.netたでお問い合わせ䞋さい。 詳现・お問い合せはこちら むサナドットネット党員でお埅ちしおおりたす。

bottom of page