How to write a text on a building picture I would like to write a text/logo on one face of this building :

So I created some basic text (+ extrusion/bevel/...), but the problem is that I've no idea how I could reliably move this text (+shadows if possible) on a wall of this building (if possible I'd like to keep a good quality on the picture photo, so the picture should have the exact same shape at the end of the process). One simple solution would be to rotate approximately the text and then use gimp's perspective tool to move it on a face of the building, but I'm afraid to have only approximate perspective, and this may be visible on the final picture.
Someone proposed me to create planes first to reconstruct the shape of the building, and then add the text on the planes when it's done. But even after spending 10mn of trial/errors to find the good shape/position of the wall, focal length... I can't find a working set of parameters (one problem is that the shape of my initial picture is also changed due to the perspective):

What is the proper solution to that problem? Is there some automatic tools that can help me in that process?
I finally found two plugins: fSpy and BLAM (this last one is outdated),  thanks to seseri, and intrac!
Recommended solution: use fSpy
fSpy is an external small software that you can download (Linux, Mac, Windows). Then you just have to place a few points on your picture to specify which are the aligned lined. Then, you need to save the project, and load it from the fSpy blender plugin (also need to be installed). The camera is automatically configured, and in my case it worked greatly! Just, I think the picture I gave above is not ideal, since I've the feeling that the building is not even a &quot;cube&quot;: the higher you are, the fewer windows you have. So I just followed a line of window to find my parallel lines.
The package is well documented. In case you need more help, see [this link]2 for example.
Second solution, but outdated: BLAM
You may also be interested by BLAM , but this plugin is outdated:
No longer maintained. Check out fSpy instead

You can find an example of use here.