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

Doc photos taken by cameras #45

Open
zqngetsu96 opened this issue Jul 9, 2021 · 4 comments
Open

Doc photos taken by cameras #45

zqngetsu96 opened this issue Jul 9, 2021 · 4 comments

Comments

@zqngetsu96
Copy link

Hello,

First of all, gotta say that this work is insanely good. I've been trying to apply for pictures taken by cameras instead but as this work is mainly aimed at scanned documents, I've been having fairly noisy results(images below). I've wondered if you have any tips to handle documents that have fairly varying light distribution(not as uniform as the light from a scanner) would it possible to get a clean white background on the image?

Thank you in advance

original
Saved_file copy 3

with noteshrink
page0000

@zvezdochiot
Copy link

zvezdochiot commented Jul 9, 2021

@zqngetsu96
Copy link
Author

@zvezdochiot Oh man thanks that's pretty cool actually it will help a lot in the BW scanning. But for now, I need the color scanning as well. Any leads on thresholding colored images (basically to get a full white background)?

@zvezdochiot
Copy link

zvezdochiot commented Jul 9, 2021

@zqngetsu96

  1. Use PIL to average the original and bw images.
  2. Use T in IntegralThreshold not as a threshold, but as a normalizer: N=(128/(T+1)).

@zqngetsu96
Copy link
Author

Thank you, am gonna try this out :')

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

2 participants