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

Image Preprocessing #7

Open
Titalah opened this issue Oct 7, 2020 · 0 comments · Fixed by #12, #14 or #15
Open

Image Preprocessing #7

Titalah opened this issue Oct 7, 2020 · 0 comments · Fixed by #12, #14 or #15
Projects

Comments

@Titalah
Copy link
Collaborator

Titalah commented Oct 7, 2020

Images must be prepared for OCR use to limit impurities and clarify the text, meaning:

  • Image rotating
    It is asked to be able to rotate manually or automatically, possibly with the UI and/or with simple text bloc orientation detection?

  • Image grayscaling
    Transform the colored images into a more usable grayscaled image with the following formula given by Leo:
    L = 0.2126 × R + 0.7152 × G + 0.0722 × B

  • Image constrasting
    The grayscaled image must become a matrix of black and white. Using @FlorianDrevet method we should try to test a threshold value for the contrast, where everything under it will become black and everything higher will become white.

  • Noise suppression *optional
    An algorithm to delete noises on the image must be found in order for the OCR to render better text reading and formatting (meaning we should take in account that the noise can interfere with text bloc/paragraph detection)

The end result must be a matrix of RGB that should end in black and white, or comprised of exclusively 1s and 0s

@Titalah Titalah added this to To do in OCR via automation Oct 7, 2020
@Titalah Titalah added this to the Pré-traitement milestone Oct 7, 2020
@d4ilyrun d4ilyrun moved this from To do to In progress in OCR Oct 8, 2020
@d4ilyrun d4ilyrun moved this from In progress to To do in OCR Oct 8, 2020
@d4ilyrun d4ilyrun moved this from To do to In progress in OCR Oct 8, 2020
This was linked to pull requests Oct 8, 2020
@d4ilyrun d4ilyrun linked a pull request Oct 22, 2020 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
OCR
In progress
1 participant