Method, device and equipment for material property analysis of painted cultural relics

By performing color area segmentation and spectrum detection on images of painted cultural relics, and matching the material spectrum library, the risk of damage to painted cultural relics during the lighting process is solved, and accurate material property analysis and protection measures are achieved.

CN118362513BActive Publication Date: 2024-09-03TIANJIN UNIV +1
View PDF 0 Cites 0 Cited by

Patent Information

Application Number
CN202410789298.2
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-19
Publication Date
2024-09-03
Estimated Expiration
2044-06-19

AI Technical Summary

Technical Problem

Painted cultural relics are easily damaged during the lighting process, and it is difficult to accurately analyze their material properties with existing technology, resulting in the inability to effectively reduce the risk of damage.

Method used

By performing color area segmentation and spectrum detection on the image to be measured, the preset material spectral library is used to match the spectral diagram of the measurement point, and the target material properties are determined, thereby analyzing the material properties of the painted cultural relics.

Benefits of technology

It enables accurate analysis of material types and proportions of painted cultural relics without destroying them, improves the efficiency and safety of material property analysis, and supports precise light source design and protection measures.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118362513B
    Figure CN118362513B
Patent Text Reader

Abstract

The present invention provides a method, device and equipment for analyzing the material properties of painted cultural relics, and relates to the technical fields of image processing and material analysis. The method comprises: performing color region segmentation on an image to be tested to obtain a color classification region corresponding to a preset color, wherein the image to be tested is related to the painted cultural relic to be tested; controlling a spectrum detection device to perform spectrum detection on the color classification region to obtain a measurement point spectrum graph related to a measurement point sub-region, wherein the measurement point sub-region is located in the color classification region; determining a target spectrum graph matching the measurement point spectrum graph from a preset library of selected material spectrum graphs, wherein the selected material spectrum in the selected material spectrum graph represents the selected measurement point sub-region, and the target spectrum graph is associated with the target material property; and determining the material property of the painted cultural relic according to the target material property associated with the target spectrum graph.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical fields of image processing and material analysis, and in particular to a method, a device and equipment for analyzing material properties of painted cultural relics. Background Art

[0002] Painted cultural relics include colored paintings, colored porcelain, and so on. The materials used to make painted cultural relics can be diverse. For example, the red color of painted cultural relics can be made based on cinnabar. Therefore, material property analysis such as material category analysis and material proportion analysis of painted cultural relics is a necessary condition for the accurate protection of painted cultural relics. Especially for painted cultural relics, they have the characteristics of rich colors and diversified materials used. In addition, many museum collections of painted cultural relics and immovable painted cultural relics will suffer losses due to lighting, and there is a risk that the painted cultural relics will be damaged and cannot be displayed due to lighting. Therefore, a more accurate analysis of the proportion of materials used in painted cultural relics, and then designing the light source used for its illumination based on the results of the material property analysis, can effectively reduce the risk of damage to painted cultural relics caused by lighting. Summary of the invention

[0003] Based on the above problems, the present invention provides a method, device and equipment for analyzing material properties of painted cultural relics.

[0004] 1. Technical solution

[0005] One aspect of the present invention provides a method for analyzing material properties of painted cultural relics, comprising: performing color region segmentation on an image to be tested to obtain color classification regions corresponding to preset colors, wherein the image to be tested is related to the painted cultural relics to be tested; controlling a spectral detection device to perform spectral detection on the color classification regions to obtain a measuring point spectrum graph related to a measuring point sub-region, wherein the measuring point sub-region is located in the color classification region; determining a target spectrum graph matching the measuring point spectrum graph from a preset library of selected material spectrum graphs, wherein the selected material spectrum in the selected material spectrum graph represents the selected measuring point sub-region, and the target spectrum graph is associated with a target material property; and determining the material property of the painted cultural relics according to the target material property associated with the target spectrum graph.

[0006] Another aspect of the present invention provides a device for analyzing material properties of painted cultural relics, including: a color classification area determination module, used to perform color area segmentation on an image to be tested to obtain a color classification area corresponding to a preset color, wherein the image to be tested is related to the painted cultural relic to be detected; a spectral detection module, used to control a spectral detection device to perform spectral detection on the color classification area to obtain a measuring point spectrum graph related to the measuring point sub-area; a target spectrum graph module, used to determine a target spectrum graph that matches the measuring point spectrum graph from a preset material spectrum graph library, wherein the target spectrum graph is associated with a target material attribute; and an object material attribute determination module, used to determine the object material attribute of the painted cultural relic based on the target material attribute associated with the target spectrum graph.

[0007] Another aspect of the present invention provides an apparatus for performing material analysis on painted cultural relics, characterized in that it includes: a spectral detection device; a robotic arm connected to the spectral detection device; and an apparatus for performing material property analysis on painted cultural relics provided according to an embodiment of the present invention, which is electrically connected to the spectral detection device and the robotic arm, wherein the apparatus for performing material property analysis on painted cultural relics is configured to control the movement of the robotic arm so as to control the spectral detection device to move to a detection point related to the image to be tested, so that the spectral detection device performs spectral detection on the image to be tested.

[0008] (II) Beneficial effects

[0009] It can be seen from the above technical solutions that the method, device and equipment for analyzing material properties of painted cultural relics provided by the present invention have at least one or part of the following beneficial effects:

[0010] By performing color segmentation on the image to be tested related to the painted cultural relics and performing spectral detection on the segmented color classification areas, the obtained measuring point spectrum is used to screen out the target spectrum from the preset spectrum library of candidate materials, and then the material properties of the painted cultural relics in the image to be tested can be analyzed according to the target material properties of the matching target spectrum, so that the analyzed object material properties can more accurately characterize the material type, material proportion and other object material properties of the painted cultural relics, and then the object material property analysis can be performed without destroying the painted cultural relics, thereby ensuring the integrity of the painted cultural relics to be tested and improving the efficiency and safety of material property analysis, so that the light source design, object restoration and other object protection and object display work can be carried out on the painted cultural relics according to the more accurate object material properties, thereby improving the object display effect and the object restoration effect. BRIEF DESCRIPTION OF THE DRAWINGS

[0011] Figure 1 A flow chart of a method for analyzing material properties of painted cultural relics according to an embodiment of the present invention is shown.

[0012] Figure 2 A flow chart of performing color region segmentation on an image to be tested to obtain color classification regions corresponding to preset colors according to an embodiment of the present invention is shown.

[0013] Figure 3 A schematic diagram showing the principle of determining a measurement point sub-area related to a color classification area according to an embodiment of the present invention is shown.

[0014] Figure 4 A schematic diagram of a material spectrum diagram according to an embodiment of the present invention is shown.

[0015] Figure 5 A schematic diagram of a material spectrum diagram according to another embodiment of the present invention is shown.

[0016] Figure 6 A schematic diagram of a material spectrum diagram according to yet another embodiment of the present invention is shown.

[0017] Figure 7 A schematic diagram of a process for determining target material properties according to an embodiment of the present invention is shown.

[0018] Figure 8 A flow chart of determining the material properties of a painted cultural relic according to a target material property associated with a target spectrum diagram according to an embodiment of the present invention is shown.

[0019] Fig. 9 A structural block diagram of a device for analyzing material properties of painted cultural relics according to an embodiment of the present invention is shown.

[0020] Fig.10 A schematic diagram of a device for performing material analysis on painted cultural relics according to an embodiment of the present invention is shown. DETAILED DESCRIPTION

[0021] Below, embodiments of the present invention will be described with reference to the accompanying drawings. However, it should be understood that these descriptions are exemplary only and are not intended to limit the scope of the present invention. In the following detailed description, for ease of explanation, many specific details are set forth to provide a comprehensive understanding of embodiments of the present invention. However, it is apparent that one or more embodiments may also be implemented without these specific details. In addition, in the following description, descriptions of known structures and technologies are omitted to avoid unnecessary confusion of concepts of the present invention.

[0022] The terms used herein are only for describing specific embodiments and are not intended to limit the present invention. The terms "comprise", "include", etc. used herein indicate the existence of the features, steps, operations and / or components, but do not exclude the existence or addition of one or more other features, steps, operations or components.

[0023] The present invention provides a method, device and equipment for analyzing the material properties of painted cultural relics. The method includes: performing color region segmentation on an image to be tested to obtain a color classification region corresponding to a preset color, wherein the image to be tested is related to the painted cultural relic to be tested; controlling a spectrum detection device to perform spectrum detection on the color classification region to obtain a measurement point spectrum graph related to a measurement point sub-region, wherein the measurement point sub-region is located in the color classification region; determining a target spectrum graph matching the measurement point spectrum graph from a preset library of selected material spectrum graphs, wherein the selected material spectrum in the selected material spectrum graph represents the selected measurement point sub-region, and the target spectrum graph is associated with the target material property; and determining the material property of the painted cultural relic according to the target material property associated with the target spectrum graph.

[0024] According to an embodiment of the present invention, by performing color segmentation on the image to be tested related to the painted cultural relics, and performing spectral detection on the segmented color classification areas, the obtained measuring point spectrum is used to screen out the target spectrum from the preset library of spectrums of the selected materials, and then the material properties of the painted cultural relics in the image to be tested can be analyzed according to the target material properties of the matching target spectrum, so that the analyzed object material properties can more accurately characterize the material type, material proportion and other object material properties of the painted cultural relics, and then the object material property analysis can be performed without destroying the painted cultural relics, thereby ensuring the integrity of the painted cultural relics to be tested, and improving the efficiency and safety of the material property analysis, so that the light source design, object restoration and other object protection and object display work can be performed on the painted cultural relics according to the more accurate object material properties, thereby improving the object display effect and the object restoration effect.

[0025] In order to make the objectives, technical solutions and advantages of the present invention more clearly understood, the present invention is further described in detail below in conjunction with specific embodiments and with reference to the accompanying drawings.

[0026] In an embodiment of the present invention, a method for analyzing material properties of painted cultural relics is provided.

[0027] Figure 1 A flow chart of a method for analyzing material properties of painted cultural relics according to an embodiment of the present invention is shown.

[0028] like Figure 1 As shown, the method for analyzing material properties of painted cultural relics in this embodiment includes operations S110 to S140.

[0029] In operation S110, the image to be tested is segmented into color regions to obtain color classification regions corresponding to preset colors, and the image to be tested is related to the painted cultural relics to be detected.

[0030] According to the embodiment of the present invention, the painted cultural relics may include colored paintings, such as any type of paintings with multiple colors such as ink paintings. However, it is not limited thereto, and may also include colored porcelain, lacquerware, etc. The embodiment of the present invention does not limit the specific type of the painted cultural relics.

[0031] According to an embodiment of the present invention, a color classification area may represent a partial object area of ​​a painted cultural relic in an image to be tested, and the color classification area may be related to a preset color. It should be noted that a preset color may include multiple color attributes, and the image to be tested may include one or more color classification areas with the same color attribute. The embodiment of the present invention does not limit the number of color classification areas and the number of preset colors.

[0032] According to an embodiment of the present invention, the image to be tested may be segmented into color regions based on computer vision technology. For example, the image to be tested may be segmented into color regions based on a convolutional neural network algorithm, but is not limited thereto. The image to be tested may also be segmented into color regions based on relevant computer vision technology analysis software, which is not limited in the embodiment of the present invention.

[0033] In operation S120, a spectrum detection device is controlled to perform spectrum detection on the color classification area to obtain a measurement point spectrum graph related to a measurement point sub-area, where the measurement point sub-area is located in the color classification area.

[0034] According to an embodiment of the present invention, the spectrum detection device may include a spectrum detector, such as a Raman spectrum detector, etc. A control signal may be sent to the spectrum detection device to control the spectrum detection device to move to a detection position related to the measurement point sub-region, and control the spectrum detection device to perform detection, thereby obtaining a measurement point spectrum graph related to the measurement point sub-region.

[0035] According to an embodiment of the present invention, the measuring point sub-area may include any sub-area in the color classification area, and any number of measuring point positions may be set in the color classification area in a random manner, and the measuring point sub-area may be determined according to a specified area range related to the measuring point position. However, this is not limited to this, and the measuring point sub-area may also be set in the color classification area based on other rules, which is not limited in the embodiment of the present invention.

[0036] According to an embodiment of the present invention, the spectrum type of the measurement point spectrum may include at least one of the following: Raman spectrum, infrared spectrum, and hyperspectrum.

[0037] According to an embodiment of the present invention, a hyperspectral image with a hyperspectral type may be composed of a wavelength band of 10 nm to 20 nm. Spectral detection may be performed based on relevant hyperspectral detection equipment to obtain a measurement point spectrum image with a hyperspectral type.

[0038] According to an embodiment of the present invention, the measuring point spectrum diagram may also be represented based on an infrared spectrum diagram having an infrared spectrum type.

[0039] It should be noted that the embodiments of the present invention do not limit the specific spectrum type of the measurement point spectrum, and those skilled in the art can select it according to actual needs.

[0040] In operation S130, a target spectrum graph matching the measurement point spectrum graph is determined from a preset candidate material spectrum graph library, wherein the candidate material spectrum in the candidate material spectrum graph represents a candidate measurement point sub-region, and the target spectrum graph is associated with a target material property.

[0041] According to an embodiment of the present invention, the library of spectrum graphs of materials to be selected may include any number of spectrum graphs of materials to be selected, and the sub-region of the selected measuring point may be the sub-region of the selected measuring point in the sample image. The sample image may be an image representing a sample painted cultural relic. The spectrum graph of materials to be selected may represent an image region associated with a preset material attribute. For example, the spectrum graph of materials to be selected may be a spectrum graph representing a region of a part of an item made of cinnabar material in a sample painted cultural relic. It should be understood that the target material attribute may include a target material name and a material ratio between the target material names, and the target spectrum graph may be associated with the target material name and the material ratio between the target material names.

[0042] In operation S140 , the material property of the painted cultural relic is determined according to the target material property associated with the target spectrum.

[0043] According to an embodiment of the present invention, the material attributes of the object may include the material type contained in the painted cultural relic and the ratio between materials of different material types. For example, the material type of the pigment of the colored painting and the ratio between pigments of different material types may be used.

[0044] According to an embodiment of the present invention, the target material property associated with the target spectrum graph can be determined as the measuring point material property of the measuring point spectrum graph related to the target spectrum graph. In this way, the material property of the object in the entire image to be measured can be determined based on the measuring point material properties associated with each of the multiple measuring point sub-areas in the image to be measured.

[0045] According to an embodiment of the present invention, color region segmentation of the image to be tested to obtain color classification regions corresponding to preset colors may include: processing color attributes of pixels in the image to be tested based on a clustering algorithm to obtain clustered pixels in cluster clusters; and determining color classification regions from the image to be tested based on the clustered pixels in the cluster clusters.

[0046] According to the embodiment of the present invention, the clustering algorithm may include any type of clustering algorithm such as Kmeans algorithm, ISODATA algorithm (Iterative Self-Organizing Data Analysis Technique Algorithm), etc. The specific type of the clustering algorithm in the embodiment of the present invention is not limited.

[0047] According to an embodiment of the present invention, the color attribute of a pixel may include a pixel value of the pixel, such as an RGB (RedGreenBlue) value, etc. The pixels of the image to be tested may be processed by a clustering algorithm, and the pixels in the image to be tested may be clustered and analyzed, and the obtained clustering cluster may include a plurality of clustering pixels, and the image to be tested may be segmented into color regions according to the clustering pixels in the clustering cluster, and the obtained color classification regions may represent different color attributes in the image to be tested.

[0048] According to an embodiment of the present invention, clustered pixels in a cluster need to satisfy a preset clustering condition, and the preset clustering condition includes at least one of the following first condition, second condition, and third condition.

[0049] The first condition represents that the number of cluster pixels in the cluster cluster is greater than or equal to a preset number threshold.

[0050] The second condition indicates that the color difference between different cluster center pixels is greater than or equal to a preset color difference threshold, and the cluster center pixel is the cluster center of the cluster cluster. The color difference between different cluster center pixels can be determined based on the pixel attributes of different cluster center pixels.

[0051] The third condition indicates that the number of clusters is less than or equal to the cluster pixel color difference, the cluster pixel color difference is determined based on the color difference between the cluster center pixel and the cluster neighbor pixels, the cluster neighbor pixels and the cluster center pixel are located in the same cluster cluster, and the cluster neighbor pixels are different from the cluster center pixel. For example, the cluster pixel color difference can be determined based on the average value or median value of the color difference between the cluster center pixel and the cluster neighbor pixels.

[0052] According to an embodiment of the present invention, the preset clustering condition may also include other types of conditions, for example, may also include the following fourth condition. The fourth condition indicates that the distribution density of pixels in the color classification area with the same color attribute in the image to be tested is less than or equal to a preset density threshold. The distribution density of pixels in the image to be tested may be determined based on the pixel position of the pixel in the image to be tested.

[0053] According to an embodiment of the present invention, after obtaining relevant authorization, the image to be tested can be processed based on an image processing platform such as the Opencv platform, so that the input high-definition image to be tested of the painted cultural relic can be converted into a pixel matrix containing color information in the experimental color space, the pixel value and coordinates of the pixel in the pixel matrix can represent the color information and position of the pixel, and the distance between two pixels can represent the color difference between the pixels. A clustering algorithm can be used to cluster pixels with similar colors into one category to perform color area division.

[0054] In an example, the preset clustering condition may be represented based on four indicators as shown in Table 1 below.

[0055] Table 1 ISODATA clustering algorithm indicators

[0056]

[0057] In the case where the clustering algorithm is the ISODATA clustering algorithm, the data processing results of the clustering algorithm can be controlled based on the four indicators in Table 1: the number of points within the class, the class spacing, the standard deviation within the class, and the number of clusters, so as to facilitate the color region division of the image to be tested based on the color difference. In Table 1: the number of points within the class represents the number of pixels contained in each color after clustering, the class spacing represents the color difference between two cluster centers, the standard deviation within the class represents the distribution density of pixels within each color, and the number of clusters is determined by the average value / median of the color difference between the pixels in each color and the cluster center. The color region division is completed by analyzing the image to be tested through the clustering algorithm, and the image area of ​​the color classification area can be output. At the same time, the number of pixels contained in each color can be recorded according to the partial image area in the color classification area. It should be noted that in the embodiment of the present invention, the pixel point can represent a pixel.

[0058] Figure 2 A flow chart of performing color region segmentation on an image to be tested to obtain color classification regions corresponding to preset colors according to an embodiment of the present invention is shown.

[0059] like Figure 2 As shown, the image to be tested can be segmented into color regions according to operations S201 to S205. In operation S201, a high-definition image of a painted cultural relic (the image to be tested) is obtained. In operation S202, the high-definition image of a painted cultural relic is processed based on computer vision technology. The high-definition image of the painted cultural relic is converted into a pixel matrix containing color information in the experimental color space. In operation S203, the ISODATA clustering algorithm is executed based on color difference to process the pixel matrix, so that the high-definition image of the painted cultural relic is divided into regions according to preset colors to obtain color classification regions.

[0060] In operation S204, the number of pixels contained in each color classification area of ​​different colors is obtained. In operation S205, according to the size range requirements of the color classification area and the actual measurement point sub-area, measurement points with a diameter of 1mm are arranged in different color classification areas, and the measurement point coordinates (x, y) of the measurement points are output. The measurement point sub-area can be the actual size of the measurement point sub-area set in the color classification area with the measurement point coordinates as the center and 1mm as the diameter. The setting of the diameter can be determined based on the pixel information of the high-definition image of the painted cultural relics and the actual size of the painted cultural relics, and the number of pixels in the color classification area is determined by the number of pixels in the measurement point sub-area with a diameter of 1mm.

[0061] It should be noted that the experimental color space in the embodiment of the present invention can be a color space model established based on the color perception characteristics of the human eye. For example, it can be formulated and named by the International Commission on Illumination in 1976, and the color difference is the distance between two pixels in the experimental color space. The specified 1mm diameter associated with the measuring point can be determined according to the test requirements of the Raman spectrometer. The specified diameter associated with the measuring point can be adjusted according to the parameters of the spectrum detection device actually used to meet the actual test requirements.

[0062] According to an embodiment of the present invention, controlling a spectral detection device to perform spectral detection on a color classification area to obtain a measuring point spectral map related to a measuring point sub-area may include: determining an initial measuring point position corresponding to a sampling position in an image to be measured; determining a measuring point sub-area related to the color classification area in the color classification area according to the initial measuring point position and preset sub-area range information; and controlling the spectral detection device to perform spectral detection on the measuring point sub-area to obtain a measuring point spectral map.

[0063] According to an embodiment of the present invention, the sampling position is related to the spectrum detection device. For example, the sampling position may be determined by the spectrum detection parameters configured for the spectrum detection device. The sampling position may be the position of the spectrum detection probe of the spectrum detection device, and the initial measurement point position may be the position of the spectrum detection probe that moves to the sampling position and performs spectrum detection on the color classification area.

[0064] According to an embodiment of the present invention, the initial measurement point position may be a point with measurement point coordinates in the color classification area, and the preset sub-area range information may include information characterizing the area range, such as diameter and radius. The initial measurement point position may be used as the center of the measurement point sub-area, and the measurement point sub-area is determined in the color classification area according to the position of the center of the measurement point sub-area and the sub-area range information.

[0065] According to an embodiment of the present invention, determining a measuring point sub-region related to the color classification region in the color classification region according to the initial measuring point position and the preset sub-region range information may include: determining the initial measuring point sub-region in the color classification region according to the initial measuring point position and the sub-region range information;

[0066] When the initial measuring point sub-area is located in the color classification area and the boundary of the initial measuring point sub-area at least partially overlaps with the boundary of the color classification area, a target preset measuring point adjacent to the initial measuring point position is determined in the preset measuring point library; and based on the target preset measuring point, a measuring point sub-area related to the color classification area is determined in the color classification area.

[0067] According to an embodiment of the present invention, when the initial measuring point sub-region is located in the color classification region, and the boundary of the initial measuring point sub-region at least partially overlaps with the boundary of the color classification region, it can be determined that the initial measuring point sub-region is partially located outside the color classification region. Therefore, it can be determined that the initial measuring point sub-region cannot completely represent the image information in the color classification region, and a measuring point sub-region completely included in the color classification region can be obtained by determining a target preset measuring point adjacent to the initial measuring point position in the preset measuring point library, and according to the target preset measuring point and the preset sub-region range information, in the color classification region.

[0068] According to an embodiment of the present invention, the preset measuring points in the preset measuring point library are determined based on the following method: a preset measuring point sub-area is determined in the color classification area, the distance between the boundary of the preset measuring point sub-area and the boundary of the color classification area is greater than the preset interval distance; and the preset measuring point is determined according to the center point of the preset measuring point sub-area.

[0069] According to an embodiment of the present invention, a plurality of preset measuring point sub-areas may be set for each color classification area, and the distance between the boundary of the preset measuring point sub-area and the boundary of the color classification area is greater than a preset spacing distance (for example, greater than 1 mm), so that the preset measuring point sub-area can be completely included in the color classification area. In the case where a plurality of preset measuring points are included in the color classification area, the preset measuring point closest to the initial measuring point may be used as a neighboring target preset measuring point by calculating the distance between the initial measuring point and the plurality of preset measuring points.

[0070] Figure 3 A schematic diagram showing the principle of determining a measurement point sub-area related to a color classification area according to an embodiment of the present invention is shown.

[0071] like Figure 3As shown, the color classification area 300 may be an image area related to red in the image to be measured. The color classification area 300 may include a plurality of preset measuring points 311 ... to 321. The preset measuring points 311 and 321 may each correspond to the preset measuring point sub-areas 310 and 320. The distance between the boundaries of the preset measuring point sub-areas 310 and 320 and the boundary of the color classification area 300 may be greater than or equal to 1 mm (preset spacing distance).

[0072] like Figure 3 As shown, when the color classification area 300 is sampled according to the first sampling point position of the spectrum detection device, an initial measurement point 331 can be obtained. The initial measurement point sub-area 330 can be determined according to the initial measurement point 331 and the preset sub-area range information. The initial measurement point sub-area 330 is located in the color classification area 300, and the boundary of the initial measurement point sub-area 330 at least partially overlaps with the boundary of the color classification area 300. Therefore, the preset measurement point 311 closest to the initial measurement point 331 can be used as the target preset measurement point, and the preset measurement point sub-area 310 can be determined as the measurement point sub-area corresponding to the first sampling point position.

[0073] like Figure 3 As shown, when the color classification area 300 is sampled according to the second sampling point position of the spectrum detection device, an initial measurement point 341 can be obtained. The initial measurement point sub-area 340 can be determined according to the initial measurement point 341 and the preset sub-area range information. The initial measurement point sub-area 340 is located in the color classification area 300, and the distance between the boundary of the initial measurement point sub-area 340 and the boundary of the color classification area 300 satisfies the condition of being greater than or equal to 1 mm (preset spacing distance), so the preset measurement point sub-area 340 can be determined as the measurement point sub-area corresponding to the second sampling point position.

[0074] According to an embodiment of the present invention, the arrangement of preset measuring points in the preset measuring point library can also be determined based on the following rules. The number of preset measuring points in the color classification area for color i can be determined based on the number of pixels in the color classification area for color i. For example, one thousandth of the number of pixels in the color classification area for color i can be determined as the number of preset measuring points related to color i. When the number k of preset measuring points related to color i is less than 10, the number k of preset measuring points=10. When the number k of preset measuring points related to color i is greater than 100, k=100. In the case where the initial measuring point sub-area of ​​the initial measuring point j randomly sampled for color i intersects with the boundary of the color classification area for color i, the preset measuring point k1 closest to the initial measuring point j can be used as the target preset measuring point, thereby obtaining the target preset measuring point sub-area corresponding to the preset measuring point k1.

[0075] According to an embodiment of the present invention, an image preprocessing process such as mean filtering may also be performed on pixels in the measurement point sub-region to improve the accuracy of subsequent detection spectrograms.

[0076] According to an embodiment of the present invention, determining a target spectrum graph that matches a measuring point spectrum graph from a preset material spectrum graph library may include: determining a vector angle between the measuring point spectrum graph and a material spectrum graph in the material spectrum graph library; and determining a target spectrum graph that matches the measuring point spectrum graph from the material spectrum graph library based on the vector angle.

[0077] According to an embodiment of the present invention, a material spectrum library may include multiple material spectrum graphs. The material spectrum graph may be obtained by spectrally detecting a preset material image area, and the material image area may represent a partial object area of ​​a sample painted cultural relic, and the material and the ratio between the materials in the partial object area may be known.

[0078] In one example, 20 commonly used painted cultural relics can be constructed based on a single pigment, 2 base materials, and 25 commonly used mixed pigments with different mass concentration gradients as shown in Table 2 below.

[0079] Table 2 Materials in the self-built Raman spectroscopy database

[0080]

[0081] The materials and proportions shown in Table 2 are used to construct a material spectrum, which can include the more common material types and proportions between materials in painted cultural relics. In the mixed pigments: orpiment + clam powder, malachite + clam powder, malachite + azurite, azurite + clam powder, cinnabar + clam powder, the above 5 mixed pigments can be mixed according to the five mass concentrations of 2:8, 4:6, 5:5, 6:4 and 8:2, for a total of 25 samples. It should be noted that those skilled in the art can expand the types of materials and the proportions between materials in single pigments and mixed pigments according to actual needs, and then obtain a material spectrum that meets actual needs by performing spectral detection on the constructed sample image area.

[0082] Figure 4 A schematic diagram of a material spectrum diagram according to an embodiment of the present invention is shown.

[0083] like Figure 4 The material spectrum shown is a Raman spectrum obtained by performing Raman spectrum detection on an image of a painted cultural relic made based on the material "cinnabar".

[0084] Figure 5 A schematic diagram of a material spectrum diagram according to another embodiment of the present invention is shown.

[0085] like Figure 5The material spectrum shown is a Raman spectrum obtained by performing Raman spectrum detection on an image of a painted cultural relic made based on the material "clam powder".

[0086] Figure 6 A schematic diagram of a material spectrum diagram according to yet another embodiment of the present invention is shown.

[0087] like Figure 6 The material spectrum shown is a Raman spectrum obtained by performing Raman spectrum detection on an image of a painted cultural relic made based on the material "cinnabar + clam powder", and the material ratio of (cinnabar: clam powder) is 2:8.

[0088] It should be noted that Figures 4 to 6 The vertical axis in can represent Raman intensity. Figures 4 to 6 The horizontal axis in can represent the wave number (wavenumber), for example, it can be the wave number contained in a unit length.

[0089] According to an embodiment of the present invention, determining the vector angle between the measured point spectrum and the material spectrum in the material spectrum library may include: processing the measured point spectrum and the material spectrum based on a spectral angle matching (SAM) algorithm to obtain the vector angle between the measured point spectrum and the material spectrum. By traversing the material spectrum in the material spectrum library to determine the vector angle between the measured point spectrum and each material spectrum, the material spectrum with the smallest vector angle between the measured point spectrum can be determined as the target spectrum that matches the measured point spectrum. Therefore, the material identification corresponding to the target spectrum and the material ratio between the material identifications can be used as the target material attribute corresponding to the sub-area of ​​the measured point.

[0090] Figure 7 A schematic diagram of a process for determining target material properties according to an embodiment of the present invention is shown.

[0091] like Figure 7As shown, the target material properties can be determined based on operations S701 to S704. In operation S701, a spectrum is obtained, and a measuring point spectrum and a preset material spectrum of a measuring point sub-area can be obtained. In operation S702, the measuring point spectrum and the preset material spectrum are normalized, and only the spectral type information of the spectrum is retained to avoid interference caused by different characteristic peak intensities of the spectrum before normalization. In operation S703, the measuring point spectrum and the preset material spectrum can be processed based on the traversal algorithm and the SAM algorithm, and then the spectral angle (or spectral vector angle) between each material spectrum in the measuring point spectrum and the material spectrum can be calculated. In operation S704, the target material spectrum is determined according to the minimum spectral angle, and then the material name of the target material spectrum and the ratio between the material names can be used as the target material property. The target material property can also be determined as the material property of the measuring point sub-area.

[0092] According to an embodiment of the present invention, the target material attributes include a target material identification and a target material ratio associated with a target measurement point sub-area, the target material ratio corresponds to the target material identification, the target measurement point sub-area is associated with a target spectrum graph, and the color classification area includes multiple.

[0093] According to an embodiment of the present invention, the target measuring point sub-region may be a measuring point sub-region corresponding to a spectrum diagram of a target material.

[0094] Figure 8 A flow chart of determining the material properties of a painted cultural relic according to a target material property associated with a target spectrum diagram according to an embodiment of the present invention is shown.

[0095] like Figure 8 As shown, the method for analyzing material properties of painted cultural relics in this embodiment includes operations S810 to S860.

[0096] In operation S810, for the same target measuring point sub-region, a material ratio value related to the target material identifier in the target measuring point sub-region is determined according to the target material identifier and the target material ratio.

[0097] In operation S820, for color classification areas with the same color attribute, a cumulative operation is performed on a plurality of material proportion values ​​associated with the target material identifier to obtain a material proportion cumulative value associated with the target material identifier in the color classification areas with the same color attribute.

[0098] In operation S830, for color classification areas with the same color attribute, a material proportion cumulative value related to the target material identification and the number of measuring point sub-areas related to the color classification area are divided to obtain a target material proportion corresponding to the target material identification.

[0099] In operation S840, a multiplication operation is performed on the number of pixels in the color classification area with the same color attribute and the target material proportion to obtain the number of regional material pixels corresponding to the target material identifier.

[0100] In operation S850, an accumulation operation is performed on the number of regional material pixel points corresponding to each of the plurality of color classification regions to obtain the number of material pixel points corresponding to the target material identification in the image to be tested.

[0101] In operation S860, object material ratio information related to the target material identification in the painted cultural relic is determined based on the ratio between the number of material pixels corresponding to the target material identification and the number of pixels of the image to be tested, wherein the object material attributes include the object material ratio information.

[0102] In one example, the target material ratio between the target measuring point sub-area and the target material identification "Cinnabar: Clam powder" is 2:8. The material ratio value of the target material identification "Cinnabar" is 0.2, and the material ratio value of the target material identification "Clam powder" is 0.8.

[0103] According to an embodiment of the present invention, the target material ratio may represent a proportional relationship between the material identified by the target material and the overall material in the color classification area having the same color attribute.

[0104] According to an embodiment of the present invention, the number of regional material pixels can represent the number of pixels recording the target material identification in the color classification area with the same color attribute. By summing up the number of regional material pixels related to the target material identification in each of the multiple color classification areas, the number of pixels recording the target material identification in the image to be tested (the number of material pixels) can be obtained. By dividing the number of material pixels recording the target material identification in the image to be tested by the total number of pixels in the image to be tested, the proportion of the material with the target material identification in the painted cultural relics in the image to be tested (object material proportion information) can be obtained, so that the material property analysis of the painted cultural relics in the image to be tested can be realized based on the target material identification and the object material proportion information corresponding to the target material identification, and the material name and material composition ratio of the painted cultural relics can be accurately determined.

[0105] In one example, the material ratio information of the object related to the target material identification may be calculated based on the following steps.

[0106] Step 1: Obtain target material identification and material proportions related to the target material identification in the target measurement point sub-areas of each of Color 1, Color 2, ... to Color n.

[0107] For example, the target measuring point in the target measuring point sub-area may be represented in the following manner.

[0108] Color 1: measuring point (x11, y11), measuring point (x12, y12) ... measuring point (x1n, y1n);

[0109] Color 2: measuring point (x21, y21), measuring point (x22, y22) ... measuring point (x2n, y2n);

[0110] Color n: measuring point (xn1, yn1), measuring point (xn2, yn2)... measuring point (xnn, ynn).

[0111] It should be noted that the measuring point (x11, y11) may represent the measuring point position of the target measuring point in the image to be measured.

[0112] Step 2: According to the target material identification and the target material ratio, the material ratio value related to the target material identification in the target measurement point sub-area can be determined.

[0113] For example, the material ratio value may be expressed based on the following manner.

[0114] Color 1: material ratio value of measuring point (x11, y11), material ratio value of measuring point (x12, y12) ... material ratio value of measuring point (x1n, y1n);

[0115] Color 2: material ratio value of measuring point (x21, y21), material ratio value of measuring point (x22, y22) ... material ratio value of measuring point (x2n, y2n);

[0116] Color n: material proportion value of measuring point (xn1, yn1), material proportion value of measuring point (xn2, yn2), ... material proportion value of measuring point (xnn, ynn).

[0117] Step 3, for the color classification area with the same color attribute, perform a cumulative operation on multiple material proportion values ​​related to the target material identification, and obtain the material proportion cumulative value related to the target material identification in the color classification area with the same color attribute.

[0118] For example, the material proportion accumulated value may be expressed based on the following manner.

[0119] Color 1: the accumulated value of the material proportions of material a, material b, material c, etc.

[0120] Color 2: the accumulated value of the material proportions marked by material a, the accumulated value of the material proportions marked by material b, the accumulated value of the material proportions marked by material c, and so on;

[0121] Color n: the accumulated value of the material proportions identified by material a, the accumulated value of the material proportions identified by material b, the accumulated value of the material proportions identified by material c, and so on.

[0122] Step 4: for color classification areas with the same color attribute, a division operation is performed on the accumulated value of the material proportion related to the target material identification and the number of measuring point sub-areas related to the color classification area to obtain the target material proportion corresponding to the target material identification.

[0123] For example, the target material ratio corresponding to the target material identifier may be represented in the following manner.

[0124] Color 1: a material target material ratio (%), b material target material ratio (%), c material target material ratio (%), etc.;

[0125] Color 2: target material proportion of material a (%), target material proportion of material b (%), target material proportion of material c (%), etc.;

[0126] Color n: a material target material proportion (%), b material target material proportion (%), c material target material proportion (%), and so on.

[0127] Step 5, multiply the number of pixels in the color classification area with the same color attribute by the target material proportion to obtain the number of regional material pixels corresponding to the target material identifier.

[0128] For example, the number of regional material pixels corresponding to the target material identifier may be represented in the following manner.

[0129] Color 1: the number of material pixels in the a material area, the number of material pixels in the b material area, the number of material pixels in the c material area, and so on;

[0130] Color 2: the number of material pixels in the a material area, the number of material pixels in the b material area, the number of material pixels in the c material area, and so on;

[0131] Color n: the number of material pixels in material area a, the number of material pixels in material area b, the number of material pixels in material area c, and so on.

[0132] Step 5: performing a cumulative operation on the number of regional material pixel points corresponding to each of the plurality of color classification regions to obtain the number of material pixel points corresponding to the target material identification in the image to be tested.

[0133] For example, the number of material pixels corresponding to the target material identifier may be represented in the following manner.

[0134] The number of material pixels of material a, the number of material pixels of material b, the number of material pixels of material c, and so on.

[0135] Step 6, determining the material proportion information of the objects related to the target material identification in the painted cultural relics according to the ratio between the number of material pixels corresponding to the target material identification and the number of pixels of the image to be tested.

[0136] For example, the material ratio information of the item corresponding to the target material identifier may be represented in the following manner.

[0137] The material ratio information of items of material a (%), the material ratio information of items of material b (%), the material ratio information of items of material c (%), and so on.

[0138] The method for analyzing material properties of painted cultural relics provided by the embodiment of the present invention can at least achieve the following technical effects.

[0139] 1. By scanning and analyzing the ontological information of painted cultural relics, the pigments used in the painted cultural relics and their area ratio can be determined simply, quickly and automatically. Then, according to the analysis results of the material properties, accurate and effective support can be provided for the research and development of lighting sources for painted cultural relics, thereby providing favorable conditions for the precise lighting protection of painted cultural relics.

[0140] 2. According to the method provided by the present invention, Raman spectrum testing and matching of various types of painted cultural relics can be achieved by establishing a material spectrum library of painted cultural relics, thereby accurately determining the pigments used at the measuring points and their relative contents, providing accurate data basis for quantitative analysis of painted cultural relic materials.

[0141] Fig. 9 A structural block diagram of a device for analyzing material properties of painted cultural relics according to an embodiment of the present invention is shown.

[0142] like Fig. 9 As shown, the device 900 for analyzing the material properties of painted cultural relics includes: a color classification area determination module 910, a spectrum detection module 920, a target spectrum diagram module 930 and an object material property determination module 940.

[0143] The color classification region determination module 910 is used to perform color region segmentation on the image to be tested to obtain color classification regions corresponding to preset colors, and the image to be tested is related to the painted cultural relics to be detected.

[0144] The spectrum detection module 920 is used to control the spectrum detection device to perform spectrum detection on the color classification area to obtain a measurement point spectrum diagram related to the measurement point sub-area.

[0145] The target spectrum module 930 is used to determine a target spectrum that matches the measurement point spectrum from a preset material spectrum library, wherein the target spectrum is associated with a target material property.

[0146] The object material property determination module 940 is used to determine the object material property of the painted cultural relic according to the target material property associated with the target spectrum.

[0147] According to an embodiment of the present invention, the color classification area determination module includes: a clustering processing unit and a first determination unit.

[0148] The clustering processing unit is used to process the color attributes of the pixels in the image to be tested based on the clustering algorithm to obtain clustered pixels in the clustering clusters.

[0149] The first determining unit is used to determine the color classification area from the image to be tested according to the clustered pixels in the clustered clusters.

[0150] According to an embodiment of the present invention, cluster pixels in a cluster cluster satisfy preset cluster conditions, and the preset cluster conditions include at least one of the following: a first condition, characterizing that the number of pixels of cluster pixels in the cluster cluster is greater than or equal to a preset number threshold; a second condition, characterizing that the color difference between different cluster center pixels is greater than or equal to a preset color difference threshold, and the cluster center pixel is the cluster center of the cluster cluster; a third condition, characterizing that the number of cluster clusters is less than or equal to the cluster pixel color difference, the cluster pixel color difference is determined based on the color difference between the cluster center pixel and the cluster neighboring pixels, the cluster neighboring pixels and the cluster center pixel are located in the same cluster cluster, and the cluster neighboring pixels are different from the cluster center pixel.

[0151] According to an embodiment of the present invention, the spectrum detection module includes: a second determination unit, a third determination unit and a spectrum detection unit.

[0152] The second determining unit is used to determine an initial measuring point position corresponding to a sampling position in the image to be measured, wherein the sampling position is related to the spectrum detection device.

[0153] The third determining unit is used to determine the measuring point sub-region related to the color classification region in the color classification region according to the initial measuring point position and the preset sub-region range information.

[0154] The spectrum detection unit is used to control the spectrum detection device to perform spectrum detection on the measurement point sub-area to obtain a spectrum diagram of the measurement point.

[0155] According to an embodiment of the present invention, the third determining unit includes: a first determining subunit, a second determining subunit and a third determining subunit.

[0156] The first determination subunit is used to determine the initial measurement point sub-region in the color classification region according to the initial measurement point position and the sub-region range information.

[0157] The second determining subunit is used to determine a target preset measuring point adjacent to the initial measuring point position in the preset measuring point library when the initial measuring point subregion is located in the color classification region and the boundary of the initial measuring point subregion at least partially overlaps with the boundary of the color classification region.

[0158] The third determining subunit is used to determine a measuring point sub-region related to the color classification region in the color classification region according to a target preset measuring point.

