The invention discloses an unmanned aerial vehicle photovoltaic inspection real-
time path planning method and
system, and relates to the technical field of control in a specific dimension. Comprising the steps of planning an initial
route and setting inspection routes in different areas; an image is collected by adjusting the camera
pitch angle of the second holder, and the distance is measured in real time through the
laser range finder; uploading an image shot by the second pan-tilt camera, identifying the photovoltaic string, establishing a string position correction model, and calculating the three-dimensional coordinate of the center point of the string; implementing local
route optimization according to the string center point coordinate
data set and the initial
route based on an
ant colony
algorithm; the unmanned aerial vehicle flies to a set
waypoint along a flight route, the first pan-tilt camera shoots an image, identifies a picture center photovoltaic string, calculates a center point
coordinate difference, and the unmanned aerial vehicle corrects the position and executes an inspection
image acquisition task. The problems of insufficient real-time performance, poor adaptability to complex terrains and unstable
image acquisition quality are solved, and the purposes of strong real-time performance, strong adaptability, high
image quality, high recognition capability and high precision are achieved.