The invention discloses an unmanned aerial
vehicle inspection head control method based on visual
servo. The method comprises the steps of: 1, obtaining video information by an imaging device; 2, matching a frame real-time image with a template image, obtaining a pixel deviation and determining a deviation P of the image center; 3, judging whether P is greater than a deviation threshold, if not, indicating a normal situation, and finishing this detection, if so, turning to the next step; 4, determining a rotating direction through P, then rotating the holder for the minimal unit d; 5, obtaining the device image at a current position again; 6, trying a new target position by a tracing
algorithm; determining the deviation P1 of the new position and the template image; 7, judging whether P is greater than the threshold according to the
linear relationship between holder rotation and the pixel deviation in the image, if not, finishing this detection, and if so, returning to the step 5. Location filming of the target in the unmanned aerial
vehicle inspection process is effectively solved, and the inspection efficiency and quality are improved.