Azure AI Vision – Image Analysis – Text Extraction of Images in Optimizely CMS

In this article, I present a demonstration of how the text extraction feature, provided by the Azure AI Vision service, can be used to extract text from an image uploaded to Optimizely CMS.

The latest version of Image Analysis (4.0) which is part of the Azure AI Vision service, offers the capability to extract printed or handwritten text from images through a unified and performance-enhanced synchronous API. This simplifies the process of obtaining all image insights, including OCR results, through a single API operation. The image utilised for the text extraction is displayed above.

Below is a screenshot illustrating the code utilised for extracting text from an image through the Azure AI Language API.

As presented in the preceding response, the image utilised for text extraction has yielded four lines of text. Subsequently, these sentences are organised into an IList<string> property and published in the CMS. The resulting list is displayed below.