How to Get OCR Text activity image in variable

Dear Team,

I have scenario, that I need to preprocess the image which I scraped from Get OCR Text activity. Actually before am going to send tesseract ocr I want to preprocess that image like resize, contract, histogram something then am going to send to OCR. So I need get that image in the variable am not sure how to get that image for further process. Can you please help me out on this.

image

Regards,
Gokul.

@gokulvasant,

Use Load Image activity for this.

Thanks,
Ashok :slight_smile:

Hi,

Can you try the following step?

  1. Use TakeScreenshot activity for your target. And output image type variable (Let’s say img)

  2. Do some image processing

  3. Use OCR activity alone. Set img variable at Image property.

img20240528-1

Regards,

@Yoichi @ashokkarale I have tried both the solutions what you guys said, in this project we can’t go back take screenshot and load image… because already we have used Get OCR Text in more than 1000 places so this is very tedious thing to capture again. I need solution to utilize the image from screenshot folder which I captured already.

Do you mean you want to use Informative Screenshot? If so, it’s not good idea because it’s not same as actual screen image when running, I think.

Regards,