The invention provides a grape
disease and pest identification method based on an LW-YOLO network, and aims to improve
small target detection precision and multi-scale
feature extraction capability and reduce model calculation complexity at the same time. The method comprises the following steps: step 1, acquiring a public grape
disease and
insect pest
data set or establishing a
data set according to requirements of a specific grape variety, a specific
geographic area and a special
disease and
insect pest variety; step 2, manually marking a category
label and a bounding box of each string of grapes in each picture in the grape disease and
insect pest enhancement
data set; 3, configuring a model training environment; the method comprises the following steps: step 1, constructing an LW-YOLO
network model, step 2, constructing an LW-YOLO model, step 5, loading the constructed LW-YOLO
network model to a configured model training environment, and training and verifying the LW-YOLO
network model by using a preprocessed data set; and step 6, constructing a grape disease and
insect pest recognition system based on an LW-YOLO network, splitting the
system into a
visualization subsystem and a disease and
insect pest analysis subsystem, enabling the
visualization subsystem to realize a real-time video
stream lightweight image interception function by using an FFmpeg
library in a Javacv
library, and providing pictures to the disease and
insect pest analysis subsystem for disease and insect pest target detection. And finally, displaying a detection result to a front-end page.