Image to text
Convert image (PNG, JPG) to text
Object structure
Parameter
Type
Required
Value
Code example (Python)
import time
import requests
# Creat job
json_data = {
"api_token": "YOUR_API_KEY",
"data": {
"type_job": "textcaptcha",
"body": "image as base64 encoded"
}
}
createJob = requests.post("https://betacaptcha.com/api/createJob", json=json_data)
# Get job result
json_data = {
"api_token": "YOUR_API_KEY",
"taskid": createJob.json()["taskid"]
}
getJobResult = requests.post("https://betacaptcha.com/api/getJobResult", json=json_data)
if getJobResult.json()["status"] != "running":
result = getJobResult.json()["result"]
print(">> Result:", result)Note
Last updated