Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Can you help me to solve this captcha? #76

Open
miguelreb opened this issue Jul 25, 2023 · 1 comment
Open

Can you help me to solve this captcha? #76

miguelreb opened this issue Jul 25, 2023 · 1 comment
Labels

Comments

@miguelreb
Copy link

miguelreb commented Jul 25, 2023

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
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants