skotz / captcha-breaking-library

Neural network, contour analysis, bitmap vector subtraction CAPTCHA solving library and scripting language with perceptive color space segmentation
GNU General Public License v3.0
81 stars 25 forks source link

TESTSEGMENT #6

Closed Alexufo closed 8 years ago

Alexufo commented 8 years ago

TESTSEGMENT always falling

skotz commented 8 years ago

Could you please provide the full script that's failing?

Alexufo commented 8 years ago
SETMODE, ALL
SETUPSEGMENTER,  BLOB, 15, 15, 6
SETUPSOLVER,     MNN, "0123456789", 20, 20
DEFINEPRECONDITIONS
    REMOVENONCOLOR, 60
    MEDIAN, 1
    BINARIZE, 80
    REMOVESMALLBLOBS, 180, 4, 14
ENDPRECONDITIONS

TESTSEGMENT,"I:\qqq\", "I:\qqq\trainers"

And this is images https://dl.dropboxusercontent.com/u/3013858/qqq.zip

Error jmzt640mgkowyh0uflsuug

skotz commented 8 years ago

I think the problem is that TESTSEGMENT takes a single image as the first parameter, not an entire folder (it's for refining your segmentation logic before segmenting an entire folder). If you change the first parameter to a specific image, it should work.

SETMODE, ALL
SETUPSEGMENTER,  BLOB, 15, 15, 6
SETUPSOLVER,     MNN, "0123456789", 20, 20
DEFINEPRECONDITIONS
    REMOVENONCOLOR, 60
    MEDIAN, 1
    BINARIZE, 80
    REMOVESMALLBLOBS, 180, 4, 14
ENDPRECONDITIONS

TESTSEGMENT, "qqq\017828.bmp", "segments"

With this image:

017828

I got these segments:

000 001 002 003 004 005

You can use the TRAIN command to segment an entire folder of images.

Alexufo commented 8 years ago

Thanks! This maybe need change in documentation. But may be this is only my own English language understanding.