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

Sharp and OCR #1230

Closed
kayz1 opened this issue May 16, 2018 · 2 comments
Closed

Sharp and OCR #1230

kayz1 opened this issue May 16, 2018 · 2 comments
Labels

Comments

@kayz1
Copy link

kayz1 commented May 16, 2018

I have a few questions about image preprocessing for OCR. I would like to know to what extend I can use Sharp in following tasks:

  • image DPI - is there a Sharp method for increasing image DPI?
  • Illumination - what Sharp methods can I use to fix lightning and increase contrast?
  • Binarize - what Sharp method can I use to convert image to black and white (not grayscale)?
  • Denoise - what Sharp method can I use to remove noise from image?
@lovell
Copy link
Owner

lovell commented May 17, 2018

Hello, DPI doesn't really mean anything when using bitmap images on screen as it's a print concept.

Please see median for a de-noise operation, threshold for a "binarize" operation and #609 for brightness and contrast.

@lovell
Copy link
Owner

lovell commented May 26, 2018

@kayz1 Hope this answered your question, please re-open with more details if further help is required.

@lovell lovell closed this as completed May 26, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

2 participants