Unmanned aerial vehicles (UAVs) have been employed for a variety of inspection and monitoring tasks, including agricultural applications and search and rescue (SAR) in remote areas. However, traditional monitoring methods tend to focus on optimizing one aspect. This study aims to propose a complete framework by integrating advanced methods to provide a robust and accurate path coverage solution. The combination of edge detection and area decomposition with a pathfinding algorithm can improve the overall performance. An effective edge detection model is developed that simultaneously detects the boundary and segments the area of interest (AOI) from the aerial land images and provides precise area mapping of the area. An intuitive grid decomposition with grid-to-graph mapping improves the flexibility of the area decomposition and ensures maximal coverage and safe operation routes for the UAVs. Finally, a robust modified simulated annealing (MSA) algorithm is introduced to determine the shortest path coverage route. The performance of the proposed methodology is tested on aerial imagery. Area decomposition ensures that there are no gaps in the AOI during the coverage planning. The MSA algorithm obtains the minimum length cost, charge consumption cost, and minimum number of turns to cover the area. It is shown that the integration of these techniques enhances the performance of the coverage path planning (CPP). A comparison of the proposed approach with benchmark algorithms further demonstrates its effectiveness. This study contributes to creating a complete CPP application for UAVs, which may assist with precision agriculture as well as safe and secure rescue operations.