cancel
Showing results for 
Search instead for 
Did you mean: 
Reply
Hidayat
Helper I
Helper I

Extract Text with OCR

Hi all,

 

I would like to extract text from a website login page after entering the password.

This text is dynamic when the website is loaded each time.

 

Is there a way to identify the specific subregion of text that the OCR needs to read?

 

Regards

Hidayat

 

 

1 ACCEPTED SOLUTION

Accepted Solutions
geavgous
Microsoft
Microsoft

Hi Hidayat, 

 

Thanks for exploring the potential of Power Automate Desktop! Instead of OCR, you could use the Web Automation action , called "Extract Data from Web". This action allows you to select specific web element and get anything you want from it. 

You can learn more by checking the documentation page in Web automation - Power Automate | Microsoft Docs

 

In addtion, you could use the Image based recording for using OCR. You can find more details in Recording in a desktop flow - Power Automate | Microsoft Docs

 

Let me know how it goes!

 

Thanks, 

George

View solution in original post

5 REPLIES 5
DanielOlsson
Helper II
Helper II

On action Extract text with OCR you can choose "Search mode" and add X and Y cords of the area.Screenshot_9.png

Hi @DanielOlsson ,

 

Thanks for the feedback.

I tried this but received an error, Failed to extract text with OCR.

 

For the image to select, I tried both with the text and without text.

 

Image without text to capture

Without Text.PNG

 

Image with text to capture

With Text.PNG

 

Regards

Hidayat

 

geavgous
Microsoft
Microsoft

Hi Hidayat, 

 

Thanks for exploring the potential of Power Automate Desktop! Instead of OCR, you could use the Web Automation action , called "Extract Data from Web". This action allows you to select specific web element and get anything you want from it. 

You can learn more by checking the documentation page in Web automation - Power Automate | Microsoft Docs

 

In addtion, you could use the Image based recording for using OCR. You can find more details in Recording in a desktop flow - Power Automate | Microsoft Docs

 

Let me know how it goes!

 

Thanks, 

George

View solution in original post

MichaelAnnis
Impactful Individual
Impactful Individual

I like using the "Create Tesseract OCR engine" and using the multipliers before using "Extract text with OCR"

Mess with the multipliers until you get the result you need.  The higher the multiplier, the slower the bot; however, it greatly increases the accuracy of the OCR.

 

Best of luck.

Hidayat
Helper I
Helper I

Hi @DanielOlsson@geavgous , @MichaelAnnis ,

Thank you for pointing me into the intended direction.

I manage to get the solution by combining all of you guys feedback 😀

And reading the documentation should instead be the first step. 😅

Awesome work all!

Overview of Workflow

Capture.PNG

Extract text with OCR step

1) Search mode: Selected subregion relative to image

2) Tolerance: Increased to 10

 

Capture2.PNG

 

 

Regards

Hidayat

Helpful resources

Announcements
MPA_User Group Leader_768x460.jpg

Manage your user group events

Check out the News & Announcements to learn more.

V3_PVA CAmpaign Carousel.png

Community Challenge - Giveaways!

Participate in the Power Virtual Agents Community Challenge

Carousel 2021 Release Wave 2 Plan 768x460.jpg

2021 Release Wave 2 Plan

Power Platform release plan for the 2021 release wave 2 describes all new features releasing from October 2021 through March 2022.

PowerPlatform 768x460.png

Microsoft Learn

Check out our new Discover Your Career Path blog post series and get all the details.

Top Solution Authors
Top Kudoed Authors
Users online (2,379)