You have to login in order to post a reply to this topic.

5 replies [Last post]
scotteve
scotteve's picture
User offline. Last seen 1 year 31 weeks ago. Offline
Joined: 06/15/2010
Posts: 2

It would be nice to be able to OCR an image area an place it into a variable. The automation script could then react to the text.

Thanks.

D.M.Altizer
User offline. Last seen 1 year 11 weeks ago. Offline
Joined: 01/12/2010
Posts: 204
Re: OCR image area.

 I'm not sure whether there are plans to add this feature in the future, but this is actually doable at the moment. The only thing that you need is Microsoft Office with MODI (Microsoft Office Document Imaging) installed. It is not included in the default options when you install Microsoft Office, so you will manually have to select that it will be installed.

MODI is the OCR engine that ships with Microsoft Office. You can use VBScript to OCR an image file using MODI and retrieve the results in a variable in WinAutomation.

I have attached 2 jobs that demonstrate how you can OCR the entire screen: depending on your OS type (32 or 64 bit) you should run the corresponding job. 

Finally, you can OCR only the active window if you change the "Take Screenshot" action to grab a screenshot of the foreground window.

AttachmentSize
OCR_Screen_32bit_version.waj 16 KB
OCR_Screen_64bit_version.waj 17 KB
__________________

==Dedicated Automation Solutions==

__________________

==Dedicated Automation Solutions==

scotteve
scotteve's picture
User offline. Last seen 1 year 31 weeks ago. Offline
Joined: 06/15/2010
Posts: 2
Re: OCR image area.

Thanks for the solution.

D.M.Altizer
User offline. Last seen 1 year 11 weeks ago. Offline
Joined: 01/12/2010
Posts: 204
Re: OCR image area.

 No problem! :)

__________________

==Dedicated Automation Solutions==

__________________

==Dedicated Automation Solutions==

Jkan
Jkan's picture
User offline. Last seen 4 weeks 19 hours ago. Offline
Joined: 11/07/2010
Posts: 56
Re: OCR image area.

abbyy screenshot reader for free (maybe time limited)
http://www.abbyy.com/bonusSR/
 
this tool can convert screenshot areas in editable plain text. enjoy.

Samantha
Samantha's picture
User offline. Last seen 16 hours 38 min ago. Offline
Joined: 04/23/2010
Posts: 1337
Re: OCR image area.

Thank you for sharing JKan

:)
Samantha

__________________

Rome wasn't built in a day..

__________________

Rome wasn't built in a day..