skotz / cbl-js

JavaScript CAPTCHA solving library
MIT License
155 stars 47 forks source link

Can you help me to solve this captcha? #76

Open miguelreb opened 1 year ago

miguelreb commented 1 year ago

Hi @skotz ! First of all, thanks for all your work... I want solve this captcha but i dont know...

My CBL:

var cbl = new CBL({
    preprocess: function(img) {
        img.debugImage("debugPreprocessed");
                img.cropRelative(26, 5, 68, 5);
                img.debugImage("debugPreprocessed");
                img.removeTransparency();
                img.debugImage("debugPreprocessed");
                img.removeLight(1);
                img.debugImage("debugPreprocessed");
                img.removeHorizontalLine(2);
                img.debugImage("debugPreprocessed");
                img.colorRegions(50, true, 0);
                img.debugImage("debugPreprocessed");
    },
    character_set: "0123456789abcdefghijklmnopqrstuvwxyz",
    exact_characters: 5,
    pattern_width: 30,
    pattern_height: 30,
    blob_min_pixels: 1,
    blob_max_pixels: 10000,
    allow_console_log: true,
    blob_console_debug: true,
    blob_debug: "debugSegmented"
});

And 10 examples of the captcha: stickyImg (6) stickyImg (7) stickyImg (8) stickyImg (9) stickyImg (10) stickyImg stickyImg (1) stickyImg (2) stickyImg (3) stickyImg (4) stickyImg (5)

I cant solve all, is impossible, any recommendations?! Thanks!!!

kodakjerec commented 1 year ago

I use another solution. fixed_blob_locations: Array<{x1,x2,y1,y2}> Used to locate the position of each blob.

var cbl = new CBL({ / Define a method that takes an input CAPTCHA and performs a set of image operations to remove noise. / preprocess: function (img) { img.cropRelative(25, 0, 65, 5); img.debugImage("debugPreprocessed"); img.removeTransparency(1); img.debugImage("debugPreprocessed"); img.colorRegions(10, true); img.debugImage("debugPreprocessed"); }, character_set: "0123456789abcdefghijklmnopqrstuvwxyz", exact_characters: 5, pattern_width: 30, pattern_height: 40, blob_min_pixels: 300, blob_max_pixels: 4000, fixed_blob_locations: [ { x1: 0, x2: 20, y1: 0, y2: 40 }, { x1: 20, x2: 40, y1: 0, y2: 40 }, { x1: 40, x2: 60, y1: 0, y2: 40 }, { x1: 60, x2: 80, y1: 0, y2: 40 }, { x1: 80, x2: 100, y1: 0, y2: 40 }], allow_console_log: true, blob_console_debug: true, blob_debug: "debugSegm ented" }); cbl-model.txt