skotz / cbl-js

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

Can you please help with this one? #35

Closed HarutEnoqyan closed 4 years ago

HarutEnoqyan commented 5 years ago

captcha

skotz commented 5 years ago

What have you tried so far? You could take a look at this example which also deals with lines.

HarutEnoqyan commented 5 years ago

I have tried this preprocess: function(img) { img.debugImage("debugPreprocessed"); img.convolute([ [0, 1, 0], [0, 1, 0], [0, 0, 0], ], 0.5); img.invert(); img.binarize(180); img.colorRegions(60, false, 1); img.debugImage("debugPreprocessed"); }, model_file: "NEWMODEL.txt", character_set: "ABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789", blob_min_pixels: 50, blob_max_pixels: 200, pattern_width: 25, pattern_height: 25, allow_console_log: true, perceptive_colorspace: true,

skotz commented 5 years ago

You'll want to remove the model_file setting until you've trained the model. Also, you'll need a lot more example images to really find a set of preprocessing commands that work for this system.