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

How to optimally prepare the data #144

Open
lorenzob opened this issue Mar 19, 2018 · 0 comments
Open

How to optimally prepare the data #144

lorenzob opened this issue Mar 19, 2018 · 0 comments

Comments

@lorenzob
Copy link

lorenzob commented Mar 19, 2018

Hi, I'd like to know what is the recommended/optimal data preparation for training (and recognition, if different).

For example:

  • is it better to use a grayscale image or a binary one?
  • is it better to leave some white margins (left/right, top/bottom) or trim tight to the text(*)? In the first case, the "target_height" should include the margin or not?
  • does it perform some kind or text straightening/dewarping or should I do it?
  • any other things to consider?

Thanks.

(*) I'm asking this because when I started to using it, it was common for the very first letter to be discarded and adding some white margin seemed to fix it. But I was using very little data and maybe it was just a coincidence. The uw3 samples also have a small border.

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

1 participant