On Tue, May 29, 2012 at 9:52 AM, hiran.suvrat <[email protected]> wrote: > Is their a function to automatically detect and correct perspective > for text images?
Depending on what you mean, Leptonica has the ability to dewarp text page images [1] (although it currently doesn't seem to work very well with pages that only have short lines). See dewarptest.c [2] for an example. It can also do Projective transforms [3] via pixDeskewLocal() [4]. See baselinetest.c [5] for an example. [1] Dewarping Text Pages http://tpgit.github.com/UnOfficialLeptDocs/leptonica/dewarping.html [2] http://tpgit.github.com/Leptonica/dewarptest_8c_source.html [3] http://tpgit.github.com/UnOfficialLeptDocs/leptonica/affine.html#projective-transform [4] http://tpgit.github.com/Leptonica/baseline_8c_source.html#l00295 [5] http://tpgit.github.com/Leptonica/baselinetest_8c_source.html -- You received this message because you are subscribed to the Google Groups "tesseract-ocr" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/tesseract-ocr?hl=en

