Lens correction can mainly correct barrel deformation. Although mesh deformation is very strong, it is not easy for novices to control~
So I am still used to using the oldest "Free Transform" function to adjust the perspective distortion of the photo~
First press "Ctrl" + "j" to copy the photo into a layer, as shown below:
Open the ruler, and then pull out some reference lines on the ruler. You will use them later to refer to whether the building is straightened, as shown below:
Press "Ctrl" + "t" or select "Edit" > "Transform" on the menu to freely adjust the deformation of the photo, as shown below:
Simultaneously hold down "Ctrl" + "shift" + "alt" and pull the control point in the upper left corner of the photo horizontally outward to straighten the building. The reference line can be used to refer to whether the building has been straightened, as shown below:
Then pull the upper point in the middle of the photo to bring the building to its original height, as shown below:
Carefully repeat the above two steps to correct the deformation of the photo, as shown below: