Use CorrectDistortedPhotos in a few steps…
1/ Open the photo to be corrected or drag it…
2/ Photos open, you can use the navigator on left, to zoom on it…
3/ Simply adjust the corners to correct the distortion. At anytime you can display a grid on top that can provide better accuracy.
4/ When you ready to output the final result, click on Export to record or resize and save!