[0159] According to an embodiment of the present invention, the preset measuring points in the preset measuring point library are determined based on the following method: a preset measuring point sub-area is determined in the color classification area, the distance between the boundary of the preset measuring point sub-area and the boundary of the color classification area is greater than the preset interval distance; and the preset measuring point is determined according to the center point of the preset measuring point sub-area.

[0160] According to an embodiment of the present invention, the target spectrum graph module includes: a fourth determination unit and a fifth determination unit.

[0161] The fourth determining unit is used to determine the vector angle between the spectrum of the measuring point and the material spectrum in the material spectrum library.

[0162] The fifth determining unit is used to determine a target spectrum that matches the spectrum of the measuring point from the material spectrum library according to the vector angle.

[0163] According to an embodiment of the present invention, the target material attributes include a target material identification and a target material ratio associated with a target measurement point sub-area, the target material ratio corresponds to the target material identification, the target measurement point sub-area is associated with a target spectrum graph, and the color classification area includes multiple.

[0164] According to an embodiment of the present invention, the module for determining the material property of an item includes: a sixth determining unit, a first obtaining unit, a second obtaining unit, a third obtaining unit, a fourth obtaining unit and a seventh determining unit.

[0165] The sixth determination unit is used to determine, for the same target measuring point sub-region, a material proportion value related to the target material identifier in the target measuring point sub-region according to the target material identifier and the target material proportion.

[0166] The first obtaining unit is used to perform an accumulation operation on multiple material proportion values ​​related to the target material identification for the color classification area with the same color attribute, so as to obtain the material proportion accumulation value related to the target material identification in the color classification area with the same color attribute.

[0167] The second obtaining unit is used to perform a division operation on the material proportion cumulative value related to the target material identification and the number of measuring point sub-areas related to the color classification area with the same color attribute, so as to obtain the target material proportion corresponding to the target material identification.

[0168] The third obtaining unit is used to perform a multiplication operation on the number of pixel points in the color classification area with the same color attribute and the target material proportion to obtain the number of regional material pixel points corresponding to the target material identifier.

[0169] The fourth obtaining unit is used to perform an accumulation operation on the number of regional material pixel points corresponding to each of the multiple color classification areas to obtain the number of material pixel points corresponding to the target material identification in the image to be tested.

[0170] The seventh determination unit is used to determine the object material ratio information related to the target material identification in the painted cultural relics based on the ratio between the number of material pixel points corresponding to the target material identification and the number of pixel points of the image to be tested, wherein the object material attributes include the object material ratio information.

[0171] An embodiment of the present invention further provides a device for performing material analysis on painted cultural relics, the device for performing material analysis on painted cultural relics comprising: a spectral detection device, a robotic arm, and the device for performing material property analysis on painted cultural relics as described in the above embodiment.

[0172] The mechanical arm is connected to the spectrum detection device and is used to control the spectrum detection device to move to the sampling point position.

[0173] The device for analyzing the material properties of painted cultural relics is electrically connected to the spectral detection device and the robotic arm, wherein the device for analyzing the material properties of painted cultural relics is configured to control the movement of the robotic arm so as to control the spectral detection device to move to a detection point related to the image to be tested, so that the spectral detection device can perform spectral detection on the image to be tested.

[0174] Fig.10 A schematic diagram of a device for performing material analysis on painted cultural relics according to an embodiment of the present invention is shown.

[0175] like Fig.10As shown, the device for material analysis of painted cultural relics may include: a mechanical arm 1010, a spectrometer 1020, a device for material analysis of painted cultural relics 1030 and a motor 1040. The spectrometer 1020 may include a spectrometer probe 1021, which is used to perform Raman spectrum detection on the image to be measured 1001, and the obtained measurement point spectrum map can be sent to the device 1030 for material analysis of painted cultural relics. The device 1030 for material analysis of painted cultural relics may include a spectrometer control module 1031, a spectrometer signal receiving module 1032, a data output module 1033 and a central processor 1034. The mechanical arm 1010 may include multiple mechanical arms 1010, and the multiple mechanical arms 1010 may be rotatably connected through the motor 1040.

[0176] like Fig.10 As shown, the image to be measured 1001 can be a high-definition image obtained after image acquisition of the painted cultural relics. The central processor 1034 controls the spectrometer control module 1031 to make the mechanical arm 1010 and the motor 1040 perform corresponding actions, so that the spectrometer probe 1021 is positioned to the measuring point position of the image to be measured 1001. The central processor 1034 sends a "measurement" signal to the spectrometer signal receiving module 1032. The spectrometer 1020 performs spectral detection on the measuring point sub-area. After the detection is completed, the central processor 1034 sends an "output" signal to the data output module 1033 to output the detected measuring point spectral data to the central processor 1034. The central processor 1034 processes the detected measuring point spectral data based on the method provided by the embodiment of the present invention to obtain the name of the object material and the object material ratio information of the painted cultural relics in the image to be measured 1001.

[0177] In one example, the device for material analysis of painted cultural relics provided by the embodiment of the present invention may further include an image acquisition device. The device may directly acquire images of the painted cultural relics through the image acquisition device to execute the method provided by the embodiment of the present invention.

[0178] It should also be noted that the above are different embodiments of the present invention. These embodiments are used to illustrate the technical content of the present invention, rather than to limit the scope of protection of the present invention. A feature of an embodiment can be applied to other embodiments through appropriate modification, replacement, combination, and separation.

[0179] In addition, unless the steps are specifically described or must occur in sequence, the order of the above steps is not limited to the above list, and can be changed or rearranged according to the required design. And the above embodiments can be mixed and matched with each other or with other embodiments based on design and reliability considerations, that is, the technical features in different embodiments can be freely combined to form more embodiments.

[0180] The specific embodiments described above further illustrate the objectives, technical solutions and beneficial effects of the present invention in detail. It should be understood that the above description is only a specific embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the spirit and principles of the present invention should be included in the protection scope of the present invention.

Claims

