只需按照202
响应中返回的Operation-Location
标题即可。
E.g.
$ curl https://westus.api.cognitive.microsoft.com/vision/v1.0/textOperations/2bd07b09-f7da-4028-aad1-afd239303722 \
-H "Ocp-Apim-Subscription-Key: COMPUTER_VISION_API_KEY"
{
"status": "Succeeded",
"recognitionResult": {
"lines": [
{
"boundingBox": [
0,
316,
276,
321,
275,
368,
0,
363
],
"text": "unlikely on my terms.",
...
"text": "writer My real dream is to live and work",
...
"text": "to be a freelance illustrator or a freelance",
...
输入图像:
从https://docs.microsoft.com/en-us/azure/cognitive-services/computer-vision/faq:
问:多长时间手写识别操作走?
答案:它花费的时间取决于文本的长度。对于更长的文本,可能需要几秒钟的时间。因此,识别手写文本操作完成后,您可能需要等待,然后才能使用获取手写文本操作结果操作检索结果。