Reading CAPTCHA

Ask general questions here.
praveshs
Posts: 1
Joined: Sat Jul 28, 2012 8:56 pm

Reading CAPTCHA

Post by praveshs » Sat Jul 28, 2012 9:00 pm

Hi,

With the help of RANOREX tool, Could we be able to read text from images?
or is it possible to automate CAPTCHA?

Thanks
Last edited by praveshs on Mon Jul 30, 2012 1:52 pm, edited 2 times in total.

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

Re: Reading text from Image

Post by Support Team » Mon Jul 30, 2012 11:45 am

Hi,

if the text is in the picture, it is not possible to read the text - since it is a picture.
What you can do is an image based validation of your image. Maybe this helps you in any way. See Image-Based Automation.

Kind Regards,
Larissa
Ranorex Support Team
.
Image

WorkTech
Posts: 15
Joined: Tue Jan 08, 2013 5:55 pm

Re: Reading CAPTCHA

Post by WorkTech » Thu Apr 18, 2013 8:50 pm

I see this was last asked back in July 2012, and Ranorex is now on 4.0.3

Has there been any advances in testing with Captcha ??

We have a requirement to test our online regristration process, which includes;
1 - Responding to a random Captcha image
2 - Responding to a verification email

Thanks in advance,

User avatar
Ciege
Ranorex Guru
Posts: 1335
Joined: Thu Oct 16, 2008 6:46 pm
Location: Arizona, USA

Re: Reading CAPTCHA

Post by Ciege » Thu Apr 18, 2013 11:15 pm

The whole point about CAPTCHA is to make sure you are a human and not a computer. It is supposed to be impossible (difficult) for a computer to read the CAPTCHA. Good luck finding any, legitimate, test automation software company to help you with this...
If this or any response has helped you, please reply to the thread stating that it worked so other people with a similar issue will know how you fixed your issue!

Ciege...

User avatar
IanF
Posts: 60
Joined: Thu May 24, 2012 12:37 am
Location: Brisbane, Australia
Contact:

Re: Reading CAPTCHA

Post by IanF » Mon Apr 22, 2013 10:52 pm

I worked on a project that had CAPTCHA validation for users. In the test environment the developers turned this off so we could use automation tools. The actual login process was only a very small part of the test set and the CAPTCHA validation was later tested manualy
Ian Fraser

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

Re: Reading CAPTCHA

Post by Support Team » Wed Apr 24, 2013 5:11 pm

Hello,

Unfortunately, Ranorex doesn't provide a way to get a text out of an image.
Therefore, it's not possible to automate CAPTCHA.

Regards,
Markus (T)
.
Image

WorkTech
Posts: 15
Joined: Tue Jan 08, 2013 5:55 pm

Re: Reading CAPTCHA

Post by WorkTech » Mon May 06, 2013 7:09 pm

Thanks for the tip Ian. We had our developers turn off the Captcha and Account Verification for our testing scripts.

Larry

User avatar
IanF
Posts: 60
Joined: Thu May 24, 2012 12:37 am
Location: Brisbane, Australia
Contact:

Re: Reading CAPTCHA

Post by IanF » Tue May 07, 2013 3:26 am

Larry

Pleased I could be of help.
Ian Fraser

mdgairaud
Posts: 87
Joined: Sun Aug 05, 2012 11:59 am
Location: Bilbao, Spain

Re: Reading CAPTCHA

Post by mdgairaud » Mon May 20, 2013 3:40 pm

Hi,

Not a 100% working solution but it can works if the word isn't deformed, twisted, enlarged... but we use those methods to overide some simple captcha:

method1 (used with different width characters)):
- save image to hard disk and turn it to a B/W to eliminate all noise.
- use Tesseract (google it) program to OCR it and save text to a file
- read the txt file with the scanned text and use it in your automation
accuracy % : <50%


method2 (used with numbers and same width characters):
- save image and make slices of the same size with all characters
- turn every slice to B/N
- every slice must have the same size in to order to make some control pixels
- check if control pixels are black in order to check what number is

for example to check for an '8', you must check for pixels that make 8 different from others numbers (marked as '#')

Code: Select all

/0123456
0···#···
1·······
2#·····#
3·······
4···#···
5·······
6#·····#
7·······
8···#···
not the best solution but it works fine with an accuracy of ~95%


regards,
Mateo.