Hey there! Today i am up with new code which could help in perspective transformation of an image, through these lines of code on can easily manipulate images clicked in rotated manner, for instance you clicked the image of a receipt and for the image processing purpose you want it to be in perfect square and upright perspective in those case it can help you out.
>> pip install opencv-contrib-python
>> pip install numpySimply run "Perspective_Transformation.py" and it will correct the perspective of input image Further it will also help to crop out the corrected perspective image.
Input Image
Output Image

