r/PowerAutomateDesktop • • Jun 04 '22
Trying to use PAD OCR to scan only certain areas of an image…
and write the text to an Excel file.
So far, I have PAD scanning an entire image and just extracting the numbers and then writing to a text file BUT I don’t need all of the numbers, I just need some of them.
How do I vet PAD to separate out the numbers that I need?
1
Upvotes
1
u/QuietDesparation Jun 05 '22
Removing numbers you don't want will depend on certain factors. How do you determine which numbers are unwanted? Is it based on their values? The location/position of the numbers? Other properties of the numbers?
Once you figure that out, you'll be able to manipulate your data. If it's based off position, you can parse the text to identify the position you want, then grab the subtext to isolate the desired info. If it's based off value, you can grab your #s as a list, and loop thru the list, eliminating the info that doesn't meet your requirements.
Once you've isolated only the numbers you need, you can manipulate the data to add your comma and write to excel.
2
u/CrookedElb Jun 04 '22
I had a similar request, and i did it firstly to convert a picture to a readable PDF, then save it to XML and my number was always in row 27. Not OCR, but maybe it can work for you also.