1. A method for analyzing material properties of painted cultural relics, characterized in that: include: Performing color region segmentation on the image to be tested to obtain color classification regions corresponding to preset colors, wherein the image to be tested is related to the painted cultural relics to be detected; Controlling a spectrum detection device to perform spectrum detection on the color classification area to obtain a measurement point spectrum graph related to a measurement point sub-area, wherein the measurement point sub-area is located in the color classification area; Determining a target spectrum graph that matches the measurement point spectrum graph from a preset library of spectrum graphs of candidate materials, wherein the spectrum of the candidate material in the spectrum graph of the candidate material represents a sub-region of the candidate measurement point, and the target spectrum graph is associated with a target material property; and Determining the material properties of the painted cultural relic according to the target material properties associated with the target spectrum; Wherein, determining a target spectrum graph matching the spectrum graph of the measuring point from a preset material spectrum graph library comprises: Determining a vector angle between the spectrum graph of the measuring point and a material spectrum graph in the material spectrum graph library; and According to the vector angle, determining a target spectrum graph that matches the spectrum graph of the measuring point from the material spectrum graph library; Wherein, the target material attribute includes a target material identification and a target material ratio associated with a target measurement point sub-region, the target material ratio corresponds to the target material identification, the target measurement point sub-region is associated with the target spectrum graph, and the color classification region includes a plurality of regions; Wherein, determining the material attribute of the painted cultural relic according to the target material attribute associated with the target spectrum includes: For the same target measuring point sub-region, according to the target material identification and the target material ratio, determine the material ratio value related to the target material identification in the target measuring point sub-region; For the color classification area with the same color attribute, performing a cumulative operation on the multiple material proportion values ​​related to the target material identifier to obtain the material proportion cumulative value related to the target material identifier in the color classification area with the same color attribute; For the color classification areas with the same color attribute, a division operation is performed on the accumulated value of the material proportion related to the target material identification and the number of the measuring point sub-areas related to the color classification area to obtain the target material proportion corresponding to the target material identification; The number of pixels in the color classification area with the same color attribute is multiplied by the target material proportion to obtain the number of regional material pixels corresponding to the target material identifier; Performing a cumulative operation on the number of regional material pixel points corresponding to each of the plurality of color classification regions to obtain the number of material pixel points corresponding to the target material identifier in the image to be tested; and According to the ratio between the number of material pixels corresponding to the target material identification and the number of pixels of the image to be tested, the object material proportion information related to the target material identification in the painted cultural relic is determined, wherein the object material attribute includes the object material proportion information.

2. The method according to claim 1, characterized in that The color region of the image to be tested is segmented, and the color classification regions corresponding to the preset colors are obtained, including: Processing the color attributes of the pixels in the image to be tested based on a clustering algorithm to obtain clustered pixels in clusters; and The color classification area is determined from the image to be tested according to the clustered pixels in the clustered clusters.

3. The method according to claim 2, characterized in that The clustered pixels in the cluster cluster meet a preset clustering condition, and the preset clustering condition includes at least one of the following: The first condition is that the number of clustered pixels of each color in the cluster is greater than or equal to a preset number threshold; The second condition is characterized in that the color difference between different cluster center pixels is greater than or equal to a preset color difference threshold, and the cluster center pixel is the cluster center of the cluster cluster; The third condition characterizes that the number of clusters is less than or equal to the cluster pixel color difference, the number of cluster clusters is determined based on the average value or median of the color difference between the cluster pixels and the cluster center pixel in each color, the cluster pixel color difference is determined based on the color difference between the cluster center pixel and the cluster neighboring pixels, the cluster neighboring pixels and the cluster center pixel are located in the same cluster cluster, and the cluster neighboring pixels are different from the cluster center pixel.

4. The method according to claim 1, characterized in that Controlling the spectrum detection device to perform spectrum detection on the color classification area to obtain a measurement point spectrum graph related to the measurement point sub-area includes: Determining an initial measuring point position corresponding to a sampling position in the image to be measured, wherein the sampling position is related to the spectrum detection device; Determining, in the color classification area, a measurement point sub-area associated with the color classification area according to the initial measurement point position and preset sub-area range information; and The spectrum detection device is controlled to perform spectrum detection on the measurement point sub-area to obtain the spectrum diagram of the measurement point.

5. The method according to claim 4, characterized in that Determining a measuring point sub-region related to the color classification region in the color classification region according to the initial measuring point position and the preset sub-region range information includes: Determine an initial measurement point sub-region in the color classification region according to the initial measurement point position and the sub-region range information; In a case where the initial measuring point sub-region is located in the color classification region and a boundary of the initial measuring point sub-region at least partially overlaps with a boundary of the color classification region, determining a target preset measuring point adjacent to the position of the initial measuring point in a preset measuring point library; and According to the target preset measuring point, determining a measuring point sub-area related to the color classification area in the color classification area; The preset measuring points in the preset measuring point library are determined based on the following method: Determine a preset measuring point sub-region in the color classification region, wherein the distance between the boundary of the preset measuring point sub-region and the boundary of the color classification region is greater than a preset interval distance; and The preset measuring point is determined according to the center point of the preset measuring point sub-area.

6. The method according to claim 1, characterized in that The spectrum type of the measuring point spectrum graph includes at least one of the following: Raman spectroscopy, infrared spectroscopy, hyperspectroscopy.

7. A device for analyzing material properties of painted cultural relics, characterized in that: include: A color classification region determination module, used to perform color region segmentation on the image to be tested to obtain color classification regions corresponding to preset colors, wherein the image to be tested is related to the painted cultural relics to be detected; A spectrum detection module, used to control a spectrum detection device to perform spectrum detection on the color classification area to obtain a measurement point spectrum graph related to the measurement point sub-area; a target spectrum module, used to determine a target spectrum matching the measurement point spectrum from a preset material spectrum library, wherein the target spectrum is associated with a target material property; and An object material property determination module, used to determine the object material property of the painted cultural relic according to the target material property associated with the target spectrum; Among them, the target spectrum module includes: a fourth determining unit, configured to determine a vector angle between the spectrum graph of the measuring point and the material spectrum graph in the material spectrum graph library; and a fifth determining unit, configured to determine, according to the vector angle, a target spectrum graph that matches the spectrum graph of the measuring point from the material spectrum graph library; Wherein, the target material attribute includes a target material identification and a target material ratio associated with a target measurement point sub-region, the target material ratio corresponds to the target material identification, the target measurement point sub-region is associated with the target spectrum graph, and the color classification region includes a plurality of regions; Among them, the module for determining the material attributes of items includes: A sixth determining unit, configured to determine, for the same target measuring point sub-region, a material proportion value related to the target material identifier in the target measuring point sub-region according to the target material identifier and the target material proportion; A first obtaining unit is used to perform a cumulative operation on a plurality of material proportion values ​​related to the target material identifier in a color classification area with the same color attribute, so as to obtain a material proportion cumulative value related to the target material identifier in the color classification area with the same color attribute; A second obtaining unit is used for performing a division operation on the material proportion cumulative value related to the target material identification and the number of measuring point sub-areas related to the color classification area with the same color attribute, so as to obtain the target material proportion corresponding to the target material identification; A third obtaining unit is used to perform a multiplication operation on the number of pixels in the color classification area with the same color attribute and the target material proportion to obtain the number of regional material pixels corresponding to the target material identifier; a fourth obtaining unit, configured to perform an accumulation operation on the number of regional material pixel points corresponding to each of the plurality of color classification regions, to obtain the number of material pixel points corresponding to the target material identifier in the image to be tested; and The seventh determination unit is used to determine the object material ratio information related to the target material identification in the painted cultural relic based on the ratio between the number of material pixel points corresponding to the target material identification and the number of pixel points of the image to be tested, wherein the object material attribute includes the object material ratio information.

8. A device for material analysis of painted cultural relics, characterized in that: include: Spectral detection device; A mechanical arm connected to the spectrum detection device; as well as According to claim 7, the device for analyzing the material properties of painted cultural relics is electrically connected to the spectral detection device and the robotic arm, wherein the device for analyzing the material properties of painted cultural relics is configured to control the movement of the robotic arm so as to control the spectral detection device to move to a detection point related to the image to be tested, so that the spectral detection device performs spectral detection on the image to be tested.