I am trying to correct the distortion inside license plates such as:
However, I can't find a robust way to detect the rotation angle. I was trying to use eigenvalues as here but it fails.
I was also thinking about Hough lines detection but results remain poor.
What can I do to improve the rotation detection?