converting the coordinates of a 300 dpi image to coordinates of a 72 dpi image -
i'm working on tess4j project , using tess4j, i've gotten coordinates of words in image. problem is, these coordinates tiff image. project involves writing layer of text overr image in pdf document. take resolution of pdf document 72dpi. coordinates morphed , placed. if can bring down resolution 300 dpi 72dpi , pass image tessaract, wont coordinates need? if not, alternatives? tried multiplying coordinates 300/72. surprisingly, doesnt work.
thanks in advance!
to convert 300dpi 72dpi, need multiply 72/300, not other way round. in floating point or multiplication first , division then, in (x * 72) / 300. pdf units 1/72 of inch.
scaling down original image not idea, since loss of information reduce output text quality.
Comments
Post a Comment