capmonster-python docs

class ImageToTextTask

class ImageToTextTask

Constructor

ParameterTypeRequiredDefault valuePurpose
client_keyStringYes-Your unique key to solve captchas

Methods

create_task

ParameterTypeRequiredDefault valuePurpose
image_pathStringYes *-Automatically encode with base64
base64_encoded_imageStringYes *-Image body encoded in base64. Make sure to send it without line breaks and as string
moduleStringNo-Name of recognizing module e.g yandex
recognizing_thresholdIntegerNo-Captcha recognition threshold with a possible value from 0 to 100. For example, if a value of 90 was sent to the system, and the problem was solved with confidence of 80, then the money for the solution will not be charged. In this case, the user will receive an ERROR_CAPTCHA_UNSOLVABLE exception
caseBooleanNo-Whether to consider case when deciding or not
numericIntegerNo01 - if the captcha consists of numbers only
mathBooleanNo-true - captcha requires a mathematical action (e.g captcha 2 + 6 = will return the value 8)

Inherited methods

See Capmonster class for inherited methods.

Edit this page on GitHub