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

Auto thresholding should honor content rectangle #32

Open
galfar opened this issue Jun 16, 2020 · 0 comments
Open

Auto thresholding should honor content rectangle #32

galfar opened this issue Jun 16, 2020 · 0 comments
Labels
DeskewCmdLine enhancement New feature or request
Milestone

Comments

@galfar
Copy link
Owner

galfar commented Jun 16, 2020

First step in the skew detection is thresholding: converting the input image to 1bit black and white. . The trouble is determining the right threshold value - pixels with lower value are considered black
and above are white. As a default, Deskew calculates the threshold automatically (Otsu's method) which works well enough. However, when there are e.g. large dark areas (scanner >> page) the image histogram is affected and the calculated threshold is not ideal for the text.

Content rectangle aka "area of interest" can already be passed to Deskew and auto thresholding
should only take this area into account.

@galfar galfar added enhancement New feature or request DeskewCmdLine labels Jun 16, 2020
@galfar galfar added this to the rls-v1.35 milestone Sep 3, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
DeskewCmdLine enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant