In response to issues such as the complex terrain crossed by the overhead power line of the oilfield power company,the aging of inspection personnel,and the shortage of UAV operator,the UAV automatic inspection technology for oilfield power line was investigated.Leveraging ultra-high-definition matrix imaging and automatic flight path inspection functions,the automatic inspection scheme for UAV was designed.The Ant Colony Algorithm and A-Star Algorithm were combined for flight path optimization.Through experiment,it is confirmed that the adoption of UAV automatic inspection technology can reduce labor intensity,improve work efficiency,and provide a new method for the inspection of oilfield power line.