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 determine angle range for skew detection #18

Open
galfar opened this issue Jun 6, 2019 · 0 comments
Open

Auto determine angle range for skew detection #18

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

Comments

@galfar
Copy link
Owner

galfar commented Jun 6, 2019

Right now skew detection is by default done in [-10°, 10°] angle range. This limitation is there to keep the time taken by the detection reasonable for the most likely inputs (scanned pages slightly misaligned). User can change this range with -a parameter.

Also to keep the time down the range is searched in sampling steps of 0.1° so skews lower than this cannot be detected.

Proposal: do a two pass detection. First in a much bigger range that current default (+/-45°?) with bigger sampling step (2-5°?). Then do a finer second pass in a vicinity of skew angle detected by the first rough pass.

No idea how well this could work :slight_smile:

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