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

Create comprehensive test suite #1

Open
Belval opened this issue Sep 19, 2017 · 3 comments
Open

Create comprehensive test suite #1

Belval opened this issue Sep 19, 2017 · 3 comments

Comments

@Belval
Copy link
Owner

Belval commented Sep 19, 2017

As the number of feature grows I can barely check for regression bugs. Therefore a test suite should be made with a continuous integration like TravisCI.

@Belval Belval self-assigned this Sep 19, 2017
@Belval
Copy link
Owner Author

Belval commented Dec 1, 2017

Added some tests for the most used functions. I'll leave the issue open until I satisfied with the coverage.

Current tests are:

  • String from wikipedia random
  • String from test file
  • String from dictionnary
  • Generate image with specified format (64)
  • Generate image with specified extension (.png)
  • Generate image with specified skewing (15)
  • Generate image with specified blur (3)
  • Generate gaussian background
  • Generate plain white backgroung

@William-Stocks
Copy link

Hi,thanks a lot for your wonderful work, there are many excellent ideas in your codes.
Something confused me, may I have a question?
1,The results are only pictures, I wonder why a file with pictures` name and label are not given. I think they are important in a OCR Deep Learning project.
2, How can I generating Samples with Text in non-Latin (English) Scripts, like Chinese or Japanese.
I have read the programs(JarveeLee/SynthText_Chinese_version, gachiemchiep/SynthText),they are not so concise and easy to understand .

@Belval
Copy link
Owner Author

Belval commented Apr 26, 2018

I am glad that you like it!

  1. The label of the image is in the filename. If the image contains "TEST", the image filename will be TEST_#.jpg. If you would rather have the labels in a file I suppose that could be arranged but I see the filename as a more user-friendly (and simple to understand) solution.

  2. Excellent question. I never really spent time on it because it was not my usecase. If you believe this would be an interesting feature for you I can add it.

Also, this is the issue for tests, please see #4

@Belval Belval removed their assignment Jan 30, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants