recognize_captcha
recognize_captcha($filepath,$type); – recognize the image from disk as a captcha
This command is intended for testing the recognition of captcha texts that you use on your sites. This command may take some time to complete, especially for complex captchas. The command has the following parameters:
$filepath – path to the image file. This can be either a relative (relative to the script folder) or an absolute path to the image file, and almost all image file formats are supported.
$type – captcha type, which can be from 1 to 10. Currently, the following types of captchas are supported:
Type 1: (100%)


Type 2: (100%)


Type 3: (100%)


Type 4: (97%)


Type 5: (for example, this type uses paypal) (85%)


Type 6: (for example, this type uses phpbb) (95%)


Type 7: (91%)


Type 8: (for example, this type uses vbulletin) (100%)


Type 9: (for example, this type uses xanga) (45%)


Type 10: (scode and similar) (Available from version 4.0.8) (100%)



Type 100: OCR recognition of any undistorted text (Available from version 4.6.50) (the percentage of recognition depends on the text)



Type 101: OCR recognition of any undistorted text - in the form of numbers(Available since version 4.9.0) (the percentage of recognition depends on the text)


(command introduced since version 4.0.0)
When executed, the command returns the captcha as a string with the captcha, or <false> if the captcha was not recognized. (string)
well, any other types of captchas are available, which can be recognized by automated captcha recognition systems – anticapcha and captchabot:
recognize_by_anticaptcha – recognize captcha images via anti-captcha
recognize_by_captchabot – recognize captcha images via captchabot