microsoft cognitive - face detect - 从本地上传图像
microsoft cognitive - face detect - upload image from local
我是人脸识别新手。
我看到了很多问题,但我想我还没有找到答案。
我知道要从 Web 上传图片我必须使用 Content-Type application/json 然后我必须将图片 url 放在 JSON 字段中,例如下面。
{
"url":"http://example.com/1.jpg"
}
但是,如果我要从本地上传图片,我应该使用 Content-Type application/octet-stream。
现在,我的问题是:在这种情况下,我必须在 JSON 字段中插入什么?
抱歉我的英语不好,在此先感谢您的回答。
p.s。在这里你可以找到我正在关注的教程:
https://westcentralus.dev.cognitive.microsoft.com/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395236/console
已回答before。
基本上 body 应该是图像的原始位。
我是人脸识别新手。 我看到了很多问题,但我想我还没有找到答案。
我知道要从 Web 上传图片我必须使用 Content-Type application/json 然后我必须将图片 url 放在 JSON 字段中,例如下面。
{
"url":"http://example.com/1.jpg"
}
但是,如果我要从本地上传图片,我应该使用 Content-Type application/octet-stream。 现在,我的问题是:在这种情况下,我必须在 JSON 字段中插入什么?
抱歉我的英语不好,在此先感谢您的回答。
p.s。在这里你可以找到我正在关注的教程: https://westcentralus.dev.cognitive.microsoft.com/docs/services/563879b61984550e40cbbe8d/operations/563879b61984550f30395236/console
已回答before。
基本上 body 应该是图像的原始位。