You can use leptonica (tesseract dependancy) for this taks. Have a look at e.g. function dewarpSinglePage. Leptonica has several example programs in prog directory that has "dewarp" in filename - maybe this can help you too.
Zdenko On Thu, Dec 22, 2016 at 5:54 AM, haratron <[email protected]> wrote: > No, I want to dewarp the warped lines of a page of a book. The warped > lines is due to perspective distortion (picture acquired with the camera of > a mobile phone) and curvature of the book. RIL_WORD or RIL_SYMBOL wouldn't > help with that. > > > > On Thu, Dec 22, 2016 at 6:50 AM, Junmock Lee <[email protected]> > wrote: > >> How about RIL_WORD or RIL_SYMBOL instead of RIL_TEXTLINE? >> >> On Thursday, December 22, 2016 at 1:36:52 PM UTC+9, gadv wrote: >>> >>> Does tesseract provide a way to dewarp warped text lines? >>> >> -- >> You received this message because you are subscribed to the Google Groups >> "tesseract-ocr" group. >> To unsubscribe from this group and stop receiving emails from it, send an >> email to [email protected]. >> To post to this group, send email to [email protected]. >> Visit this group at https://groups.google.com/group/tesseract-ocr. >> To view this discussion on the web visit https://groups.google.com/d/ms >> gid/tesseract-ocr/a43133a5-d056-40e7-a0a6-33a27348457b%40googlegroups.com >> <https://groups.google.com/d/msgid/tesseract-ocr/a43133a5-d056-40e7-a0a6-33a27348457b%40googlegroups.com?utm_medium=email&utm_source=footer> >> . >> For more options, visit https://groups.google.com/d/optout. >> > > -- > You received this message because you are subscribed to the Google Groups > "tesseract-ocr" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > To post to this group, send email to [email protected]. > Visit this group at https://groups.google.com/group/tesseract-ocr. > To view this discussion on the web visit https://groups.google.com/d/ > msgid/tesseract-ocr/CAOJPiNDHugbdvkJ7%3DtLjLHXwwtnvhtpZErGoca3ZqE- > jNqFRdw%40mail.gmail.com > <https://groups.google.com/d/msgid/tesseract-ocr/CAOJPiNDHugbdvkJ7%3DtLjLHXwwtnvhtpZErGoca3ZqE-jNqFRdw%40mail.gmail.com?utm_medium=email&utm_source=footer> > . > > For more options, visit https://groups.google.com/d/optout. > -- You received this message because you are subscribed to the Google Groups "tesseract-ocr" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/tesseract-ocr. To view this discussion on the web visit https://groups.google.com/d/msgid/tesseract-ocr/CAJbzG8x7%3D8a03rwv6r1t6fA-ZBUu%3DFZE%3DxZO5QWgC2QLdNAkoA%40mail.gmail.com. For more options, visit https://groups.google.com/d/optout.

