Skip to main content
Are you experiencing issues obtaining the token?
Contact support

oocl_rotate_double_new

Example of the oocl_rotate_double_new captcha: a photo of a container ship in port with a white ring and an inner circle overlaid that must be rotated to match the background.

CapMonster Cloud MCP
CapMonster Cloud MCP can also be used to detect and solve CAPTCHA
Attention!

Using proxy servers is not required for this task.


The request must contain three images: background, ring, and circle.

Request parameters​


IMPORTANT: obtain the base64 images directly before creating the task to avoid errors during solving (see section How to get base64).


type<string>required

ComplexImageTask


class<string>required

recognition


imagesBase64<array>required

An array of Base64-encoded images (without the data:image/png;base64, prefix).


Task (inside metadata)<string>required

Task name: "oocl_rotate_double_new"

Create task method​

POST
https://api.capmonster.cloud/createTask

Request

{
"clientKey": "API_KEY",
"task": {
"type": "ComplexImageTask",
"class": "recognition",
"imagesBase64": [
"{background_base64}",
"{ring_base64}",
"{circle_base64}"
],
"metadata": {
"Task": "oocl_rotate_double_new"
}
}
}

Background (background_base64):

Background image (background_base64) for oocl_rotate_double_new: a container ship and cranes with a white circular cut-out on the left and part of a red logo showing at its edge.

Ring (ring_base64):

Ring image (ring_base64) for oocl_rotate_double_new: a circular ring cut from the ship photo with a transparent center, on a white background.

Circle (circle_base64):

Circle image (circle_base64) for oocl_rotate_double_new: a small round piece of the ship photo with part of a red logo, on a white background.

Response

{
"errorId":0,
"taskId":407533072
}

Get task result method​

POST
https://api.capmonster.cloud/getTaskResult

Request

{
"clientKey":"API_KEY",
"taskId": 407533072
}

Response:
The rotation angle of the ring counterclockwise and the circle clockwise, specified in degrees.

{
"errorId":0,
"cost":0.0003,
"status":"ready",
"errorCode":null,
"errorDescription":null,
"solution":
{
"answer":[130.90909],
"metadata":{"AnswerType":"NumericArray"}
}
}

How to get Base64​

Images on pages can be represented either as a URL or already encoded in Base64 format. To find the required value, right-click the captcha image, select Inspect, and carefully examine the Elements section or network requests — there you can find either the image URL or the encoded content.

  1. Open your website where the captcha is displayed in the browser.
  2. Right-click the captcha element and select Inspect.

Chrome DevTools, Elements panel: the captcha img element has a src attribute that starts with data/gif;base64, (underlined); the hover tooltip repeats it as “Current source” in a red frame. This data URI is the Base64 value to send.

Use the SDK library​

Show code (for browser)
// https://github.com/CapMonsterCloud/capmonster-nodejs-captcha-solver

import {
CapMonsterCloudClientFactory,
ClientOptions,
ComplexImageTaskRecognitionRequest
} from "@zennolab_com/capmonstercloud-client";

document.addEventListener("DOMContentLoaded", async () => {

const API_KEY = "YOUR_API_KEY"; // Specify your CapMonster Cloud API key

const client = CapMonsterCloudClientFactory.Create(
new ClientOptions({ clientKey: API_KEY })
);

// Proxies are not required for ComplexImageTaskRecognitionRequest
const ooclRequest = new ComplexImageTaskRecognitionRequest({
imagesBase64: [
"background_base64",
"ring_base64",
"circle_base64",
],
metaData: {
Task: "oocl_rotate_double_new",
},
});

// You can check your balance if necessary
const balance = await client.getBalance();
console.log("Balance:", balance);

const result = await client.Solve(ooclRequest);
console.log("Solution:", result.solution);
});
Show code (Node.js)
// https://github.com/CapMonsterCloud/capmonster-nodejs-captcha-solver

const {
CapMonsterCloudClientFactory,
ClientOptions,
ComplexImageTaskRecognitionRequest,
} = require("@zennolab_com/capmonstercloud-client");

const API_KEY = "YOUR_API_KEY"; // Specify your CapMonster Cloud API key

async function solveOoclRotateDoubleNew() {
const client = CapMonsterCloudClientFactory.Create(
new ClientOptions({ clientKey: API_KEY }),
);

// Proxies are not required for ComplexImageTaskRecognitionRequest
const ooclRequest = new ComplexImageTaskRecognitionRequest({
imagesBase64: [
"background_base64",
"ring_base64",
"circle_base64",
],
metaData: {
Task: "oocl_rotate_double_new",
},
});

// You can check your balance if necessary
const balance = await client.getBalance();
console.log("Balance:", balance);

const result = await client.Solve(ooclRequest);
console.log("Solution:", result.solution);
}

solveOoclRotateDoubleNew().catch(console.error);