A rubber water pipe wall strength detection method and device
Patent Information
- Application Number
- CN202410184015.1
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-02-19
- Publication Date
- 2024-09-17
- Estimated Expiration
- 2044-02-19
AI Technical Summary
高光谱分析能够反映物质辐射的光谱信息与反映物质的空间信息,达到“图谱合一”的效果,但是也存在一定的问题,由于橡胶水管是橡胶和添加材料混合生产,单个像元可能同时包含多种生产材料的光谱信息,这些像元称为混合像元,由此需要从混合像元中提取到物质的基本光谱信息和成分含量,此过程称为高光谱解混
[0034] The present invention proposes a rubber water pipe wall strength detection method and device. The hyperspectral data at the sampling position are divided into regions. The difference between the center spectral curve and the boundary spectral curve is calculated for the rubber area to obtain the rubber boundary pixel aliasing degree. Combined with the fiber The central rubber component is peeled off in the area, the fiber spectral line purity coefficient is calculated, and the rubber fiber spectrum variability is obtained by traversing all areas of the current sampling position. It solves the problem of poor detection results due to spectral variation and mixed pixels caused by environmental factors. By calculating the spectral variability of rubber fibers, it screens prior information for the spectral unmixing algorithm, improves the accuracy of unmixing, and finally realizes rubber water pipes. Accurate detection of pipe wall strength.
Smart Images

