The invention discloses a
ginkgo leaf extracting
solution state real-time monitoring method based on
image processing, and relates to the technical field of
ginkgo leaf extracting solutions. The method comprises the following steps: constructing a multi-light-
source imaging environment to
shoot a
ginkgo leaf extracting solution image; obtaining an extracting solution
mask through a U-net segmentation model, and obtaining an extracting solution foreground image in combination with the ginkgo leaf extracting solution image; segmenting the extracting solution foreground image through an adaptive threshold method to obtain an extracting solution
block graph, and optimizing through a
watershed boundary optimization method to obtain an optimized extracting solution
block graph; a block boundary probability value is calculated through a boundary
probability model with double distance changes, a block
gradient magnitude is calculated through a
Sobel operator, block boundary confidence is obtained by combining the block boundary probability value and the block
gradient magnitude, and block boundary pixels are determined; and collecting a boundary gradient
feature vector sequence of the block boundary pixels, inputting the boundary gradient
feature vector sequence into the extracting solution evolution trend model, outputting to obtain an oxidation
risk index, and performing early warning if the oxidation
risk index is greater than a preset threshold value.