On Tue, Jan 8, 2013 at 7:58 PM, newbie <duong...@gmail.com> wrote:
> BTW, I just have one more question regarding the pixCreate. Is it default
> set the bitmap resolution to 300 DPI even though I create the pix* from the
> bmp with 96 DPI?
> I saved the tiff file to disk and see it has 300 DPI. But if I manually set
> the xRes & yRes to 96, then it has 96 DPI of resolution. I don't if it is
> expectation for DPI.

Take a look at tiffio.c. You'll see lines like:

    static const l_int32  DEFAULT_RESOLUTION = 300;   /* ppi */

    if (xres == 0) xres = DEFAULT_RESOLUTION;
    if (yres == 0) yres = DEFAULT_RESOLUTION;

so the answer would seem to be yes.

> Sometime, I would like to resample the bitmap which has low resolution and
> set to 300 DPI for input bitmap of Tesseract OCR. Could you advise me?

For a discussion of leptonica's image scaling support see "Image
Scaling" [1], and in particular "Summary of scaling functions in
leptonica" [2]. See prog/scaletest1.c, prog/scaletest2.c, and
prog/scale_reg.c for example usage.

[1] http://tpgit.github.com/UnOfficialLeptDocs/leptonica/scaling.html

[2] 
http://tpgit.github.com/UnOfficialLeptDocs/leptonica/scaling.html#summary-of-scaling-functions-in-leptonica

-- 
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