AiPacino / tesseract-ocr

Automatically exported from code.google.com/p/tesseract-ocr
Other
2 stars 0 forks source link

Add deterministic flag to text2image #1134

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
This patch adds the bool flag --deterministic which disables the randomness in
the degrade_image routine. This is useful when it's important to be
able to regenerate precisely the same image files from the same
commands.

It's off by default, so the default behaviour isn't altered by this patch.

Original issue reported on code.google.com by nick.wh...@durham.ac.uk on 14 Mar 2014 at 5:47

Attachments:

GoogleCodeExporter commented 9 years ago
OK. In the end I decided to bite the bullet and just write a random number 
generator.
It is good enough for the required uses and provides a deterministic behavior 
even on windows.

Original comment by theraysm...@gmail.com on 25 Apr 2014 at 1:00

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r1082.

Original comment by theraysm...@gmail.com on 25 Apr 2014 at 1:07