2

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

Kerem Nayman
  • 77
  • 1
  • 5
  • 2
    I do not see how. The line is horizontal and the text is rotated. Why not get the rotated bounding box of the text using cv2.minAreaRect and just rotate the text region using the angle provided. – fmw42 Nov 08 '20 at 18:59
  • is it right that the letters look upright, but the text direction is skewed (like stairs)? – Micka Nov 08 '20 at 19:12

0 Answers0