只需按照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:
問:多長時間手寫識別操作走?
答案:它花費的時間取決於文本的長度。對於更長的文本,可能需要幾秒鐘的時間。因此,識別手寫文本操作完成後,您可能需要等待,然後才能使用獲取手寫文本操作結果操作檢索結果。