- 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.jsonby File>Import menu. -
Test OCR mode by choosing
POST OCRfrom the library and updateOcp-Apim-Subscription-Keyin headers with the key you copied above. Then provide a link to the image for reading text from. The link should be updated fromBodyof request. eg example. ClickSendbutton. Response should return you JSON close to following format: -
Test Read mode by choice POST Reading Request from library and update
Ocp-Apim-Subscription-Keyin headers with key you copied above. Then provide a link to the image for reading text from. The link should be updated fromBodyof request. eg example. ClickSendbutton.Note that return body for this request can be empty
-
From the
Headersof response above copy link fromOperation-Location. The link should be updated in the library method GET Reading Response. The value of headerOcp-Apim-Subscription-Keyshould be updated with key value as well. ClickSendbutton. Response should return you JSON close to following format:


