Microsoft Power Automate, is a software by Microsoft for automation of recurring tasks. It is part of the Microsoft Power Platform line of products together with products such as Power Apps and Power BI. More Details here.
Microsoft cognitive services enables users to accelerate decision-making using artificial intelligence without requiring machine learning expertise.
Desktop flows are the existing robotic process automation (RPA) capabilities in Power Automate and enable to automate all repetitive desktop processes. It also provides a wide variety of Microsoft cognitive actions that allow you to integrate this functionality into your flows. Text analysis, computer vision, and spell checking are all tasks that Microsoft cognitive actions can perform. More Details here.
The Microsoft cognitive computer vision - Optical character recognition (OCR) action allows you to extract printed or handwritten text from images, such as photos of street signs and products, as well as from documents—invoices, bills, financial reports, articles, and more.
Reading this article, you can learn how to extract text with Microsoft cognitive computer vision - OCR action in Desktop flow using Microsoft Power Automate.
The following important tools are required for developing Microsoft Power Automate,
- Windows 10/11 (Recommended)
- Power Automate Desktop - Download the Power Automate installer
- Microsoft Azure account - https://azure.microsoft.com/en-in/
Now we can discuss step by step App development.
Step 1
Open Microsoft Power Automate -> New Flow
Next, Give the Flow name as PADCogOCR, Click the Create button,
After that, we are able to see the Desktop flow,
Step 2
For Testing Microsoft cognitive computer vision - OCR image action,
First, Get the Azure cognitive service Subscription details - Refer the link for creating a Coginitive service in Microsoft Azure.
The Sample Image, Image file is,
Next, Add the OCR image action, Set the Server location Parameter as West US 2, Subscription key Parameter as ************** and Provide image Parameter as From file, Image file Parameter as C:\Users\shanv\Desktop\Sample Img.jpg, Language Parameter as en and Variable Produced Parameter as %JSONResponse% and Click Save Button
For Displaying Result, Add the Display message action and Set the Message box Title Parameter as Display OCR Result, Message to display Parameter as %JSONResponse% Click Save Button
Now, Save the PADCogOCR Desktop Flow,
Step 3
Now we can run your PADCogOCR Desktop Flow in Microsoft Power Automate, and the output of the PADCogOCR is,
Summary
Now you have successfully tested Microsoft cognitive computer vision - OCR action in Desktop flow - PADCogOCR in Microsoft