On Thu, Jan 10, 2013 at 10:31 PM, newbie <duong...@gmail.com> wrote:
> I am trying to scale the original image larger by pixScale function of
> Leptonica for the input of Tesseract OCR, however, I see that the resolution
> of dest image is increased as well. For example,  I have pix with 300DPI,
> but the if I scale to 3x, then the dest image's resolution will be 900 DPI.
> I have no idea if it is good or bad as I think 300 DPI is good enough.
> Could you please advise me which is the best solution for input image for
> Tesseract?

Offhand, I don't know why leptonica does this but for example, looking
at pixScaleGrayLI(), I can see:

    pixScaleResolution(pixd, scalex, scaley);

This is in pix1.c, and simply changes the resolution without messing
with anything else. So, if you don't like 900dpi, you can just call
pixSetResolution() to set them back to 300.

-- 
You received this message because you are subscribed to the Google
Groups "tesseract-ocr" group.
To post to this group, send email to tesseract-ocr@googlegroups.com
To unsubscribe from this group, send email to
tesseract-ocr+unsubscr...@googlegroups.com
For more options, visit this group at
http://groups.google.com/group/tesseract-ocr?hl=en

Reply via email to