Improve quality of tesseract / DPI of an image

1,813 views
Skip to first unread message

Vahagn Martirosyan

unread,
Jul 26, 2018, 10:01:20 AM7/26/18
to tesseract-ocr
tps://github.com/tesseract-ocr/tesseract/wiki/ImproveQuality#rescaling

Here is written the following. 

Rescaling

Tesseract works best on images which have a DPI of at least 300 dpi, so it may be beneficial to resize images. For more information see the FAQ.

The problem is that image does not have DPI unless it has no size. The size here does not mean resolution, for example 600x400 pixels. The size means how many inches it has vertically and horizontally, and that how we calculate the DPI (dot per inch). It means if I zoom in or zoom out exactly the same image its DPI will decrease and increase correspondingly. So here is the question, how tesseract opens the image, how tesseract measure the size of iameg and what kind of size that image has at the time when tesseract starts reading and calculate the DPI. It is meaningless to say that image has fixed DPI, it has DPI depending to its size.





***********************************************************
This message may contain confidential and/or privileged 
information. If you are not the addressee or authorized to 
receive this for the addressee, you must not use, copy, 
disclose or take any action based on this message or any 
information herein. If you have received this message in 
error, please advise the sender immediately by reply e-mail 
and delete this message. Thank you for your cooperation.
***********************************************************
Reply all
Reply to author
Forward
0 new messages