ReCaptchaV2 Classification
Create a task through sync api https://sync.ez-captcha.com/createSyncTask, and get the result directly
If you have received an incorrect image label, please contact us.
Task Type
For the ReCaptcha V2 image recognition solution, we offer the following task types:
Task Type | Description | Price(USD) |
|---|---|---|
ReCaptchaV2Classification | reCaptcha V2 Image recognition task | $0.5/1k |
Please use the form data below when sending a POST request to the API
Parameter | Type | Required | Description |
|---|---|---|---|
clientKey | string | true | Your client key |
type | string | true | Task type, ReCaptchaV2Classification |
image | string | true | The image for the challenge must be in base64-encoded format and must not contain ‘data:image/***;base64,’ |
question | string | true | Question ID, starting with /m/, with search options below |
size | number | true | You can choose from 1, 3 or If it is 3x3, please enter 3 If it is 4x4, please enter 4 If it is 1x1, please enter 1 |
Create Task
Example
POST https://sync.ez-captcha.com/createSyncTask
Content-Type: application/json
{
"clientKey": "YourClientKey",
"task": {
"type": "ReCaptchaV2Classification",
"image":"/9j/4AAQSkZJRgABAgAAAQABAAD/2wBDAAUDBAQEAwUEBAQFBQUGBwwIBwcHBw8KCwkMEQ8SEhEPERATFhwXExQaFRARGCEYGhwdHx8fExciJCIeJBweHx7/2wBDAQUFBQcGBw4ICA4eFBEUHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh4eHh", // base 64,not contain data:image/***;base64
"question": "/m/0pg52", // Challenge ID
"size": 3
}
}Response example
// If it is 3x3 or 4x4
{
"objects": [ 1, 5,8 ], // The position in the image where the user should click, starting with 0
"type": "multi"
}
//If it is 1x1
{
"hasObject": false, // Do you need to click? An explanation is provided below.
"type": "single"
}
Image format
Standard size 3x3: (300x300)
Click on the corresponding location based on the result returned
{
"objects": [0,4,5], // The area of the image to click
"type": "multi"
}Standard size 4x4:(450x450)
Click on the corresponding location based on the result returned
{
"objects": [4, 6, 11, 13, 14, 15], // The positions on the image where you need to click, ranging from 0 to 15
"type": "multi"
}1x1: the thumbnails that appear (100x100) :
After pressing 3x3, if the image is not of the ‘imageselect’ type, the thumbnail will refresh
Resize the thumbnail to 100x100 pixels, send it to the API using the interface above, and the API will return whether a click is required
hasObject indicates whether a click is required
{
"hasObject": true, // Determine whether it is the target object
"type": "single"
}
How to look up a question ID
List of question IDs, for reference only
String | Question |
|---|---|
/m/0pg52 | taxis |
/m/01bjv | bus |
/m/02yvhj | school bus |
/m/04_sv | motorcycles |
/m/013xlm | tractors |
/m/01jk_4 | chimneys |
/m/014xcs | crosswalk |
/m/015qff | traffic_lights |
/m/0199g | bicycles |
/m/015qbp | parking-meters |
/m/0k4j | cars |
/m/015kr | bridges |
/m/019jd | boats |
/m/0cdl1 | palm-trees |
/m/09d_r | mountains-or-hills |
/m/01pns0 | firehydrant |
/m/01lynh | stairs |