recognize_by_captcha24

recognize_by_captcha24($url,$file,$key,$path=’http://rucaptcha.com’,$is_verbose = true, $rtimeout = 5, $mtimeout = 120, $is_phrase = 0, $is_regsense = 0, $is_numeric = 0, $min_len = 0, $max_len = 0,$frame=-1,$is_rusian=0); - this function is used for recognizing an image as a captcha by the'captcha24' service. Available from version 4.6.50

the function accepts parameters as input:br>
  • $url is the url of the picture if you specify a blank (“”) the picture is taken from the specified file
  • $file – the file with the picture, depending on the value of the parameter $url is used as a repository or source images
  • $key – the key(identifier) user
  • $path – specify the path to the server
  • $is_verbose – reflect the captcha recognition process in the debug window
  • $rtimeout – delay between captcha status polls
  • $mtimeout – waiting time for captcha input
  • $is_phrase – 0 or 1 – flag “2 or more words in captcha”
  • $is_regsense – 0 or 1 – flag “the case of letters in the captcha is set to”
  • $is_numeric – 0 or 1 – flag “captcha consists only of numbers”
  • $min_len – 0 (no restrictions), any other number indicates the minimum length of captcha text
  • $max_len – 0 (without limitation), any other number specifies the maximum length of captcha text
  • $frame – 1 - room frame with a picture
  • $is_russian – 1 - for recognition by Russian-speaking users

    This way this command will look like this in the code:

    $image->recognize_by_captcha24("url of picture","picture file","key");
    After testing, the function returns the result of its work to the script: recognized captcha or string with error information

    PHP example: Python example: C# example: Java Script example: