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

stats_.doc_char_quality is not always initialized in control.cpp #1450

Open
GoogleCodeExporter opened this issue Aug 22, 2015 · 2 comments
Open

Comments

@GoogleCodeExporter
Copy link

Using tesseract as a library and in specific input conditions, Valgrind 
indicates that stats_.doc_char_quality is not initialized in control.cpp, Pass 
5:

BOOL8 good_quality_doc =
    ((page_res->rej_count / static_cast<float>(page_res->char_count)) <=
     quality_rej_pc) &&
    (stats_.doc_blob_quality / static_cast<float>(page_res->char_count) >=
     quality_blob_pc) &&
    (stats_.doc_outline_errs / static_cast<float>(page_res->char_count) <=
     quality_outline_pc) &&
    (stats_.doc_char_quality / static_cast<float>(page_res->char_count) >=
     quality_char_pc);

Original issue reported on code.google.com by joao.m.s...@gmail.com on 15 Apr 2015 at 3:19

@GoogleCodeExporter
Copy link
Author

Can you please create test case to demonstrate "specific input conditions"?

Original comment by zde...@gmail.com on 17 Apr 2015 at 6:06

@GoogleCodeExporter
Copy link
Author

That would be quite complicated, involving closed-source code, etc. Unless I'm 
not seeing another way to do this.

I can however make some experiments on my side.

Original comment by joao.m.s...@gmail.com on 17 Apr 2015 at 6:19

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

No branches or pull requests

1 participant