Menu

ইমেজ ক্যাপচা সমাধান করুন

একটি ইমেজ বডি পোস্ট করুন এবং এটি থেকে বার্তা গ্রহণ করুন। কেবল অঙ্ক, অক্ষর, বিশেষ অক্ষর এবং একটি স্পেস থাকতে পারে। GIF অ্যানিমেশনগুলি ৫০০kb অবধি সমর্থিত। "এই ইমেজ সেটটিতে একটি বিড়াল খুঁজে বের করুন এবং এর নম্বরটি প্রবেশ করুন" এর মতো কাস্টম ক্যাপচারগুলি সমর্থিত নয়।

Anti Captcha-তে সকল ক্যাপচা শুধুমাত্র মানব শ্রমশক্তি দ্বারা সমাধান করা হয়, কোনো AI বা OCR সফটওয়্যার জড়িত নয়। আমরা OCR সফটওয়্যার দিয়ে ক্যাপচা সমাধান করার জন্য আমাদের কর্মীদের প্রতারণার চেষ্টা সক্রিয়ভাবে প্রতিহত করি এবং ২০০৭ সাল থেকে লক্ষ লক্ষ কর্মী অ্যাকাউন্ট নিষিদ্ধ করেছি। প্রকৃত মানব উপস্থিতি নিশ্চিত করতে, টেক্সট এন্ট্রির মান পরিমাপ ও স্কোর করতে এবং অনুগত কর্মীদের উৎসাহিত করতে আমরা কয়েক ডজন ভিন্ন ভিন্ন কৌশল প্রয়োগ করি। আমাদের গ্রাহকদের সন্তুষ্টি ও মানসিক প্রশান্তি নিশ্চিত করতে ১০০% ইমেজ শনাক্তকরণের মান অর্জন করাই সবসময় আমাদের লক্ষ্য ছিল।

Python
Node.js
Go
PHP
Java
C#
bash

Python-এ কীভাবে ইমেজ ক্যাপচা সমাধান করবেন

#pip3 install anticaptchaofficial

from anticaptchaofficial.imagecaptcha import *

solver = imagecaptcha()
solver.set_verbose(1)
solver.set_key("YOUR_API_KEY_HERE")

# Specify softId to earn 10% commission with your app.
# Get your softId here: https://anti-captcha.com/clients/tools/devcenter
solver.set_soft_id(0)

# optional parameters, see documentation for details
# solver.set_phrase(True)                      # 2 words
# solver.set_case(True)                        # case sensitivity
# solver.set_numeric(1)                        # only numbers
# solver.set_minLength(1)                      # minimum captcha text length
# solver.set_maxLength(10)                     # maximum captcha text length
# solver.set_math(True)                        # math operation result, for captchas with text like 50+5
# solver.set_comment("only green characters")  # comment for workers
# solver.set_language_pool("en")               # language pool

captcha_text = solver.solve_and_return_solution("captcha.jpeg")
if captcha_text != 0:
    print("captcha text "+captcha_text)
else:
    print("task finished with error "+solver.error_code)

Node.js-এ কীভাবে ইমেজ ক্যাপচা সমাধান করবেন

// npm install @antiadmin/anticaptchaofficial
// https://github.com/anti-captcha/anticaptcha-npm

const ac = require("@antiadmin/anticaptchaofficial");
const fs = require('fs');

const captcha = fs.readFileSync('captcha.png', { encoding: 'base64' });

ac.setAPIKey('YOUR_API_KEY_HERE');

// Specify softId to earn 10% commission with your app.
// Get your softId here: https://anti-captcha.com/clients/tools/devcenter
ac.setSoftId(0);

// Additional flags, see documentation description
// ac.settings.phrase = true;                  // 2 words
// ac.settings.case = true;                    // case sensitivity
// ac.settings.numeric = 1;                    // only numbers
// ac.settings.comment = "only green letters"; // text comment for workers
// ac.settings.math = true;                    // math operation like 50+2
// ac.settings.minLength = 1;                  // minimum amount of characters
// ac.settings.maxLength = 10;                 // maximum number of characters
// ac.settings.languagePool = 'en';            // language pool

ac.solveImage(captcha, true)
    .then(text => console.log('captcha text: '+text))
    .catch(error => console.log('test received error '+error));

Go-এ কীভাবে ইমেজ ক্যাপচা সমাধান করবেন

// Install with:
// go get github.com/anti-captcha/anticaptcha-go
package main

import (
    "fmt"
    "github.com/anti-captcha/anticaptcha-go"
    "log"
)

