I am trying to segment warped text lines found in photos taken from a page of a book (from the camera of a smartphone). This is meant as a preprocessing step before running OCR on them.
I have found two relevant papers on this:
https://sites.google.com/a/iupr.com/bukhari/home/papers/Bukhari-Coupled-Snakelets-IJDAR12.pdf?attredirects=0
https://www.researchgate.net/profile/Rafael_Lins/publication/221000335_An_Efficient_Algorithm_for_Segmenting_Warped_Text-Lines_in_Document_Images/links/0fcfd5063a49cc779c000000.pdf?origin=publication_detail
The papers are too hard for me to implement, can anyone help? Similar methods to achieve the same result would also be great.
Example input no.1: https://i.stack.imgur.com/09WoM.jpg
Example input no.2: https://i.stack.imgur.com/Z7jjY.jpg