Closed Alexufo closed 8 years ago
Could you please provide the full script that's failing?
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
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:
I got these segments:
You can use the TRAIN command to segment an entire folder of images.
Thanks! This maybe need change in documentation. But may be this is only my own English language understanding.
TESTSEGMENT always falling