How to get the text of the image if RawText is not there

Ask general questions here.
premravi
Posts: 128
Joined: Tue Jan 08, 2019 1:55 pm

How to get the text of the image if RawText is not there

Post by premravi » Fri Aug 02, 2019 11:52 am

Hi Team,

I am trying to validate couple of images, let's say "Application Name" and to do that I have to get the text of the image to validate whether the text is same or not
But I got the properties and I am not able to find the Raw Text also for that respective image
Please help me to understand if there is any way like any references, third party plugins or using any assembly or interface in which we can get the text of the image and successfully perform the validation

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

Re: How to get the text of the image if RawText is not there

Post by odklizec » Mon Aug 05, 2019 11:20 am

Hi,

If there is no text available for given element (not even Raw Text), you may be out of luck, unless you implement OCR-based solution into your test? There are many 3rd party OCR libs but I don't remember any successful OCR implementation discussed at this forum. You may check these links:
https://www.google.com/search?q=ocr+sit ... anorex.com
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

premravi
Posts: 128
Joined: Tue Jan 08, 2019 1:55 pm

Re: How to get the text of the image if RawText is not there

Post by premravi » Thu Aug 08, 2019 2:41 pm

Hi,

Thanks a lot for your solution

Can you please help me to integrate OCR based solution in my framework

Like how to download this library and use it in my functions

Please help me

Regards

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

Re: How to get the text of the image if RawText is not there

Post by odklizec » Thu Aug 08, 2019 2:53 pm

Hi,

I'm afraid, I can't help you with this as I'm not using OCR in my tests. So my knowledge of OCR implementation is pretty basic ;) I think you should start with searching this forum. At next, there appears to be several OCR-related nuget packages, available in Ranorex package manager. Check them out. And finally, google OCR + C# samples.
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