func main() {
    // Create API client and set the API Key
    ac := anticaptcha.NewClient("API_KEY_HERE")

    // set to 'false' to turn off debug output
    ac.IsVerbose = true

    // Specify softId to earn 10% commission with your app.
    // Get your softId here: https://anti-captcha.com/clients/tools/devcenter
    //ac.SoftId = 1187

    // Make sure the API key funds balance is positive
    balance, err := ac.GetBalance()
    if err != nil {
        log.Fatal(err)
        // Exit program to make sure you don't DDoS API with requests, while having empty balance
        return
    }
    fmt.Println("Balance:", balance)

    // Solve image captcha
    solution, err := ac.SolveImageFile("captcha.jpg", anticaptcha.ImageSettings{
        // Optional settings, see documentation for description
        // Phrase        true,                         // Set to 'true' if the image has 2 or more words
        // CaseSensitive true,                         // Set to 'true' if the image is case-sensitive
        // Numeric       1,                            // Set numbers mode
        // MathOperation true,                         // Set to 'true' if the needs a math operation, like result of 50+5
        // MinLength     1,                            // Set minimum length of the text
        // MaxLength     10,                           // Set maximum length of the text
        // LanguagePool  "en",                         // Set language pool to 'en' for English, 'rn' for Russian
        // Comment       "Type in green characters",   // Optional comment for the task
        // WebsiteURL:   "https://some-website.com/",  // Optional to collect stats in the dashboard by this website
    })
    // OR
    // solution, err := ac.SolveImage("image-encoded-in-base64", anticaptcha.ImageSettings{})
    if err != nil {
        log.Fatal(err)
    }
    fmt.Println("Captcha Solution:", solution)
}

PHP-এ কীভাবে ইমেজ ক্যাপচা সমাধান করবেন

//git clone https://github.com/anti-captcha/anticaptcha-php.git

include("anticaptcha.php");
include("imagetotext.php");

$api = new ImageToText();

//your anti-captcha.com account key
$api->setKey("YOUR_API_KEY_HERE");

//setting file
$api->setFile("captcha.jpg");

//Specify softId to earn 10% commission with your app.
//Get your softId here: https://anti-captcha.com/clients/tools/devcenter
$api->setSoftId(0);

//$api->setPhraseFlag(true);   // 2 words flag
//$api->setCaseFlag(true);     // case sensitivity flag
//$api->setNumericFlag(1);     // only numbers flag
//$api->setMathFlag(true);     // math operation flag
//$api->setMinLengthFlag(1);   // minimum number or characters flag
//$api->setMaxLengthFlag(10);  // maximum number of characters flag
//$api->setLanguagePool("en"); // define language pool (see available pools above)

//Define the source website to collect statistics in your Anti-Captcha dashboard
//$api->setWebsiteURL("https://mywebsite.com/");


//create task in API
if (!$api->createTask()) {
    echo "API v2 send failed - ".$api->getErrorMessage()."\n";
    exit;
}

$taskId = $api->getTaskId();

if (!$api->waitForResult()) {
    echo "could not solve captcha\n";
    echo $api->getErrorMessage()."\n";
} else {
    $captchaText    =   $api->getTaskSolution();
    echo "captcha text: $captchaText\n\n";
}

Java-এ কীভাবে ইমেজ ক্যাপচা সমাধান করবেন

//git clone https://github.com/anti-captcha/anticaptcha-java.git

package com.anti_captcha;

import com.anti_captcha.Api.ImageToText;
import com.anti_captcha.Helper.DebugHelper;

import org.json.JSONArray;
import org.json.JSONException;
import org.json.JSONObject;

import java.net.MalformedURLException;
import java.net.URL;
import java.util.Iterator;
import java.util.concurrent.ThreadLocalRandom;

public class Main {

    public static void main(String[] args) throws InterruptedException, MalformedURLException, JSONException {
        DebugHelper.setVerboseMode(true);

        ImageToText api = new ImageToText();
        api.setClientKey("YOUR_API_KEY_HERE");
        api.setFilePath("captcha.jpg");

        //Specify softId to earn 10% commission with your app.
        //Get your softId here: https://anti-captcha.com/clients/tools/devcenter
        api.setSoftId(0);

        //optional parameters, see documentation
        //api.setPhrase(true);                                    // 2 words
        //api.setCase(true);                                      // case sensitivity
        //api.setNumeric(ImageToText.NumericOption.NUMBERS_ONLY); // only numbers
        //api.setMath(1);                                         // do math operation like result of 50+5
        //api.setMinLength(1);                                    // minimum length of the captcha text
        //api.setMaxLength(10);                                   // maximum length of the captcha text
        //api.setLanguagePool("en");                              // set pool of the languages used in the captcha

        if (!api.createTask()) {
            DebugHelper.out(
                    "API v2 send failed. " + api.getErrorMessage(),
                    DebugHelper.Type.ERROR
            );
        } else if (!api.waitForResult()) {
            DebugHelper.out("Could not solve the captcha.", DebugHelper.Type.ERROR);
        } else {
            DebugHelper.out("Result: " + api.getTaskSolution().getText(), DebugHelper.Type.SUCCESS);
        }
    }

}

C#-এ কীভাবে ইমেজ ক্যাপচা সমাধান করবেন

//git clone https://github.com/anti-captcha/anticaptcha-csharp.git

using System;
using Anticaptcha_example.Api;
using Anticaptcha_example.Helper;
using Newtonsoft.Json.Linq;

namespace Anticaptcha_example
{
    internal class Program
    {
        private static void Main() {

            DebugHelper.VerboseMode = true;

            var api = new ImageToText
            {
                ClientKey = "YOUR_API_KEY_HERE",
                FilePath = "captcha.jpg",
                // Specify softId to earn 10% commission with your app.
                // Get your softId here:
                // https://anti-captcha.com/clients/tools/devcenter
                SoftId = 0

                // Additional flags, see documentation for details
                // Phrase = false,      // 2 words
                // Case = false,        // case sensitivity
                // Numeric = 1,         // numbers only
                // Math = 1,            // math operation like result of 50+5
                // MinLength = 1,       // minimum length of solution
                // MaxLength = 10,      // maximum length
                // LanguagePool = "en"  // language pool, see docs for available pools
            };

            if (!api.CreateTask())
                DebugHelper.Out("API v2 send failed. " + api.ErrorMessage, DebugHelper.Type.Error);
            else if (!api.WaitForResult())
                DebugHelper.Out("Could not solve the captcha.", DebugHelper.Type.Error);
            else
                DebugHelper.Out("Result: " + api.GetTaskSolution().Text, DebugHelper.Type.Success);

        }
    }
}

bash-এ কীভাবে ইমেজ ক্যাপচা সমাধান করবেন

curl -i -H "Accept: application/json" \
-H "Content-Type: application/json" \
-X POST -d '{
    "clientKey":"YOUR_API_KEY_HERE",
    "task":
        {
            "type":"ImageToTextTask",
            "body":"BASE64_BODY_HERE__NO_NEWLINES__NO_EXTRA_TAGS__ONLY_CLEAN_BASE64",
            "phrase":false,
            "case":false,
            "numeric":0,
            "math":false,
            "minLength":0,
            "maxLength":0,
            "languagePool":"en"
        },
    "softId": 0
}' https://api.anti-captcha.com/createTask

টাস্ক অবজেক্ট

প্রোপার্টি ধরণ জরুরী ডিফল্ট মান উদ্দেশ্য
type স্ট্রিং হ্যাঁ ImageToTextTask এক ধরণের টাস্ককে সংজ্ঞায়িত করে।
body স্ট্রিং হ্যাঁ ফাইল বডি base64 এনকোড করা হয়েছে। লাইন ব্রেক ছাড়া এটি পাঠাতে ভুলবেন না। 'data:image/png,' বা অনুরূপ ট্যাগগুলি অন্তর্ভুক্ত করবেন না, কেবল base64!
phrase বুলিয়ান না false
case বুলিয়ান না true
numeric পূর্ণসংখ্যা না 0
math বুলিয়ান না false
minLength পূর্ণসংখ্যা না 0
maxLength পূর্ণসংখ্যা না 0
comment স্ট্রিং না কর্মীদের জন্য অতিরিক্ত মন্তব্য যেমন "লাল টেক্সট লিখুন"। ফলাফল নিশ্চিত নয় এবং সম্পূর্ণরূপে কর্মীর উপর নির্ভর করে।
websiteURL স্ট্রিং না ব্যয়ের পরিসংখ্যানগুলিতে ইমেজ ক্যাপচারগুলির উৎসকে আলাদা করতে ঐচ্ছিক প্যারামিটার।
languagePool স্ট্রিং না en কর্মীদের পুলের ভাষা সেট করে। কেবল ইমেজ ক্যাপচারগুলির জন্য প্রযোজ্য। এই মুহুর্তে নিম্নলিখিত ভাষার পুলগুলি উপলব্ধ:

"en" (ডিফল্ট): ইংরেজি ভাষার সারি
"rn": দেশগুলির গ্রুপ: রাশিয়া, ইউক্রেন, বেলারুশ, কাজাখস্তান

টাস্ক সমাধান অবজেক্ট

প্রোপার্টি ধরণ উদ্দেশ্য
text স্ট্রিং ইমেজ ক্যাপচা থেকে বার্তা
url স্ট্রিং ক্যাপচার ওয়েব ঠিকানা যেখানে আমরা এটি পরবর্তী ২৪ ঘন্টা সংরক্ষণ করব। এটি পরে অপসারণ করা হবে।

প্রতিক্রিয়ার উদাহরণ

{
    "errorId":0,
    "status":"ready",
    "solution":
    {
        "text":"deditur",
        "url":"http://61.39.233.233/1/147220556452507.jpg"
    },
    "cost":"0.000700",
    "ip":"46.98.54.221",
    "createTime":1472205564,
    "endTime":1472205570,
    "solveCount":"0"
}