User Tools

Site Tools


Sidebar

en:objects:image:recognize:recognize_by_ripcaptcha

recognize_by_ripcaptcha

recognize_by_ripcaptcha($url,$file,$key,$path=’http://ripcaptcha.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); - this function is used for recognizing images as captchas by the 'anticaptcha'service

The function accepts parameters as input:

  • $url – this is the url of the image if an empty (“”) is set, the image is taken from the specified file
  • $file – the image file, depending on the value of the $url parameter, is used as a storage or source of the image
  • $key – the user's key(ID)
  • $path – setting the path to the server
  • $is_verbose – reflect the captcha recognition process in the debugging window
  • $rtimeout – delay between captcha status polls
  • $mtimeout – waiting time for captcha input
  • $is_phrase – 0 or 1 – flag “captcha has 2 or more words”
  • $is_regsense – 0 or 1 – flag “the case of letters in the captcha has the value”
  • $is_numeric – 0 or 1 – flag “captcha consists only of numbers”
  • $min_len – 0 (without restrictions), any other digit indicates the minimum length captcha text
  • $max_len – 0 (unlimited), any other digit indicates the maximum length of the captcha text
  • $frame – number of the frame where the image is located

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

    $image->recognize_by_ripcaptcha("image url","image file","USER 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:

     
  • en/objects/image/recognize/recognize_by_ripcaptcha.txt · Last modified: 2020/10/13 11:38 (external edit)