An electronic device, comprising: a communication circuit configured to communicate with an unmanned aerial vehicle which includes a camera; a memory configured to store first flight information including a first flight pattern for a first location and first driving information of the camera, wherein the first driving information comprises video capture information corresponding to the first flight pattern; and a processor operatively connected with the communication circuit and the memory, wherein the processor is configured to: determine a flight reference location of the UAV based on a second location of the UAV and the first location, wherein the second location is a current location of the UAV; determine a flight path of the UAV based on the flight reference location and the first flight pattern, the electronic device being characterized in that the processor is further configured to, if an obstacle exists on the flight path of the UAV, calibrate the first flight pattern of the first flight information to a second flight pattern such that the UAV makes a detour around the obstacle; calibrate the first driving information of the first flight information to second driving information to correspond to the second flight pattern; and control the UAV via the communication circuit such that the UAV flies based on the determined flight reference location and the second flight pattern and control the camera of the UAV based on the second driving information. a communication circuit configured to communicate with an unmanned aerial vehicle which includes a camera; a memory configured to store first flight information including a first flight pattern for a first location and first driving information of the camera, wherein the first driving information comprises video capture information corresponding to the first flight pattern; and a processor operatively connected with the communication circuit and the memory, wherein the processor is configured to: determine a flight reference location of the UAV based on a second location of the UAV and the first location, wherein the second location is a current location of the UAV; determine a flight path of the UAV based on the flight reference location and the first flight pattern, the electronic device being characterized in that the processor is further configured to, if an obstacle exists on the flight path of the UAV, calibrate the first flight pattern of the first flight information to a second flight pattern such that the UAV makes a detour around the obstacle; calibrate the first driving information of the first flight information to second driving information to correspond to the second flight pattern; and control the UAV via the communication circuit such that the UAV flies based on the determined flight reference location and the second flight pattern and control the camera of the UAV based on the second driving information. determine a flight reference location of the UAV based on a second location of the UAV and the first location, wherein the second location is a current location of the UAV; determine a flight path of the UAV based on the flight reference location and the first flight pattern, the electronic device being characterized in that the processor is further configured to, if an obstacle exists on the flight path of the UAV, calibrate the first flight pattern of the first flight information to a second flight pattern such that the UAV makes a detour around the obstacle; calibrate the first driving information of the first flight information to second driving information to correspond to the second flight pattern; and control the UAV via the communication circuit such that the UAV flies based on the determined flight reference location and the second flight pattern and control the camera of the UAV based on the second driving information.