tesseract - Get image size in pixels from DPI (dot per inch) android -
i try minimum image size tesseract, 300 dpi
pixel
, in android. found this answer tell me how convert dp pixel, seems isn't need, dp = dip = density-independent pixel
(correct me if i'm wrong). example, if have image size 1024 x 768 pixels, how can size base on 300 (dpi) dot per inch?
a bitmap doesn't have "inherent" density, resolution (i.e. x y
pixels).
an image file may contain information dpis, that's mapping physical dimensions (i.e. printing). example, 800px * 600px image resolution of 96dpi printed 8.33in * 6.25in, while print area smaller higher resolution.
therefore, "pixels dpi" not valid conversion -- it's kind of converting distance speed.
i'm not sure requirements tesseract, if receives bitmap input "processing pixels", don't think 300dpi requirement makes sense -- that's rule of thumb obtain result scanned text of particular (physical) font size.
Comments
Post a Comment