The invention discloses a reconfigurable
crop image processing method and
system based on
software and hardware cooperation, and belongs to the technical field of embedded systems and
image processing. The problems that in the prior art, an FPGA neural network accelerator model is solidified, the hardware
resource utilization rate is low, and the detection precision and the reasoning speed are difficult to consider at the same time are solved. According to the method, the complexity
score of an input image is calculated through an
edge detection operator, a color
histogram and a
gray level co-occurrence matrix, a
rapid detection mode, a fine recognition mode or a cooperative reasoning mode is selected according to the complexity
score and
delay constraint, and dynamic partition configuration is carried out on a
processing unit array in the reconfigurable accelerator; in a cooperative reasoning mode, executing the lightweight target detection model through the first
processing unit group to quickly detect and output a candidate box, extracting a region-of-interest feature map through the ROI
cutting unit, routing the region-of-interest feature map to the second
processing unit group, executing the high-precision target detection model to perform fine recognition, and fusing double-model output to generate a final detection result; the two models realize hardware resource sharing through a three-level weight storage architecture. The precision and speed balance capability of agricultural
image detection are effectively improved, the
resource utilization rate is improved, and the method can be applied to intelligent agricultural scenes such as
crop disease recognition and fruit grading.