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

ccv_swt_default_params fields: any docs? I need to trim word detection... #190

Open
marcolino opened this issue Sep 13, 2016 · 0 comments
Open

Comments

@marcolino
Copy link

marcolino commented Sep 13, 2016

Calling swtdetect (which uses ccv_swt_detect_words to detect words) on a scanned image from a book, and postprocessing result to red box each "word" detected, with default params I get this result:

lenin14img_0002-boxed

Input is a 70 MB TIFF image (@ 600 x 600 dpi, 6992 x 4920 pixels).

As you can see it almost perfect, but it has some true negatives and some false positives.

Since my goal is to detect page external "margins"(top, right, bottom, left areas with no text), the result is spoiled by the two bottom false positives.

Is there any documentation about ccv_swt_default_params fields, to avoid these false postives (and possibly decrease true negatives, too)?

const ccv_swt_param_t ccv_swt_default_params = {
    .interval = 1,
    .same_word_thresh = { 0.1, 0.8 },
    .min_neighbors = 1,
    .scale_invariant = 0,
    .size = 3,
    .low_thresh = 124,
    .high_thresh = 204,
    .max_height = 300,
    .min_height = 8,
    .min_area = 38,
    .letter_occlude_thresh = 3,
    .aspect_ratio = 8,
    .std_ratio = 0.83,
    .thickness_ratio = 1.5,
    .height_ratio = 1.7,
    .intensity_thresh = 31,
    .distance_ratio = 2.9,
    .intersect_ratio = 1.3,
    .letter_thresh = 3,
    .elongate_ratio = 1.9,
    .breakdown = 1,
    .breakdown_ratio = 1.0,
};
@marcolino marcolino changed the title ccv_swt_detect_words(): is it possible to trim any threshold? ccv_swt_detect_words: is it possible to trim any threshold? Sep 13, 2016
@marcolino marcolino changed the title ccv_swt_detect_words: is it possible to trim any threshold? ccv_swt_default_params fields: any docs? I need to trim word detection... Sep 13, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant