The high-precision positioning technology of industrial Unmanned Aerial Vehicle (UAV) plays a vital role in intelligent trajectory planning in power inspection. First, the information on power facilities is collected and processed to form a planning grid to optimize the flight path and correct the trajectory of UAV. However, the preparatory work is more complex, and the algorithm model which needs more detailed and complex terrain database data is not universal enough. To improve the safety of UAV and the efficiency of path planning, we establish a three-dimensional model of the power tower, calculate the coordinate position of the inspection work according to the information of the high-voltage transmission tower, and then determine the corresponding relationship between the inspection point and the flight trajectory combined with the safe distance. Based on the set of random interference semaphores and model rasterization, the discrete error strategy and Euler method are introduced to improve the performance. In each iteration, the best solution is first updated using the execution strategy. We continue to calculate the spatial coordinates of all reference points and provide the coordinate position distribution for the flight mission. The solution of equipment inspection trajectory optimization is realized by using dynamic obstacle perception. The proposed discrete measurement error self-correction algorithm is deployed on the flight platform to guide UAV inspection tasks according to the point cloud coordinate model of transmission equipment in the power system and to correct the flight route in time. To verify the research results, the Algorithm Artemisinin optimization and Whale Optimization Algorithm test verify that the ability of the proposed algorithm to get rid of local optimization is improved by 8.94% and, 12.42% respectively compared with other optimization algorithms. The convergence accuracy is 12.4% and 7.9% higher than other schemes, and it has a better effect in solving numerical problems. The research results using the embedded system to complete the task deployment and unloading provide a reference for trajectory planning and task design in different application scenarios.