Feauture Request: OCR

Bug reports.
User avatar
sdaly
Posts: 238
Joined: Mon May 10, 2010 11:04 am
Location: Dundee, Scotland

Feauture Request: OCR

Post by sdaly » Mon Aug 09, 2010 12:39 pm

It would be very useful if Ranorex could support optical character recognition. In one of our applications we are going to have to use image based testing on certain legacy controls. The items I am trying to work with are just text though. It would be great if we could do the following -

Dim text as Ranorex.Text = Ranorex.OCR.FindSingle("String to find", adapter.DefaultSearchTimeout)
text.click

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Feauture Request: OCR

Post by Support Team » Mon Aug 09, 2010 3:56 pm

Hi,

Thanks for your suggestion.
OCR is already on our internal feature request list and will be available in a future release of Ranorex.

Regards,
Peter
Ranorex Team

User avatar
sdaly
Posts: 238
Joined: Mon May 10, 2010 11:04 am
Location: Dundee, Scotland

Re: Feauture Request: OCR

Post by sdaly » Tue Aug 24, 2010 4:52 pm

Hi

That's good news! Do you have any idea of when this feature will be released? This will have an influence on our strategy!

Thanks
Scott

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Feature Request: OCR

Post by Support Team » Tue Aug 24, 2010 5:32 pm

Scott,

We are currently experimenting with (pixel-based) OCR, but this is quite challenging to get right.
Another way, which will work in many cases, especially with legacy controls and completely owner-drawn applications, is capturing GDI text API calls.

Because both variants require a certain amount of voodoo, and largely depend on the AUT, there will probably be an experimental release before we integrate it into our API and tools.

For the OCR part, feel free to send screenshots of your applications/controls to [email protected] and we will add it to our test/training image collection.

Michael
Ranorex Team

User avatar
sdaly
Posts: 238
Joined: Mon May 10, 2010 11:04 am
Location: Dundee, Scotland

Re: Feauture Request: OCR

Post by sdaly » Wed Aug 25, 2010 9:07 am

I have sent an email with some test images....

atom
Posts: 357
Joined: Sun Dec 07, 2008 11:14 pm
Location: Dublin, Ireland

Re: Feauture Request: OCR

Post by atom » Wed Aug 25, 2010 4:15 pm

Hiya

We had a problem with owner drawn menu items from BCGSoft
We solved that by using this little text capture tool:

http://www.skesoft.com/

It can capture text from any window handle
Its not always 100% accurate - but with a little post parsing if fits our needs
Its cheap too!

Regards

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Feauture Request: OCR

Post by Support Team » Wed Aug 25, 2010 7:12 pm

Just a short note: The software you mentioned uses an approach similar to what we are currently experimenting with and what Micheal described in his post as "capturing GDI text API calls". I don't know the software from BCGSoft, but the approach looks quite promising for GDI based applications.

Regards,
Alex
Ranorex Team

atom
Posts: 357
Joined: Sun Dec 07, 2008 11:14 pm
Location: Dublin, Ireland

Re: Feauture Request: OCR

Post by atom » Wed Aug 25, 2010 7:54 pm

Yep OCR from a bitmap as far as I know is quite tricky
Above tool uses Windows API hooks as you mentioned
Its not 100% perfect - so if Ranorex can do better, I will be most pleased!

User avatar
sdaly
Posts: 238
Joined: Mon May 10, 2010 11:04 am
Location: Dundee, Scotland

Re: Feauture Request: OCR

Post by sdaly » Thu Aug 26, 2010 8:28 am

Atom - I just tried that tool, it works very well grabbing the text for our legacy app. I'm wondering though how I would know the location of the text on the screen to click it?

Ranorex - If this approach could be implemented so we could do the following, I will be amazed!

Dim textItem As Ranorex.text = host.local.GDI.findSingle("textToFind")
textItem.Click

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Feauture Request: OCR

Post by Support Team » Thu Aug 26, 2010 9:22 am

sdaly wrote:m textItem As Ranorex.text = host.local.GDI.findSingle("textToFind")
textItem.Click
Thanks for your suggestions! We will consider them and try to integrate such a feature as seamless as possible into the existing Ranorex API :)

Regards,
Alex
Ranorex Team

timpowell6
Posts: 1
Joined: Thu Oct 04, 2012 1:34 pm

Re: Feauture Request: OCR

Post by timpowell6 » Thu Oct 04, 2012 1:40 pm

I see the last post in this thread regarding OCR was 2 years ago. Any updates to how close you are to adding OCR to Ranorex since then? Is there a Ranorex Beta available that includes OCR? I'm using QTP 11 and the OCR on there works great, but considering a less expensive tool with a run-time license structure, and I don't want to go back to full-on bitmap checkpoints on our PDA apps. Thanks!

User avatar
Support Team
Site Admin
Site Admin
Posts: 12145
Joined: Fri Jul 07, 2006 4:30 pm
Location: Houston, Texas, USA
Contact:

Re: Feauture Request: OCR

Post by Support Team » Fri Oct 05, 2012 2:51 pm

Hi,

There are currently no plans for OCR. Did you already check if Ranorex is able to identify your elements, if not I would suggest downloading the free trial version of Ranorex in order to check if it meets all your needs.
Here is the link to the download page: Free Trial.

Regards,
Markus
Ranorex Support Team