This application relates to a hierarchical storage method and
system for intermediate data in optical detection
image processing, comprising the following steps: in response to an
image processing task, acquiring a
processing flow; generating a
data dependency topology
graph based on the
processing flow and identifying intermediate data and its
data type; during the execution of the
image processing task, real-time monitoring of the remaining capacity and
access frequency of each layer in the hierarchical architecture; calculating the hierarchical priority
score of the intermediate data based on the monitored remaining capacity and
access frequency, combined with the
data dependency topology graph; and mapping and storing the intermediate data to the corresponding target storage layer according to the hierarchical priority
score. In summary, this application, by acquiring the
processing flow in response to an image processing task, generating a
data dependency topology graph and identifying data types, real-time monitoring of the hierarchical architecture status, calculating the hierarchical priority
score, and mapping and storing the data to the target layer, can effectively solve the problems of invalid storage resource occupation and high access latency in the prior art.