阅读此内容:https ://benheubl.github.io/data%20analysis/fr/并尝试关注。
我将两个 python 代码分开,在运行一个之后,我复制了视频位置。但到目前为止还不能进入第 2 阶段,即得到结果,然后将其保存以供 R 分析。我的响应文件是
getResponse.text is :
{"status":"Failed","progress":null,"createdDateTime":"2016-10-
23T12:03:50.525844Z","lastActionDateTime":"2016-10-
23T12:03:50.5414685Z","message":"Failed to start job."}
Traceback (most recent call last):
File "...face-recognition1-after-waiting.py", line 63, in <module>
rawData = json.loads(json.loads(getResponse.text)
['processingResult'])
KeyError: 'processingResult'
关键是对的,前面的反应也ok:
202
{'Content-Length': '0', 'Expires': '-1', 'X-AspNet-Version': '4.0.30319', 'Operation-Location': 'https://api.projectoxford.ai/emotion/v1.0/operations/aad68da1-38e4-4722-8c64-cfbf19d1de97', 'X-Powered-By': 'ASP.NET', 'apim-request-id': '7cdb9bf5-234e-4566-afeb-b68a0dfd25df', 'Pragma': 'no-cache', 'Cache-Control': 'no-cache', 'Date': 'Sun, 23 Oct 2016 12:03:52 GMT'}
似乎无法继续进行......有什么帮助吗?