I tried using the code given as an answer on this link: How to find the corners of a Rect object in openCV?
I must acknowledge that this code works very well except some of the parts as you can see below:
I tried feeding the image [source image]
and got a weird result back [resulting image]:
As you can see, the resulting image is tilted 90 degrees clockwise and also the text is mirrored.
Can anyone please help me out in this and suggest what changes should I make in the above code in order to get the correct output.
Thanks in advance.