Figure CN118032673B
Abstract
Description
Technical Field
[0001] The invention relates to the technical field of spectral analysis, and in particular to a method and a device for detecting the wall strength of a rubber water pipe. Background Art
[0002] A rubber water pipe is a pipe used to transport liquids. Its wall is usually made of rubber material. In addition, in order to enhance the strength of the rubber water pipe wall, fiber reinforcement materials or woven fabric layers are usually added to the wall during the production process of the rubber water pipe. These materials are combined with rubber to form a wall reinforcement layer, which can improve the tensile strength, tear resistance, wear resistance and tensile strength of the rubber. In the production process of the rubber water pipe, it is necessary to accurately grasp the added content of various components, so it is necessary to detect the strength of the rubber water pipe wall in real time. Hyperspectral analysis can reflect the spectral information of the radiation of the material and the spatial information of the material, achieving the effect of "graph-spectrum integration", but there are also certain problems. Since the rubber water pipe is a mixture of rubber and additives, a single pixel may contain the spectral information of multiple production materials at the same time. These pixels are called mixed pixels. Therefore, it is necessary to extract the basic spectral information and component content of the material from the mixed pixels. This process is called hyperspectral unmixing.
[0003] In the traditional spectral unmixing algorithm, it is usually assumed that the spectral information of the spectrum does not change in the non-negative matrix decomposition (NMF) algorithm. However, due to the influence of the acquisition environment, there are often spectral variation characteristics, which causes the unmixing estimation error to propagate throughout the unmixing process, making it possible for the NMF algorithm to fail in spectral unmixing. In response to the above problem, the present invention proposes a rubber water pipe wall strength detection method and device, which measures the spectral variation through the collected spectral information, performs spectral variation correction, achieves optimal unmixing, and realizes accurate detection of the rubber water pipe wall strength. Summary of the invention
[0004] In order to solve the above technical problems, the purpose of the present invention is to provide a method and device for detecting the wall strength of a rubber water pipe. The technical solutions adopted are as follows:
[0005] In a first aspect, an embodiment of the present invention provides a method for detecting the wall strength of a rubber water pipe, the method comprising the following steps:
[0006] Collecting hyperspectral data consisting of pixel sequences of all pixels at each sampling position on the wall of the rubber water pipe;
[0007] Use band selection algorithm to synthesize true color of hyperspectral data to obtain pseudo color image, use semantic segmentation neural network to segment pseudo color image to obtain fiber area, rubber area and boundary pixel, obtain spectral line smoothness of each band of boundary pixel of rubber area in sampling position according to reflection intensity in hyperspectral data; obtain rubber spectral focal extension smoothness coefficient of each boundary pixel in each rubber area in sampling position according to spectral line smoothness; obtain rubber boundary pixel aliasing degree of each rubber area in each sampling position according to rubber spectral focal extension smoothness coefficient and hyperspectral data; use Harris corner detection to obtain intersection of adjacent fiber area of each rubber area, obtain pixel sequence vector of each rubber area according to reflection intensity in hyperspectral data of intersection of adjacent fiber area; obtain fiber spectral line purity coefficient of each rubber area according to pixel sequence vector; obtain variability of each rubber area according to aliasing degree of rubber boundary pixel and fiber spectral line purity coefficient, obtain spectral variation of rubber fiber at each sampling position according to variability; obtain end member matrix and abundance matrix of rubber water pipe according to spectral variation of rubber fiber;
[0008] The structural similarity coefficient of the end member matrix of the rubber water pipe and the standard end member matrix is taken as the component difference coefficient. The actual component content of each material in the abundance matrix and the standard component content of each material are obtained according to the L2 norm, and the proportion component difference coefficient is constructed. The sum of the component difference coefficient and the proportion component difference coefficient is taken as the rubber water pipe wall strength detection coefficient. If the rubber water pipe wall strength detection coefficient is less than or equal to the preset wall strength threshold, the rubber water pipe strength has quality defects. Otherwise, the rubber water pipe strength meets the standard.
[0009] Further, the step of obtaining the spectral smoothness of each band of the boundary pixel of the rubber area at the sampling position includes:
[0010] For each boundary pixel of each rubber area at each sampling position, the difference between the reflection intensity of each band in the boundary pixel and the reflection intensity of its subsequent adjacent band is calculated, the bandwidth between each band and its subsequent adjacent band is counted, and the absolute value of the ratio of the difference to the bandwidth is taken as the spectral line smoothness of each boundary pixel in each band.
[0011] Further, the step of obtaining the rubber spectral focus extension smoothing coefficient of each boundary pixel in each rubber region at the sampling position includes:
[0012] For each rubber area, the absolute value of the difference between the spectral line smoothness of the lth band of each boundary pixel in the rubber area and the spectral line smoothness of the lth band of the central pixel in the rubber area is calculated, and the calculation result of the exponential function with the natural constant as the base and the absolute value of the difference as the exponent is calculated, and the sum of all the calculation results of each boundary pixel in the rubber area is used as the rubber spectral focal extension smoothing coefficient of each boundary pixel.
[0013] Further, the step of obtaining the aliasing degree of rubber boundary pixels of each rubber area in each sampling position includes:
[0014] For each rubber area at the sampling position, the mean value of the rubber spectral focal extension smoothing coefficients of all boundary pixels is calculated, and the absolute value of the difference between each boundary pixel and the mean value is calculated;
[0015] Calculate the Pearson correlation coefficient between the pixel sequence of each boundary pixel in the rubber area and the pixel sequence of the central pixel in the rubber area, and calculate the result of an exponential function with the number 2 as the base and the correlation coefficient as the exponent;
[0016] The ratio of the absolute value of the difference to the calculation result is calculated, and the average of all the ratios in the rubber area is used as the aliasing degree of the rubber boundary pixel of each rubber area.
[0017] Further, the method of obtaining the intersection points of adjacent fiber regions of each rubber region and obtaining the pixel sequence vector of each rubber region according to the reflection intensity in the hyperspectral data of the intersection points of the adjacent fiber regions includes:
[0018] For each rubber region, the Harris corner point detection algorithm is used to obtain the corner points of each rubber region. For each corner point, the two closest corner points are connected, and the center point of the closed area formed by the connecting lines between the corner points is used as the fiber region intersection point, and the four fiber region intersection points closest to each rubber region are used as the adjacent fiber region intersection points of each rubber region;
[0019] For each rubber region, the mean of all pixel sequences in the rubber region is taken as the mean pixel sequence of each rubber region, and the sequence obtained by subtracting the pixel sequence of the intersection of each adjacent fiber region from the mean pixel sequence is taken as the pixel sequence vector of each rubber region.
[0020] Further, the obtaining of the fiber spectrum purity coefficient of each rubber region includes:
[0021] For each rubber region at each sampling position, the cosine similarity between the pixel sequences of the rubber region is calculated, and the mean value of all the cosine similarities of the rubber region is taken as the fiber spectral purity coefficient of each rubber region.
[0022] Further, the obtaining of the variation of each rubber region and obtaining the spectral variation of the rubber fiber at each sampling position according to the variation include:
[0023] For each rubber area at each sampling position, the ratio of the aliasing degree of the rubber boundary pixel to the purity coefficient of the fiber spectrum line is calculated, and the calculation result of an exponential function with a natural constant as the base and the ratio as the exponent is calculated, and the rounded-down value of the calculation result is used as the variability of each rubber area;
[0024] Obtain the center point of each rubber region, take the rubber regions corresponding to the eight center points closest to the center point of each rubber region as the neighborhood rubber regions of each rubber region, calculate the probability of the variation of each neighborhood rubber region in the variation of all neighborhood rubber regions in the rubber region, and calculate the information entropy of the probability as the spectral variation evaluation coefficient of each rubber region;
[0025] The average of the spectrum variability evaluation coefficients of all rubber regions at each sampling position is taken as the spectrum variability of the rubber fiber at each sampling position.
[0026] Further, the step of obtaining the end member matrix and abundance matrix of the rubber water pipe includes:
[0027] For the spectral variation of rubber fibers on the rubber water pipe wall at each sampling position, the hyperspectral data of the sampling positions corresponding to the top 10% of the spectral variation of rubber fibers are selected for spectral unmixing using the NFM algorithm to obtain the end member matrix and abundance matrix of the rubber water pipe wall.
[0028] Furthermore, the actual component content of each material and the standard component content of each material in the abundance matrix are obtained according to the L2 norm, and the ratio component difference coefficient is constructed, including:
[0029] For the abundance matrix of the rubber water pipe, the ratio of each row vector in the abundance matrix to the L2 norm of the abundance matrix is calculated as the actual component content of each material corresponding to each row vector;
[0030] For the standard abundance matrix, the method of using the same actual component content of the material is used to obtain the standard component content of each material corresponding to each row vector in the annotated abundance matrix;
[0031] The cosine similarity between the actual content of each material and the standard content of each material was calculated, and the mean of all cosine similarities was taken as the coefficient of difference in the proportion of ingredients.
[0032] In a second aspect, an embodiment of the present invention further provides a rubber water pipe wall strength detection device, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor implements the steps of any one of the above-mentioned methods when executing the computer program.
[0033] The present invention has at least the following beneficial effects:
[0034] The present invention proposes a rubber water pipe wall strength detection method and device, which divides the hyperspectral data of the sampling position into regions, calculates the difference between the central spectral curve and the boundary spectral curve for the rubber region to obtain the aliasing degree of the rubber boundary pixel, combines the fiber region to strip the central rubber component, calculates the fiber spectral line purity coefficient, and traverses all regions of the current sampling position to obtain the rubber fiber spectrum variation. The problem of poor detection effect caused by spectral variation and mixed pixels due to environmental factors is solved, and the spectral variation of rubber fibers is calculated to filter prior information for the spectral unmixing algorithm, improve the unmixing accuracy, and finally achieve accurate detection of the rubber water pipe wall strength. BRIEF DESCRIPTION OF THE DRAWINGS
[0035] In order to more clearly illustrate the technical solutions and advantages in the embodiments of the present invention or the prior art, the drawings required for use in the embodiments or the prior art descriptions are briefly introduced below. Obviously, the drawings described below are only some embodiments of the present invention. For ordinary technicians in this field, other drawings can be obtained based on these drawings without paying creative work.
[0036] Figure 1 A flow chart of the steps of a method for detecting the wall strength of a rubber water pipe provided by one embodiment of the present invention;
[0037] Figure 2 This is a schematic diagram of a rubber water pipe;
[0038] Figure 3 It is a schematic diagram of the rubber area and the fiber area;
[0039] Figure 4 Flowchart for obtaining spectral variability of rubber fibers. DETAILED DESCRIPTION
[0040] In order to further explain the technical means and effects adopted by the present invention to achieve the predetermined invention purpose, the following is a detailed description of a rubber water pipe wall strength detection method and device proposed by the present invention, its specific implementation, structure, features and effects, in conjunction with the accompanying drawings and preferred embodiments. In the following description, different "one embodiment" or "another embodiment" does not necessarily refer to the same embodiment. In addition, specific features, structures or characteristics in one or more embodiments may be combined in any suitable form.
[0041] Unless defined otherwise, all technical and scientific terms used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this invention belongs.
[0042] The specific scheme of a rubber water pipe wall strength detection method and device provided by the present invention is described in detail below with reference to the accompanying drawings.
[0043] See also Figure 1 , which shows a flow chart of the steps of a method for detecting the wall strength of a rubber water pipe provided by an embodiment of the present invention, the method comprising the following steps:
[0044] Step S001, collecting hyperspectral data on the wall of the rubber water pipe.
[0045] In order to obtain the strength information of the rubber water pipe wall, in this embodiment, a Hyperion 3000 hyperspectrometer is arranged at the end of the rubber water pipe production line. The spectrometer is arranged just above the fixed production line, and the conveyor of the production line moves at a uniform speed. Thus, the hyperspectral spectrum can sample a water pipe at equal intervals. In this embodiment, the sampling distance is set to 10 cm, and the hyperspectral data of the rubber water pipe obtained at the mth sampling position is recorded as X m .
[0046] The hyperspectral data of the rubber hose at a single sampling location can be represented by a pixel sequence, X m ={x1…,x i ,…x N}, where x i represents the i-th pixel sequence of the hyperspectral data, N represents the total number of pixels in the hyperspectral data, where x1= in It represents the reflection intensity information of the lth band in the grain spectral data, and L represents the total number of bands in the spectral analysis.
[0047] At this point, the hyperspectral data of the rubber water pipe wall is obtained.
[0048] Step S002, analyzing the hyperspectral data of the fiber area and the rubber area on the wall of the rubber water pipe to obtain the end member matrix and abundance matrix of the rubber water pipe.
[0049] The collected hyperspectral data of rubber water pipes are analyzed to obtain data on the strength of the rubber water pipe wall. The collected spectral variation is corrected to meet the algorithm's prior assumptions during NMF unmixing, improve the accuracy after unmixing, and display the information in the user interface module to provide data reference for technicians, which can be dynamically adjusted during the rubber water pipe production process.
[0050] Since various materials are added to rubber water pipes during the production process in order to increase the corrosion resistance, flexibility and wear resistance of the water pipe wall, a single pixel in the collected water pipe hyperspectral data contains the spectral information of multiple material components at the same time. The pixel with mixed spectral information of multiple materials is regarded as a mixed pixel. The purpose of spectral unmixing is to extract the spectral information of the basic material components contained in the mixed pixel, that is, end member extraction, and calculate the proportion of each component to estimate the component abundance. Among them, the end member refers to the material with pure and representative spectral characteristics, and the abundance represents the content information of each component.
[0051] The fiber or textile fabric material added to the rubber water pipe is distributed in a mesh pattern on the pipe wall, thereby dividing the main rubber area of the pipe wall into smaller mesh areas, such as Figure 2 As shown, in order to distinguish the fiber area and the mesh rubber area, the hyperspectral data of the rubber water pipe needs to be preprocessed.
[0052] This embodiment uses a band selection algorithm (GRBS) to perform true color synthesis on the water pipe wall hyperspectral data, and fits the multi-band hyperspectral data into a pseudo-color image, in which the position of the corresponding pixel of the hyperspectral data remains unchanged. The band selection algorithm is a well-known technology and will not be described in detail here.
[0053] The G-FRNet semantic segmentation neural network model is used to perform binary classification region extraction on the pseudo color image, and the output of the model is the fiber region and rubber region in the pseudo color image, as well as the boundary pixels of the fiber region and rubber region. Among them, the G-FRNet semantic segmentation neural network model is a model well known to those skilled in the art and will not be described in detail here.
[0054] Usually, the main component of the rubber area is real rubber material, which is a relatively simple material, while the corresponding fiber area is a mixture of rubber material and fiber. Due to the interference of environmental noise, the spectral information has spectral variation, so it is necessary to combine the spectral information for spectral variation correction.
[0055] In the spectral data, the spectral lines of pure components are relatively smooth, and a smoothness test is performed on the rubber area.
[0056] For the kth rubber region, the set of boundary pixels of the rubber region is taken as the boundary pixel set, and B k Represented. Combining the center and boundary pixel information of the rubber area, the rubber spectral focus extension smoothing coefficient is obtained:
[0057]
[0058]
[0059] In the formula, represents the rubber spectrum focal extension smoothing coefficient of the i-th boundary pixel in the k-th rubber area at the current sampling position, L represents the number of bands in the spectrum collected by the spectrum analyzer, It represents the spectral smoothness of the i-th boundary pixel in the l-th band in the boundary pixel set of the k-th rubber area at the current sampling position. Indicates the spectral smoothness of the central pixel of the k-th rubber area in the l-th band at the current sampling position, and They represent the reflection intensity of the i-th boundary pixel in the boundary pixel set of the k-th rubber area at the current sampling position in the l-th and l+1-th bands respectively, and Δl represents the wave width between two adjacent bands.
[0060] Since the boundary pixels of the rubber area are closest to the fiber area, the boundary pixels are most likely to be affected by the fiber material to produce mixed pixels. Among them, mixed pixels are pixels that contain more spectral information of basic components. When the spectral information of pixel mixing is less, the spectral line of the boundary pixel is smoother and there will be no large spectral line deviation. Therefore, the difference in reflection intensity between two adjacent bands is small, thus obtaining the smoothness of the band spectral line. The value of is small. In addition, the central pixel of the rubber area reflects a relatively pure rubber component and is unlikely to be affected by the fiber component. The smoothness of the spectrum lines in each band is relatively close between the two, thus the focal extension smoothness coefficient of the rubber spectrum is obtained. On the contrary, when the boundary pixels are mixed more seriously, the spectral information of the boundary pixels contains rubber and fiber material components, so the spectrum of the boundary pixels is quite different from that of the central pixels, and the rubber spectrum focal extension smoothing coefficient is obtained. The value of is larger.
[0061] After traversing all the boundary pixels of the kth rubber area at the current sampling time, the rubber spectrum smoothing sequence S can be obtained. k It reflects the mixing of pixels at the border of the rubber area. In order to further measure the pixel mixing in the current area, the rubber spectral smoothing sequence S is combined. k Compared with the hyperspectral data of the central pixel, the aliasing degree of the rubber boundary pixel is obtained:
[0062]
[0063] In the formula, It represents the aliasing degree of the rubber boundary pixel in the kth rubber area of the mth sampling position of the rubber water pipe. Indicates the number of boundary pixels in the kth rubber area at the current sampling position, represents the rubber spectral focus extension smoothing coefficient of the i-th boundary pixel in the k-th rubber area at the current sampling position, represents the smoothed sequence s of the rubber spectrum of all boundary pixels in the k-th rubber region at the current sampling position k The mean of represents the pixel sequence of the i-th boundary pixel in the k-th rubber area at the current sampling position, represents the center pixel sequence of the kth rubber area in the mth sampling position of the rubber water pipe, and ρ(*) represents the calculation of the Pearson correlation coefficient of the two sequences. The Pearson correlation coefficient is a technology well known to those skilled in the art and will not be described in detail here.
[0064] If the boundary pixels of the kth rubber area at the current sampling position are lightly mixed, the rubber spectrum smoothing sequence S is obtained. k The value of is small, and the rubber spectral focal extension smoothing coefficient s corresponding to each boundary pixel swings slightly around the sequence mean, so In addition, when the pixel mixing is light, the similarity between the boundary pixel sequence and the central pixel sequence of the rubber area is obtained. The larger the value, the more aliasing of rubber boundary pixels will be. On the contrary, when the pixel mixing is serious, the mixing degree of each pixel is different, so the difference with the mean is large. In addition, the similarity between the boundary pixel sequence and the central pixel sequence is low, which eventually leads to The value of increases.
[0065] Pixel aliasing through rubber edge The mixing state of the boundary pixels of the rubber region can be measured. In addition, since the components contained in the fiber region are more complex, it is necessary to measure the degree of variation of the fiber components in the fiber region. The rubber region is divided into many regions by the fiber region, and the fiber regions are connected to each other.
[0066] For each rubber region, the Harris corner point detection algorithm is used to obtain the corner points of each rubber region. For each corner point, the two closest corner points are connected to obtain the center point of the closed area formed by the connecting lines between the corner points, which is used as the fiber region intersection point. The four fiber region intersection points closest to each rubber region are used as the adjacent fiber region intersection points of each rubber region, such as Figure 3 shown.
[0067] The mean of all pixel sequences in each rubber region is taken as the mean pixel sequence of each rubber region. Rubber components are stripped for fiber intersection pixels, and then the fiber intersection points are tested for purity to obtain the fiber spectrum purity coefficient:
[0068]
[0069]
[0070] In the formula, It represents the fiber spectral purity coefficient of the kth rubber area in the highlight data sampled at the mth sampling position of the rubber water pipe. represents the number of permutations of 4 intersections, and They represent the i-th and j-th pixel sequence vectors of the k-th rubber area in the m-th sampling position of the rubber water pipe, respectively. cos(*) represents the calculation of the cosine similarity of two vectors. It represents the reflection intensity value of the pixel sequence of the intersection point of the adjacent fiber area of the kth rubber area in the mth sampling position of the rubber water pipe after the rubber component is stripped in the lth band. represents the reflection intensity of the lth band in the mean pixel sequence of the kth rubber area in the mth sampling position of the rubber water pipe, and L represents the number of bands in the spectrum collected by the spectrum analyzer. The calculation method of cosine similarity is a well-known technology and will not be described here.
[0071] By stripping the rubber from the pixel sequence at the intersection, it can only reflect the fiber characteristics. When the fiber is stable in production, theoretically, after stripping the rubber component at the fiber intersection, the hyperspectral data of the fiber component should be consistent. Therefore, the cosine similarity between the rubber stripping pixel sequence vectors of any two intersections is high, which ultimately makes the fiber spectral line purity coefficient On the contrary, when the fiber component undergoes spectral variation during the production process, the rubber peeling pixel sequence vectors at each intersection are quite different, and the final result is The value of decreases.
[0072] For each rubber region, the center point of each rubber region is obtained, and the rubber regions corresponding to the eight center points closest to the center point of each rubber region are taken as the neighborhood rubber regions of each rubber region.
[0073] In this way, the spectral variability of the kth region in the hyperspectral data of the current sampling position can be obtained. Based on this, the spectral variability evaluation is performed in combination with the adjacent rubber regions of the kth rubber region, and finally the spectral variability of the rubber fiber at each sampling position is obtained:
[0074]
[0075]
[0076]
[0077] In the formula, represents the spectral variation of the rubber fiber at the mth sampling position of the rubber water pipe, represents the number of rubber regions in the water pipe hyperspectral data at the mth sampling position, δ k represents the spectral variability evaluation coefficient of the kth rubber area at the current sampling position, represents the number of rubber regions in the neighborhood of the kth rubber region at the current sampling position, o k represents the variability of the kth rubber region, o j represents the variability of the jth neighboring rubber region of the kth rubber region, P(o j ) represents the probability of occurrence of the variation of the jth neighborhood rubber region in all neighborhood rubber regions, It represents the aliasing degree of the rubber boundary pixel in the kth rubber area of the mth sampling position of the rubber water pipe. It represents the fiber spectrum purity coefficient of the kth rubber area in the mth sampling position of the rubber water pipe, Indicates rounding down.
[0078] This can be used to obtain the spectral variation of the rubber fiber at the current sampling position. It reflects the variation degree of the pipe wall hyperspectral data caused by the environmental factors at the current sampling position. When the variation at the current position is serious, the aliasing degree of the rubber boundary pixel is obtained. The value is large, and the fiber spectral purity coefficient The value of is small, resulting in the variation o k The value of is large, and makes the binary group of the neighborhood and the center more chaotic, and the spectral variability evaluation coefficient δ is obtained. k The value of is large, which eventually makes On the contrary, if the pixel at the current position has a lighter aliasing or smaller variation, the value of δ k The value of is smaller.
[0079] At this point, the spectral variation of the rubber fiber at each sampling position is obtained, such as Figure 4 shown.
[0080] The spectral variation of the rubber fiber obtained at each sampling position of the water pipe wall is obtained, and then the high-spectral data of the sampling positions corresponding to the top 10% of the spectral variation of the rubber fiber are selected for spectral unmixing using the sampling NFM algorithm, and finally the end member matrix E and abundance matrix T of the current rubber water pipe are obtained. The sampling NFM algorithm is a well-known technology and will not be described in detail here.
[0081] The strength of the rubber water pipe wall is determined by its various material components and component contents. Usually, in the rubber water pipe production standard database, the materials and component contents meet the pipe wall strength standards. However, some unscrupulous merchants will cut corners in production. Therefore, it is necessary to target the actual spectral data of the rubber water pipe produced on the real-time detection assembly line, and thus obtain the data of each material, namely the end member matrix E, and the content data of each material, namely the abundance matrix T, through spectral unmixing.
[0082] At this point, the end member matrix and abundance matrix of the rubber water pipe to be tested are obtained.
[0083] Step S003, comparing the end member matrix and abundance matrix of the rubber water pipe to be tested with the end member matrix and abundance matrix of the hyperspectral data of a standard rubber water pipe in a database, to complete the strength test of the rubber water pipe wall.
[0084] In step S002, the hyperspectral data is obtained to obtain the end member matrix E and abundance matrix T of the current water pipe, and the end member matrix E and abundance matrix T of the components of the standard rubber water pipe are compared. D and the abundance matrix T D The ratio of the modulus of the row vector in the abundance matrix to the L2 norm of the abundance matrix represents the component content of the material corresponding to the row vector. Among them, the L2 norm is a technology well known to those skilled in the art and will not be described in detail here; the implementer can select the standard rubber water pipe manually, and this embodiment will not be described in detail.
[0085] For the abundance matrix T and abundance matrix T D , calculate the ratio of the modulus of each row vector in the two matrices to the L2 norm of its abundance matrix, and obtain the actual component content of each material in the abundance matrix T and the abundance matrix T D The standard component content of each material. The end member matrix E of the rubber water pipe is compared with the standard end member matrix E D Calculate the structural similarity coefficient SSI to obtain the component difference coefficient ξ1; calculate the cosine similarity between the actual component content of each material and the standard component content of each material, and use the mean of all cosine similarities as the ratio component difference coefficient ξ2, and finally obtain the rubber water pipe wall strength detection coefficient Φ=ξ1+ξ2. Set the wall strength threshold, and take the empirical value as 1.2. If the rubber water pipe wall strength detection coefficient Φ≤1.2, it indicates that the rubber water pipe has quality defects in strength. If the rubber water pipe wall strength detection coefficient Φ>1.2, it indicates that the rubber water pipe meets the standard in strength.
[0086] Based on the same inventive concept as the above method, an embodiment of the present invention also provides a rubber water pipe wall strength detection device, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor implements the steps of any one of the above-mentioned rubber water pipe wall strength detection methods when executing the computer program.
[0087] It should be noted that the sequence of the above embodiments of the present invention is only for description and does not represent the advantages and disadvantages of the embodiments. The above is a description of a specific embodiment of this specification. In addition, the processes depicted in the accompanying drawings do not necessarily require the specific order or continuous order shown to achieve the desired results. In some embodiments, multitasking and parallel processing are also possible or may be advantageous.
[0088] The various embodiments in this specification are described in a progressive manner, and the same or similar parts between the various embodiments can be referenced to each other, and each embodiment focuses on the differences from other embodiments.
[0089] The above description is only a preferred embodiment of the present invention and is not intended to limit the present invention. Any modifications, equivalent substitutions, improvements, etc. made within the principles of the present invention should be included in the protection scope of the present invention.
Claims
1. A method for detecting the wall strength of a rubber water pipe, characterized in that: The method comprises the following steps: Collecting hyperspectral data consisting of pixel sequences of all pixels at each sampling position on the wall of the rubber water pipe; Use band selection algorithm to synthesize true color of hyperspectral data to obtain pseudo color image, use semantic segmentation neural network to segment pseudo color image to obtain fiber area, rubber area and boundary pixel, obtain spectral line smoothness of each band of boundary pixel of rubber area in sampling position according to reflection intensity in hyperspectral data; obtain rubber spectral focal extension smoothness coefficient of each boundary pixel in each rubber area in sampling position according to spectral line smoothness; obtain rubber boundary pixel aliasing degree of each rubber area in each sampling position according to rubber spectral focal extension smoothness coefficient and hyperspectral data; use Harris corner detection to obtain intersection of adjacent fiber area of each rubber area, obtain pixel sequence vector of each rubber area according to reflection intensity in hyperspectral data of intersection of adjacent fiber area; obtain fiber spectral line purity coefficient of each rubber area according to pixel sequence vector; obtain variability of each rubber area according to aliasing degree of rubber boundary pixel and fiber spectral line purity coefficient, obtain spectral variation of rubber fiber at each sampling position according to variability; obtain end member matrix and abundance matrix of rubber water pipe according to spectral variation of rubber fiber; The structural similarity coefficient between the end member matrix of the rubber water pipe and the standard end member matrix is used as the component difference coefficient. The actual component content of each material in the abundance matrix and the standard component content of each material are obtained according to the L2 norm, and the ratio component difference coefficient is constructed. The sum of the component difference coefficient and the ratio component difference coefficient is used as the rubber water pipe wall strength detection coefficient. If the rubber water pipe wall strength detection coefficient is less than or equal to the preset wall strength threshold, the rubber water pipe strength has quality defects, otherwise, the rubber water pipe strength meets the standard. The step of obtaining the variation of each rubber region and obtaining the variation of the rubber fiber spectrum at each sampling position according to the variation comprises: For each rubber area at each sampling position, the ratio of the aliasing degree of the rubber boundary pixel to the purity coefficient of the fiber spectrum line is calculated, and the calculation result of an exponential function with a natural constant as the base and the ratio as the exponent is calculated, and the rounded-down value of the calculation result is used as the variability of each rubber area; Obtain the center point of each rubber region, take the rubber regions corresponding to the eight center points closest to the center point of each rubber region as the neighborhood rubber regions of each rubber region, calculate the probability of the variation of each neighborhood rubber region in the variation of all neighborhood rubber regions in the rubber region, and calculate the information entropy of the probability as the spectral variation evaluation coefficient of each rubber region; The average of the spectrum variability evaluation coefficients of all rubber regions at each sampling position is taken as the spectrum variability of the rubber fiber at each sampling position.
2. A rubber water pipe wall strength detection method as claimed in claim 1, characterized in that: The step of obtaining the spectral line smoothness of each band of the boundary pixel of the rubber area at the sampling position includes: For each boundary pixel of each rubber area at each sampling position, the difference between the reflection intensity of each band in the boundary pixel and the reflection intensity of its subsequent adjacent band is calculated, the bandwidth between each band and its subsequent adjacent band is counted, and the absolute value of the ratio of the difference to the bandwidth is taken as the spectral line smoothness of each boundary pixel in each band.
3. A rubber water pipe wall strength detection method as claimed in claim 1, characterized in that: The step of obtaining the rubber spectral focus extension smoothing coefficient of each boundary pixel in each rubber region in the sampling position includes: For each rubber area, the absolute value of the difference between the spectral line smoothness of the th band of each boundary pixel in the rubber area and the spectral line smoothness of the th band of the central pixel in the rubber area is calculated, and the calculation result of the exponential function with the natural constant as the base and the absolute value of the difference as the exponent is calculated, and the sum of all the calculation results of each boundary pixel in the rubber area is used as the rubber spectral focal extension smoothing coefficient of each boundary pixel.
4. A rubber water pipe wall strength detection method as claimed in claim 1, characterized in that: The step of obtaining the aliasing degree of rubber boundary pixels in each rubber area at each sampling position includes: For each rubber area at the sampling position, the mean value of the rubber spectral focal extension smoothing coefficients of all boundary pixels is calculated, and the absolute value of the difference between each boundary pixel and the mean value is calculated; Calculate the Pearson correlation coefficient between the pixel sequence of each boundary pixel in the rubber area and the pixel sequence of the central pixel in the rubber area, and calculate the result of an exponential function with the number 2 as the base and the correlation coefficient as the exponent; The ratio of the absolute value of the difference to the calculation result is calculated, and the average of all the ratios in the rubber area is used as the aliasing degree of the rubber boundary pixel of each rubber area.
5. A rubber water pipe wall strength detection method as claimed in claim 1, characterized in that: The step of obtaining the intersection points of adjacent fiber regions of each rubber region and obtaining the pixel sequence vector of each rubber region according to the reflection intensity in the hyperspectral data of the intersection points of adjacent fiber regions includes: For each rubber region, the Harris corner point detection algorithm is used to obtain the corner points of each rubber region. For each corner point, the two closest corner points are connected, and the center point of the closed area formed by the connecting lines between the corner points is used as the fiber region intersection point, and the four fiber region intersection points closest to each rubber region are used as the adjacent fiber region intersection points of each rubber region; For each rubber region, the mean of all pixel sequences in the rubber region is taken as the mean pixel sequence of each rubber region, and the sequence obtained by subtracting the pixel sequence of the intersection of each adjacent fiber region from the mean pixel sequence is taken as the pixel sequence vector of each rubber region.
6. A rubber water pipe wall strength detection method as claimed in claim 1, characterized in that: The step of obtaining the fiber spectrum purity coefficient of each rubber region includes: For each rubber region at each sampling position, the cosine similarity between the pixel sequences of the rubber region is calculated, and the mean value of all the cosine similarities of the rubber region is taken as the fiber spectral purity coefficient of each rubber region.
7. A method for detecting the wall strength of a rubber water pipe as claimed in claim 1, characterized in that: The step of obtaining the end member matrix and abundance matrix of the rubber water pipe comprises: For the spectral variability of rubber fibers on the rubber water pipe wall at each sampling position, the hyperspectral data of the sampling positions corresponding to the top 10% of the spectral variability of rubber fibers were selected for spectral unmixing using the NFM algorithm to obtain the end member matrix and abundance matrix of the rubber water pipe wall.
8. A method for detecting the wall strength of a rubber water pipe as claimed in claim 1, characterized in that: The actual component content of each material and the standard component content of each material in the abundance matrix are obtained according to the L2 norm, and the ratio component difference coefficient is constructed, including: For the abundance matrix of the rubber water pipe, the ratio of each row vector in the abundance matrix to the L2 norm of the abundance matrix is calculated as the actual component content of each material corresponding to each row vector; For the standard abundance matrix, the method of using the same actual component content of the material is used to obtain the standard component content of each material corresponding to each row vector in the annotated abundance matrix; The cosine similarity between the actual content of each material and the standard content of each material was calculated, and the mean of all cosine similarities was taken as the coefficient of difference in the proportion of ingredients.
9. A rubber water pipe wall strength detection device, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 8 are implemented.
