The invention relates to the technical field of
image detection, can be applied to business
system platforms of financial science and technology,
medical health and the like, and discloses a component-based picture
resource integration method, which comprises the following steps of: traversing a
root directory of each component according to a request, and obtaining a configuration file and a picture resource
directory; extracting a picture name, a picture type and a picture path of each picture file, creating a global resource mapping table, and generating a classification reading code for loading each picture file according to the global resource mapping table; analyzing the configuration file to obtain a component name, a component path and a dependency relationship of each component and a reference attribute of the picture file, and generating a component relationship
list between each component and other components; and executing a predefined compilation command on each component to obtain a binary
library and a resource bundle, and integrating the binary
library and resources to a target application. According to the method, the picture file is read by utilizing the classified reading code, the picture resource can be accurately quoted, and the accuracy of quoting the picture resource is improved.