Is there a way to correct rotation of a text based on a horizontal line?

Viewed 117

I'm processing some images for OCR. But some inputs may be italic since they are handwriting. And sometimes this causes wrong results. I wonder is there a way to correct the rotation of these handwritten words based on this horizontal line below it?

Input: enter image description here

Expected: enter image description here

0 Answers
Related