如何使用视频操作结果中的获取识别从发布到情绪 api 的视频中返回状态和结果?
我可以使用我上传的视频的操作 id 成功运行 Get Recognition in Video Operation Result,但响应没有显示视频的状态和情绪 API 的结果,而只显示以下内容:
StatusCode: 200, ReasonPhrase: 'OK', Version: 1.1, Content: System.Net.Http.StreamContent,
Headers:{
Pragma: no-cache
apim-request-id: 010962c0-f907-4ba3-a7fd-564ddff7f97d
Strict-Transport-Security: max-age=31536000; includeSubDomains; preload
Cache-Control: no-cache
Date: Wed, 02 Nov 2016 02:33:16 GMT
X-AspNet-Version: 4.0.30319
X-Powered-By: ASP.NET
Content-Length: 16048
Content-Type: application/json; charset=utf-8 Expires: -1 }
我尝试在开放的 api 测试控制台中使用相同的 oid
响应返回情绪 api 的状态和结果。
我正在使用 API 参考中的以下代码:
var client = new HttpClient();
var queryString = HttpUtility.ParseQueryString(string.Empty);
// Request headers
client.DefaultRequestHeaders.Add("Ocp-Apim-Subscription-Key", "{subscription key}");
var uri = "https://api.projectoxford.ai/emotion/v1.0/operations/{oid}?" + queryString;
var response = await client.GetAsync(uri);