Extract text from within an image

Ask general questions here.
lac
Posts: 1
Joined: Fri Mar 27, 2015 3:48 am

Extract text from within an image

Post by lac » Fri Mar 27, 2015 4:10 am

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!
Attachments
ImageWithText.PNG
ImageWithText.PNG (1.8 KiB) Viewed 1150 times

User avatar
Support Team
Site Admin
Site Admin
Posts: 11709
Joined: Fri Jul 07, 2006 4:30 pm
Location: Graz, Austria

Re: Extract text from within an image

Post by Support Team » Mon Mar 30, 2015 1:13 pm

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
.
Image

User avatar
subodh4u7
Posts: 68
Joined: Tue Jan 06, 2015 8:26 am

Re: Extract text from within an image

Post by subodh4u7 » Fri Oct 07, 2016 10:28 am

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
Attachments
RepoItem.jpg
RepoItem.jpg (23.31 KiB) Viewed 791 times
Regards,
Subodh

jma
Posts: 111
Joined: Fri Jul 03, 2015 9:18 am

Re: Extract text from within an image

Post by jma » Mon Oct 10, 2016 12:56 pm

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.

User avatar
odklizec
Ranorex Guru
Ranorex Guru
Posts: 3921
Joined: Mon Aug 13, 2012 9:54 am
Location: Zilina, Slovakia

Re: Extract text from within an image

Post by odklizec » Mon Oct 10, 2016 1:04 pm

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
Pavel Kudrys
Ranorex explorer at Descartes Systems

Please add these details to your questions:
  • Ranorex Snapshot. Learn how to create one >here<
  • Ranorex xPath of problematic element(s)
  • Ranorex version
  • OS version
  • HW configuration