How to implement Azure Vision API for Text Extraction
Azure Computer Vision includes Optical Character Recognition (OCR) capabilities. You can use the Read API to extract printed and handwritten text from images and documents. It uses deep learning based models and works with text on a variety of surfaces and backgrounds. These include business documents, invoices, receipts, posters, business cards, letters, and whiteboards. The OCR APIs support extracting printed text in several languages.
Azure configuration
- Register for an account in Microsoft Azure Cloud Platform, The Azure free account includes access to several Azure products that are free for 12 months.
- Create a Cognitive Services resource.
- Make note of the Api Key and the endpoints which are located under “Keys and Endpoint”


Code Breakdown
- Setting Global Variables
- Importing required libraries
- Image Handler
- Geting Asyncronous Endpoint
- Extracting Text From Response
- Visualisation Code
- Write to file
- Integrating all the components