Is it possible to recognize floor plan of building?

Hello, i would like to create script for planning drone route. The should take photos for photogrammetry. It should fly around the object and take the photos. My question is: Is it possible to recognize the shape of the scanned object to plan the flight route around the building/statue ?

Edit:
Maybe when i look at the bottom edge of the building i can calculate the shape of the building.