0

I'm trying to modify text2image from the Tesseract OCR training code to output antialiased text.

I've tried tried the suggestions from both Andreas and Constantine in this SO Question: Change font rendering (non-antialiased) with pango but the output is always the same - lots of jagged edges:

enter image description here

Anyone know how to antialias the rendered text?

Danny
  • 2,482
  • 3
  • 34
  • 48

1 Answers1

0

text2image generates black&white (1 BitsPerPixel) images that why so do not see antialiased text.

Also, tesseract uses for training and OCR black&white images, so there is no sense to use/producing antialiased image with text2image...

user898678
  • 2,994
  • 2
  • 18
  • 17