Page 1 of 1

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

Posted: Fri Aug 02, 2019 11:52 am
by premravi
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

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

Posted: Mon Aug 05, 2019 11:20 am
by odklizec
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

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

Posted: Thu Aug 08, 2019 2:41 pm
by premravi
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

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

Posted: Thu Aug 08, 2019 2:53 pm
by odklizec
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.