AiPacino / tesseract-ocr

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

Patch fixing text2image's --only_extract_font_properties mode to print variant kerning spacing #1139

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
The ok_count == 2 part of the test always failed, which prevented the kerning 
variations from ever being printed. As far as I can tell
it wasn't doing anything useful, but my C++ is (still) rusty, so
some light checking would be wise.

The patch also updates the function description to be in line with the current 
output.

Original issue reported on code.google.com by nick.wh...@durham.ac.uk on 8 Apr 2014 at 9:21

Attachments:

GoogleCodeExporter commented 9 years ago
This could significantly change results after training.
Going to apply this change in a carefully controlled environment.

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

GoogleCodeExporter commented 9 years ago
This patch did make the example in the comments (A+V) output as expected, but 
it doesn't seem to have affected the fact that no kerning variations are 
printed for any ancient greek digrams. I'm not sure why, whether it's the 
ancient greek font, or there is something still not right about the code.

Original comment by nick.wh...@durham.ac.uk on 25 Apr 2014 at 2:30