The present invention discloses a
light painting method for an unmanned aerial vehicle (UAV) based on a neural network and artistic
programming, comprising the following steps: S1, selecting an original image for
light painting as input, and creating a
mask training set; S2, building an
image segmentation model; S3, obtaining a feature map; S4, drawing a
route map; S5, generating and exporting a
route map file in a kml format; S6, importing the
route map file in the kml format into litchi, and adjusting
punctuation positions as required; S7, litchi exporting a csv format file and saving it to an intelligent UAV; S8, completing shooting by superimposing a sequence of long exposures using a
moving window, performing segmentation using a UNet, obtaining a feature map suitable for drawing a route, generating a kml file using Google Earth as input to a litchi interface, then outputting a csv file for application to the flight route of the UAV, and adjusting the altitude angle, which can be achieved using a coordinate conversion program, and then inputting the obtained csv file into litchi to complete all preparations, thereby achieving a smoother
light painting process by opening up the operation route.