Oxford Emotion API [英] Oxford Emotion API
问题描述
HI伙计们!
我想在c#中使用Oxford Emotion API,但我不知道从哪里开始。
<我得到了程序集,得到了微软的激活密钥。
我做了 一个应用程序拍照但我不知道如何将Emotion API应用到我的项目...任何建议?
谢谢!
你熟悉NuGet吗? 如果是这样,你应该在这里获得客户端库:http://www.nuget.org/packages/Microsoft.ProjectOxford.Emotion
或者,你可以在这里获得该代码的源代码:https://github.com/Microsoft/ProjectOxford-ClientSDK/tree/master/Emotion/Windows/ClientLibrary
C#代码将是:
使用Microsoft.ProjectOxford.Emotion;
使用Microsoft.ProjectOxford.Emotion.Contract;
var client = new EmotionServiceClient(YOUR- API-KEY);
$
var emotions = await client.RecognizeAsync(YOUR-IMAGE-AS-STREAM);
HTH
HI guys!
i'm tring to use Oxford Emotion API in c# but i have not idea where to start.
I got assembly end got the activation key from Microsoft.
I made an application to take pictures but i don't know how to apply Emotion API to my project...any suggest?
Thanks!
Are you familiar with NuGet? If so, you should get the client library here: http://www.nuget.org/packages/Microsoft.ProjectOxford.Emotion
Alternatively, you can get the source to that code here: https://github.com/Microsoft/ProjectOxford-ClientSDK/tree/master/Emotion/Windows/ClientLibrary
The C# code would be something along the lines of:
using Microsoft.ProjectOxford.Emotion;
using Microsoft.ProjectOxford.Emotion.Contract;var client = new EmotionServiceClient(YOUR-API-KEY);
var emotions = await client.RecognizeAsync(YOUR-IMAGE-AS-STREAM);HTH
这篇关于Oxford Emotion API的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!