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

Extract text from Image using OCR issue

Hello guyz,

 

I am automating RPA challenge-invoice extraction,  https://rpachallengeocr.azurewebsites.net/

Anjali_Rani_0-1648702853836.png

 

but i am unable to extract the text from image ,I used OCR text to extract the text activity, 

Anjali_Rani_1-1648703156380.png

 

 

but it is not working, giving error as:

Anjali_Rani_2-1648703212381.png

Please help.

 

Also, can i use Wildcard to indicate URL,Like

 

Anjali_Rani_3-1648703360367.png

 

if this is the text---  https://rpachallengeocr.azurewebsites.net/invoices/11.jpg

wanted something like :-  https://rpachallengeocr.azurewebsites.net/invoices/*.jpg

 

 

Please help me into this to automate this RPA challenge.

Every litttle help or suggestion will work.

 

Thanks in advance.

 

 

 

4 REPLIES 4
VJR
Super User
Super User

 

Reading from screen also reads the text of the browser window which is not good.

Downloading the image and then reading it is giving a good output.

 

VJR_0-1648719897509.png

 

VJR
Super User
Super User

Use action for downloading and saving the image.

This saves the image to the folder given in the "Destination folder" parameter.

 

VJR_0-1648720390060.png

 

Hi, Thank you for response.

 

But then , if i have to extract only this much 

Anjali_Rani_0-1649076674926.png

 

How i can acheive that?

 

Please help!!

VJR
Super User
Super User

Once you get the text perhaps you could use regular expressions and get the desired text.

 

VJR_0-1649131804322.png

 

I have printed both together in a single box but,

you could use \d{4}-\d{2}-\d{2} to get the date (enable the first occurrence only)

and (?<=Invoice #).* to get the invoice number

 

This is just a sample test based on general conditions.

Please test the regular expressions for your specific scenarios.

Helpful resources

Announcements
Power Platform Conf 2022 768x460.jpg

Join us for Microsoft Power Platform Conference

The first Microsoft-sponsored Power Platform Conference is coming in September. 100+ speakers, 150+ sessions, and what's new and next for Power Platform.

New Ideas Forum MPA.jpg

A new place to submit your Ideas for Power Automate

Announcing a new way to share your feedback with the Power Automate Team.

MPA Virtual Workshop Carousel 768x460.png

Register for a Free Workshop

Learn to digitize and optimize business processes and connect all your applications to share data in real time.

Super User 2 - 2022 Congratulations 768x460.png

Welcome Super Users

The Super User program for 2022- Season 2 has kicked off!

Top Solution Authors
Top Kudoed Authors
Users online (4,107)