Page 1 of 1

Extract text from within an image

Posted: Fri Mar 27, 2015 4:10 am
by lac
Hello

Is it possible to extract text from within an image using Ranorex?

I know HP's UFT tool has an image method called "GetVisibleText" which allows this. In the attached screenshot I am able to extract "JHT101" and "Puhoi South Bound" from the image.

The app is a Java Web Start desktop application using Swing objects - object spy cannot individually recognise each image, only highlighting the entire frame surrounding the images, so I need image-based recognition - but crucially, also need to extract text from the image as the images are all the same apart from the text.

Does Ranorex have the equivalent? It's the only blocker to us using Ranorex at present.

thanks!

Re: Extract text from within an image

Posted: Mon Mar 30, 2015 1:13 pm
by Support Team
Hello lac,

Unfortunately, it is not possible to read out text information from images. Maybe we can find another way to recognize the images. Please send an email with your requirements to [email protected]

Thanks,
Robert

Re: Extract text from within an image

Posted: Fri Oct 07, 2016 10:28 am
by subodh4u7
Hi,

I too have similar situation where ranorex spy is detecting as whole as screenshot, and would like to extract some text on the captured image. The application is built on Java, swing, OpenGL and it's windows application.

The attached file is whats being identified by spy tool not the text elements.
Can you please anyone suggest about how to get the text and their value. For example I want to read Scale:0.39. How can i get this value.
Support Team wrote:Hello lac,

Unfortunately, it is not possible to read out text information from images. Maybe we can find another way to recognize the images. Please send an email with your requirements to [email protected]

Thanks,
Robert

Re: Extract text from within an image

Posted: Mon Oct 10, 2016 12:56 pm
by jma
Please upload a Ranorex Snapshot of the corresponding UI element. This will give us more detailed information about the element in question. But I'm afraid that it won't be possible to read this text information.

Re: Extract text from within an image

Posted: Mon Oct 10, 2016 1:04 pm
by odklizec
Hi,

In my opinion, the only "working" solution would to extend the opengl window with accessibility information, so Ranorex could track elements and read data from opengl window. It's possible (we did it in my previous work with Catia 3D window), but it's not particularly easy process. And of course, it would require some time and developer(s) to do this. For more details, please check my post here:
http://www.ranorex.com/forum/ranorex-fo ... tml#p37037