- OCR and Read (Async)
This code is provided for demo purposes only for course AI-102.
- Azure Subscription
- Postman
-
Create or reuse existing multi-service Cognitive service from Azure portal. Pick the key from services settings.
-
Open Postman and import collection from file
OCR.postman_collection.json
by File>Import menu. -
Test OCR mode by choosing
POST OCR
from the library and updateOcp-Apim-Subscription-Key
in headers with the key you copied above. Then provide a link to the image for reading text from. The link should be updated fromBody
of request. eg example. ClickSend
button. Response should return you JSON close to following format: -
Test Read mode by choice POST Reading Request from library and update
Ocp-Apim-Subscription-Key
in headers with key you copied above. Then provide a link to the image for reading text from. The link should be updated fromBody
of request. eg example. ClickSend
button.Note that return body for this request can be empty
-
From the
Headers
of response above copy link fromOperation-Location
. The link should be updated in the library method GET Reading Response. The value of headerOcp-Apim-Subscription-Key
should be updated with key value as well. ClickSend
button. Response should return you JSON close to following format: