Lead-tin bar quality detection method, device, equipment and storage medium

Through multi-dimensional image extraction, X-ray fluorescence spectroscopy analysis, nanoindentation analysis and X-ray diffraction analysis, combined with advanced algorithms, data integration and subjectivity problems of existing lead tin bar quality detection methods are solved, and lead tin bars are realized comprehensive and accurate quality assessment supports efficient quality control in modern manufacturing.

CN118518675BActive Publication Date: 2024-11-15深圳市朝日电子材料有限公司
View PDF 5 Cites 0 Cited by

Patent Information

Application Number
CN202410856740.9
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-06-28
Publication Date
2024-11-15
Estimated Expiration
2044-06-28

AI Technical Summary

Technical Problem

The existing lead-tin bar quality detection methods lack effective data integration and comprehensive analysis, and are subjective and non-repeatable. It is difficult to capture the microstructure changes and subtle differences in performance of materials. It cannot provide real-time and comprehensive quality assessment and cannot meet modern manufacturing. Industry needs for efficient and precise quality control.

Method used

Using multi-dimensional image extraction and defect detection, X-ray fluorescence spectroscopy, nanoindentation analysis and X-ray diffraction analysis, combined with a variety of advanced algorithms and models to achieve surface defects, element composition, mechanical properties and microstructure of lead tin bars comprehensive assessment and generate comprehensive quality inspection reports.

Benefits of technology

It significantly improves the accuracy and consistency of lead tin bar quality inspection, provides reliable evaluation of material composition uniformity and mechanical properties, realizes intelligent processing from original data to final quality assessment, and generates intuitive and detailed quality inspection. Reports support quality control decisions and improve detection efficiency and repeatability.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN118518675B_ABST
    Figure CN118518675B_ABST
Patent Text Reader

Abstract

The present application relates to the field of image processing technology, and discloses a lead-tin bar quality detection method, device, equipment and storage medium. The method comprises: extracting multidimensional images of sample lead-tin bars to obtain surface image data, performing defect detection on the surface image data to obtain image defect data; performing X-ray fluorescence spectrum analysis and multi-point scanning processing on the sample lead-tin bars to obtain element composition data; performing nanoindentation analysis on the sample lead-tin bars to obtain mechanical property data; performing diffraction analysis and in-situ heating analysis on the sample lead-tin bars to obtain microstructure data; performing quality analysis on the sample lead-tin bars according to the image defect data and mechanical property data to obtain appearance quality data; performing structural quality analysis on the sample lead-tin bars according to the element composition data and microstructure data to obtain structural quality data, and generating a quality inspection report according to the appearance quality data and structural quality data. The present application improves the accuracy of lead-tin bar quality detection.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing, and in particular to a lead-tin bar quality detection method, device, equipment and storage medium. Background Art

[0002] In the prior art, the quality inspection of lead-tin bars usually involves multiple aspects such as surface defect inspection, component analysis, mechanical property testing and microstructure analysis. Traditional inspection methods often use a single or simple combination of inspection methods, such as visual inspection, X-ray fluorescence analysis, hardness testing and metallographic analysis. These methods can evaluate the quality of lead-tin bars to a certain extent.

[0003] However, these traditional methods have some limitations. They are often independent of each other and lack effective data integration and comprehensive analysis. Secondly, some detection methods (such as visual inspection) are subjective and it is difficult to ensure the consistency and repeatability of the results. Furthermore, traditional methods are difficult to capture the microstructural changes and subtle differences in performance of materials, and may miss some potential quality problems. In addition, these methods usually cannot provide real-time and comprehensive quality assessments, and it is difficult to meet the needs of modern manufacturing for efficient and accurate quality control. Summary of the invention

[0004] The present application provides a lead-tin bar quality detection method, device, equipment and storage medium, which are used to improve the accuracy of lead-tin bar quality detection.

[0005] In a first aspect, the present application provides a lead-tin bar quality detection method, the lead-tin bar quality detection method comprising: performing multi-dimensional image extraction on a collected sample lead-tin bar to obtain surface image data, and performing defect detection on the surface image data to obtain image defect data;

[0006] Performing X-ray fluorescence spectroscopy analysis and multi-point scanning processing on the sample lead-tin bar to obtain element composition data;

[0007] Performing nanoindentation analysis on the lead-tin bar of the sample to obtain mechanical property data;

[0008] Performing diffraction analysis and in-situ heating analysis on the lead-tin bar sample to obtain microstructure data;

[0009] Performing quality analysis on the sample lead-tin bar according to the image defect data and the mechanical property data to obtain appearance quality data;

[0010] A structural quality analysis is performed on the sample lead-tin bar according to the elemental composition data and the microstructure data to obtain structural quality data, and a quality inspection report is generated according to the appearance quality data and the structural quality data.

[0011] In combination with the first aspect, in a first implementation of the first aspect of the present application, performing multi-dimensional image extraction on the collected sample lead-tin bar to obtain surface image data, and performing defect detection on the surface image data to obtain image defect data, including:

[0012] Performing multi-angle rotation scanning on the sample lead-tin bar to obtain surface image data;

[0013] Preprocessing the surface image data to obtain a standardized image, and performing multi-scale pyramid decomposition processing on the standardized image to obtain a feature image set with different resolutions;

[0014] Perform edge detection and contour extraction processing on the standardized image according to the characteristic image set to obtain surface contour data of the lead-tin bar;

[0015] Performing morphological operation processing on the surface profile data of the lead-tin bar to obtain a potential defect area;

[0016] Performing region growing segmentation processing on the standardized image according to the potential defect region to obtain an accurate defect boundary;

[0017] Performing geometric feature and texture feature extraction processing on the precise defect boundary to obtain a defect feature vector;

[0018] Performing feature classification on the defects according to the defect feature vector to obtain a defect type identification result;

[0019] The defect type identification result is subjected to defect traversal processing to obtain the image defect data, wherein the image defect data includes defect distribution data and defect degree.

[0020] In combination with the first aspect, in a second implementation of the first aspect of the present application, the sample lead-tin bar is subjected to X-ray fluorescence spectroscopy analysis and multi-point scanning processing to obtain elemental composition data, including:

[0021] Performing grid division processing on the surface of the lead-tin bar of the sample to obtain a plurality of scanning points;

[0022] Perform X-ray irradiation processing on each scanning point to obtain original fluorescence spectrum data;

[0023] Performing background noise elimination and peak extraction processing on the original fluorescence spectrum data to obtain a characteristic peak data set;

[0024] Performing energy calibration processing on the spectral lines according to the characteristic peak data set to obtain calibrated energy spectrum data;

[0025] Performing qualitative analysis on the calibration energy spectrum data to obtain element types, and performing peak area integration processing on the energy spectrum data according to the element types to obtain a relative intensity value of each element;

[0026] The relative intensity value of each element is corrected for matrix effect to obtain the corrected element content data;

[0027] Performing spatial interpolation processing on the corrected element content data to obtain an element distribution map;

[0028] Performing distribution analysis on the element distribution diagram to obtain an element uniformity index and a segregation degree;

[0029] The element composition data is obtained by performing an element composition analysis on the sample lead-tin bar according to the element uniformity index and the segregation degree.

[0030] In combination with the first aspect, in a third implementation of the first aspect of the present application, the nanoindentation analysis is performed on the sample lead-tin bar to obtain mechanical property data, including:

[0031] Polishing the surface of the lead-tin bar of the sample to obtain a flat test surface;

[0032] Performing multi-point grid division processing on the test surface to obtain indentation position data;

[0033] According to the indentation position data, the sample is subjected to multiple nanoindentation loading-unloading cycle processing to obtain original force-displacement curve data;

[0034] Performing data smoothing on the original force-displacement curve data to obtain an optimized force-displacement curve;

[0035] Performing power function fitting processing on the loading section according to the optimized force-displacement curve to obtain a loading curve equation;

[0036] Performing derivative calculation processing on the loading curve equation to obtain a contact stiffness function;

[0037] Performing hardness analysis on the unloading section according to the contact stiffness function to obtain initial values ​​of hardness and elastic modulus;

[0038] Performing indenter shape and thermal drift correction processing on the initial values ​​of the hardness and the elastic modulus to obtain corrected hardness and elastic modulus data;

[0039] Performing mechanical distribution analysis according to the corrected hardness and the elastic modulus data to obtain a mechanical property distribution diagram and a coefficient of variation;

[0040] The mechanical property distribution diagram and the coefficient of variation are subjected to performance evaluation to obtain the mechanical property data.

[0041] In combination with the first aspect, in a fourth implementation of the first aspect of the present application, the diffraction analysis and in-situ heating analysis of the sample lead-tin bar are performed to obtain microstructure data, including:

[0042] Performing X-ray diffraction scanning on the sample lead-tin bar to obtain an original diffraction pattern;

[0043] Performing background subtraction and peak position identification processing on the original diffraction spectrum to obtain optimized diffraction peak data;

[0044] Performing phase analysis according to the optimized diffraction peak data to obtain crystal phase composition data;

[0045] Performing full spectrum fitting processing on the crystal phase composition data to obtain lattice parameters and relative content data;

[0046] Performing grain size analysis on the sample lead-tin bar according to the lattice parameters and the relative content data to obtain an average grain size;

[0047] Performing a temperature-increasing X-ray diffraction process on the sample lead-tin bar through a preset temperature-controlled heating system to obtain a temperature-series diffraction pattern;

[0048] Performing peak position shift analysis on the temperature sequence diffraction pattern to obtain thermal expansion coefficient data;

[0049] Perform kinetic analysis based on the temperature sequence diffraction pattern to obtain phase transition temperature and activation energy;

[0050] The microstructure data of the lead-tin bar sample is obtained by performing a microstructure analysis on the crystal phase composition data, average grain size, thermal expansion coefficient data, phase change temperature and activation energy.

[0051] In combination with the first aspect, in a fifth implementation of the first aspect of the present application, performing quality analysis on the sample lead-tin bar according to the image defect data and the mechanical property data to obtain appearance quality data includes:

[0052] Performing defect type classification processing on the image defect data to obtain defect type distribution data;

[0053] Quantifying the defect degree of the defect type distribution data to obtain a defect severity index;

[0054] Performing standardization processing on the mechanical property data to obtain normalized mechanical property indicators;

[0055] According to the normalized mechanical property index, the sample lead-tin bar is graded to obtain a mechanical property grade score;

[0056] Performing weighted fusion processing on the defect severity index and the mechanical property grade score to obtain an initial comprehensive quality score;

[0057] Performing cluster analysis on the samples according to the initial comprehensive quality scores to obtain a quality grade classification threshold;

[0058] Performing fuzzy logic optimization processing on the quality grade division threshold to obtain an optimized quality grade boundary;

[0059] Performing quality grade determination processing on the sample according to the optimized quality grade limit to obtain the appearance quality grade;

[0060] Performing statistical analysis on the appearance quality grades to obtain batch quality distribution characteristics;

[0061] The appearance quality of the sample lead-tin bars is analyzed according to the batch quality distribution characteristics to obtain the appearance quality data.

[0062] In combination with the first aspect, in a sixth implementation of the first aspect of the present application, performing a structural quality analysis on the sample lead-tin bar according to the elemental composition data and the microstructure data to obtain structural quality data, and generating a quality inspection report according to the appearance quality data and the structural quality data, including:

[0063] Standardize the element composition data to obtain the normalized element content index;

[0064] Performing composition deviation calculation processing on the sample lead-tin bar according to the normalized element content index to obtain an element deviation index;

[0065] Analyze the grain size in the microstructure data to obtain the grain size distribution characteristics;

[0066] Performing a microscopic uniformity evaluation process on the sample lead-tin bar according to the grain size distribution characteristics to obtain a microstructure uniformity index;

[0067] Performing weighted fusion processing on the element deviation index and the microstructure uniformity index to obtain an initial structure quality score;

[0068] Perform fuzzy comprehensive evaluation on the sample according to the initial structural quality score to obtain the structural quality grade;

[0069] Performing correlation analysis on the structural quality grade and appearance quality data to obtain quality consistency data;

[0070] Comprehensively scoring the sample lead-tin bars according to the quality consistency data to obtain a final quality score, and classifying the final quality score to obtain a quality grade distribution report;

[0071] Data visualization processing is performed on the quality grade distribution report to obtain the quality inspection report.

[0072] In a second aspect, the present application provides a lead-tin bar quality detection device, the lead-tin bar quality detection device comprising:

[0073] An extraction module is used to perform multi-dimensional image extraction on the collected sample lead-tin bars to obtain surface image data, and perform defect detection on the surface image data to obtain image defect data;

[0074] A scanning module is used to perform X-ray fluorescence spectrum analysis and multi-point scanning processing on the sample lead-tin bar to obtain element composition data;

[0075] An indentation module is used to perform nanoindentation analysis on the lead-tin bar sample to obtain mechanical property data;

[0076] A heating module is used to perform diffraction analysis and in-situ heating analysis on the lead-tin bar sample to obtain microstructure data;

[0077] An analysis module, used for performing quality analysis on the sample lead-tin bar according to the image defect data and the mechanical property data to obtain appearance quality data;

[0078] A generation module is used to perform structural quality analysis on the sample lead-tin bar according to the element composition data and the microstructure data to obtain structural quality data, and to generate a quality inspection report according to the appearance quality data and the structural quality data.

[0079] In the technical solution provided by the present application, comprehensive and accurate identification of surface defects of lead-tin bars is achieved through multi-dimensional image extraction and defect detection technology, which overcomes the subjectivity and limitations of traditional visual inspection and significantly improves the accuracy and consistency of surface quality assessment; X-ray fluorescence spectroscopy analysis combined with multi-point scanning processing is used to accurately determine the elemental composition, and the element distribution map, uniformity index and degree of segregation are obtained through spatial interpolation and distribution analysis, which provides a reliable basis for in-depth evaluation of the uniformity of material composition; nanoindentation analysis technology is introduced, and micro-scale hardness and elastic modulus data, as well as spatial distribution characteristics of mechanical properties are obtained through high-precision force-displacement curve analysis and data processing, which greatly improves the accuracy and spatial resolution of mechanical property evaluation; combined with X-ray diffraction and in-situ heating analysis, not only conventional crystal phase composition and grain size information are obtained, but also dynamic microstructure parameters such as thermal expansion coefficient, phase transition temperature and activation energy are obtained through temperature series diffraction pattern analysis, which provides an important basis for predicting the performance stability of materials during use; in terms of data processing and quality assessment, this method A variety of advanced algorithms and models have been innovatively introduced, such as multi-scale pyramid decomposition, regional growth segmentation, fuzzy logic optimization, cluster analysis, etc., to realize the intelligent processing process from raw data to final quality assessment, greatly improving the efficiency and accuracy of data analysis; by combining image defect data with mechanical property data, an appearance quality assessment model has been established, which not only considers the severity of surface defects, but also incorporates the mechanical properties of materials into the assessment system, making the appearance quality assessment more comprehensive and reliable; in structural quality analysis, the element composition data and microstructure data are innovatively integrated and analyzed, and a more comprehensive structural quality assessment system is established by calculating the element deviation index and microstructure uniformity index, which can better reflect the quality of the internal structure of the material; through the comprehensive analysis and visualization of appearance quality data and structural quality data, an intuitive and detailed quality inspection report is generated, providing strong support for quality control decisions; the entire inspection process is highly automated and standardized, which significantly improves the inspection efficiency, reduces human errors, and ensures the repeatability and comparability of the inspection results. BRIEF DESCRIPTION OF THE DRAWINGS

[0080] In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the accompanying drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are some embodiments of the present invention. For ordinary technicians in this field, other accompanying drawings can be obtained based on these accompanying drawings without paying creative work.

[0081] Figure 1 This is a schematic diagram of an embodiment of a lead-tin bar quality detection method in an embodiment of the present application;

[0082] Figure 2 This is a schematic diagram of an embodiment of a lead-tin bar quality detection device in an embodiment of the present application. DETAILED DESCRIPTION

[0083] The embodiments of the present application provide a lead-tin bar quality detection method, device, equipment and storage medium. The terms "first", "second", "third", "fourth", etc. (if any) in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments described herein can be implemented in an order other than that illustrated or described herein. In addition, the terms "including" or "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.

[0084] For ease of understanding, the specific process of the embodiment of the present application is described below. Figure 1 , an embodiment of the lead-tin bar quality detection method in the embodiment of the present application includes:

[0085] Step S101, performing multi-dimensional image extraction on the collected sample lead-tin bars to obtain surface image data, and performing defect detection on the surface image data to obtain image defect data;

[0086] It is understandable that the execution subject of the present application may be a lead-tin bar quality detection device, or a terminal or a server, which is not limited here. The present application embodiment is described by taking a server as the execution subject as an example.

[0087] Specifically, the sample lead-tin bar is subjected to multi-angle rotation scanning to capture the surface details of the lead-tin bar from different angles and obtain surface image information. The surface image data is preprocessed, including denoising, contrast enhancement and other operations, to obtain a standardized image, and eliminate the noise and uneven illumination effects in the original image. The standardized image is subjected to multi-scale pyramid decomposition processing to decompose the image into feature image sets of different resolutions, capture image features of different sizes and types, and increase the accuracy of defect detection. According to the feature image set, the standardized image is subjected to edge detection and contour extraction processing to obtain the surface contour data of the lead-tin bar. Edge detection can highlight the significant boundaries in the image, while contour extraction can accurately depict the shape of the lead-tin bar. The surface contour data of the lead-tin bar is subjected to morphological operation processing, and the morphological operation includes expansion, corrosion, opening and closing operations and other operations, which can effectively remove noise and small area interference in the image and obtain potential defect areas. According to the potential defect area, the standardized image is subjected to region growing segmentation processing to obtain an accurate defect boundary. Region growing segmentation is a region-based image segmentation method that can be gradually expanded according to the seed point until a preset similarity threshold is reached, thereby accurately dividing the defect area. The geometric features and texture features of the precise defect boundary are extracted and processed to obtain the defect feature vector. The geometric features include information such as the shape, size, and position of the defect, while the texture features include information such as the surface roughness and texture direction. These features are combined to form a complete defect feature vector. According to the defect feature vector, the defects are feature classified to obtain the defect type identification result. Feature classification can use machine learning or deep learning methods to accurately identify and classify different types of defects through training models. The defect type identification result is defect traversal processed to evaluate the surface defects of the lead-tin strip as a whole and obtain image defect data, where the image defect data includes defect distribution data and defect degree. The defect distribution data describes the spatial distribution of defects on the surface of the lead-tin strip, while the defect degree quantifies the severity of the defect.

[0088] Step S102, performing X-ray fluorescence spectrum analysis and multi-point scanning processing on the sample lead-tin bar to obtain element composition data;

[0089] Specifically, the surface of the lead-tin bar of the sample is meshed to obtain multiple scanning points. Each scanning point is subjected to X-ray irradiation to obtain raw fluorescence spectrum data. In this process, X-rays excite the elements in the sample to emit characteristic fluorescence, and the element information of the sample is obtained by detecting these fluorescence. The raw fluorescence spectrum data is subjected to background noise elimination and peak extraction to obtain a characteristic peak data set. By removing the background noise, the significant peaks corresponding to the sample elements in the spectrum are extracted, making the analysis more accurate and reliable. According to the characteristic peak data set, the spectrum line is energy calibrated to obtain calibrated energy spectrum data. The calibrated energy spectrum data is qualitatively analyzed to determine the type of elements contained in the sample. According to the type of element, the energy spectrum data is subjected to peak area integration to obtain the relative intensity value of each element. The peak area integration process can quantify the contribution of each element in the spectrum, thereby providing information on the relative content. The relative intensity value of each element is subjected to matrix effect correction to obtain corrected element content data. Matrix effect correction can compensate for the measurement error caused by the mutual influence of different elements in the sample and provide more accurate element content information. The corrected element content data is spatially interpolated to obtain an element distribution map. Spatial interpolation can generate an element distribution map of the entire sample surface by interpolating the data at different scanning points. The distribution map shows the spatial distribution of each element on the sample surface. The element distribution map is analyzed to obtain the element uniformity index and segregation degree. The element uniformity index can quantify the uniformity of the distribution of elements on the sample surface, while the segregation degree reflects the enrichment or sparseness of elements in certain areas. According to the element uniformity index and the segregation degree, the element composition of the sample lead-tin strip is analyzed to obtain the element composition data, including the content of each element and its distribution characteristics on the sample surface.

[0090] Step S103, performing nanoindentation analysis on the sample lead-tin bar to obtain mechanical property data;

[0091] Specifically, the surface of the lead-tin bar of the sample is polished to obtain a flat test surface. The purpose of the polishing process is to eliminate surface roughness and irregularities so that subsequent indentation tests can be performed on a uniform substrate, thereby improving the accuracy and repeatability of the test. The test surface is subjected to multi-point meshing to determine the position data of the indentation. According to the indentation position data, the sample is subjected to multiple nanoindentation loading-unloading cycles to obtain the original force-displacement curve data. At each indentation position, the deformation behavior of the material during the application and release of force is recorded through the loading-unloading cycle process to form the original force-displacement curve. The original force-displacement curve data is subjected to data smoothing to obtain an optimized force-displacement curve. Data smoothing can eliminate noise in the curve, making the curve smoother and more continuous. According to the optimized force-displacement curve, the loading section is subjected to power function fitting to obtain the loading curve equation. The power function fitting process can accurately describe the relationship between force and displacement during the loading process to form a mathematical model. The loading curve equation is subjected to derivative calculation to obtain the contact stiffness function. The contact stiffness function is the differential of the relationship between the indentation depth and the contact force, which can reflect the stiffness characteristics of the material during the contact process. According to the contact stiffness function, the hardness analysis is performed on the unloading section to obtain the initial values ​​of the hardness and elastic modulus. The hardness analysis mainly calculates the hardness and elastic modulus of the material through the contact stiffness and the shape of the unloading curve. The initial values ​​of the hardness and elastic modulus are corrected for the shape of the indenter and thermal drift to obtain the corrected hardness and elastic modulus data. The indenter shape correction can eliminate the error caused by the irregular shape of the indenter, while the thermal drift correction can compensate for the data drift caused by the temperature change during the test. According to the corrected hardness and elastic modulus data, the mechanical distribution analysis is performed to obtain the mechanical property distribution diagram and the coefficient of variation. The mechanical property distribution diagram shows the distribution of hardness and elastic modulus at different positions on the sample surface, while the coefficient of variation quantifies the uniformity and stability of these mechanical properties. The mechanical property distribution diagram and the coefficient of variation are used for performance evaluation to obtain the mechanical property data. The performance evaluation can comprehensively analyze the mechanical property characteristics of the sample and judge its quality and reliability.

[0092] Step S104, performing diffraction analysis and in-situ heating analysis on the sample lead-tin bar to obtain microstructure data;

[0093] Specifically, the sample lead-tin bar is scanned by X-ray diffraction to obtain the original diffraction pattern. Through X-ray diffraction scanning, the crystal structure information inside the sample is captured, and this information is presented in the form of a diffraction pattern. The original diffraction pattern is subjected to background subtraction and peak position identification processing to obtain optimized diffraction peak data. Background subtraction can eliminate the background signal caused by stray radiation and instrument noise in the spectrum, thereby highlighting the position of the diffraction peak, while the peak position identification processing can accurately locate the position of the diffraction peak. Phase analysis is performed based on the optimized diffraction peak data to obtain crystal phase composition data. Phase analysis determines the type of crystal phase present in the sample by comparing the position and intensity of the diffraction peak with the known standard diffraction pattern. The crystal phase composition data is subjected to full spectrum fitting processing to obtain lattice parameters and relative content data. Full spectrum fitting processing is an analysis method that can accurately calculate the lattice parameters and the relative content of each crystal phase by fitting the entire diffraction pattern. According to the lattice parameters and relative content data, the sample lead-tin bar is subjected to grain size analysis to obtain the average grain size. Grain size analysis uses the width information of the diffraction peak to calculate the average grain size of the sample through the Scherrer formula or other related methods, reflecting the size and distribution of the grains inside the sample. Through the preset temperature control heating system, the sample lead-tin bar is subjected to temperature X-ray diffraction treatment to obtain a temperature series diffraction pattern. The temperature control heating system can accurately control the heating rate of the sample, and perform X-ray diffraction scanning at different temperatures to record the diffraction pattern that changes with temperature. The temperature series diffraction pattern is subjected to peak displacement analysis to obtain thermal expansion coefficient data. Peak displacement analysis can calculate the thermal expansion coefficient of the sample by observing the position change of the diffraction peak at different temperatures, reflecting the expansion behavior of the material during heat treatment. Kinetic analysis is performed based on the temperature series diffraction pattern to obtain the phase transition temperature and activation energy. Kinetic analysis can determine the phase transition temperature of the material by observing the change of the diffraction peak intensity with temperature, and obtain the activation energy of the phase transition process by calculating the relationship between the reaction rate constant and temperature. These data can reveal the phase transition behavior and kinetic characteristics of the sample at different temperatures. The crystal phase composition data, average grain size, thermal expansion coefficient data, phase transition temperature and activation energy were comprehensively analyzed to obtain the microstructure data of the sample lead-tin bar.

[0094] Step S105, performing quality analysis on the sample lead-tin bar according to the image defect data and the mechanical property data to obtain appearance quality data;

[0095] Specifically, the image defect data is processed by defect type classification to obtain defect type distribution data. The defect type distribution data is processed by defect degree quantification to obtain the defect severity index. The quantification process calculates factors such as the area, quantity and position of different types of defects to form a comprehensive defect severity index to quantify the degree of influence of each defect on the quality of the lead-tin bar. The mechanical property data is standardized to obtain a normalized mechanical property index. The standardization process is to eliminate the differences between different measurement scales and units so that the mechanical property data can be compared and analyzed under a unified standard. According to the normalized mechanical property index, the sample lead-tin bar is subjected to performance grade classification to obtain a mechanical property grade score. The performance grade classification process divides the mechanical property data into different grades through preset standards and algorithms, and gives corresponding scores to quantify the mechanical property level of the lead-tin bar. The defect severity index and the mechanical property grade score are weighted and fused to obtain the initial score of the comprehensive quality. The weighted fusion process combines the defect severity index and the mechanical property grade score by setting different weights to form a preliminary quality assessment score. According to the initial score of the comprehensive quality, the samples are clustered and analyzed to obtain the threshold value of the quality grade division. The cluster analysis can classify the samples into different quality grades according to the initial score of the comprehensive quality, and determine the score threshold of each grade. The quality grade division threshold is optimized by fuzzy logic to obtain the optimized quality grade boundary. The fuzzy logic optimization can take into account the fuzzy transition between scores, making the quality grade division more reasonable and continuous. According to the optimized quality grade boundary, the samples are subjected to quality grade determination to obtain the appearance quality grade. The appearance quality grade is statistically analyzed to obtain the batch quality distribution characteristics. Statistical analysis can reveal the quality grade distribution of all samples in a batch, so as to understand the quality level of the entire production batch. According to the batch quality distribution characteristics, the appearance quality analysis of the sample lead-tin bars is performed to obtain the appearance quality data.

[0096] Step S106: Perform a structural quality analysis on the sample lead-tin bar according to the element composition data and the microstructure data to obtain structural quality data, and generate a quality inspection report according to the appearance quality data and the structural quality data.

[0097] Specifically, the element composition data is standardized to obtain a normalized element content index. Standardization eliminates the differences between different element contents so that the data of all elements can be compared and analyzed under a unified standard. The sample lead-tin bar is subjected to composition deviation calculation processing according to the normalized element content index to obtain the element deviation index. The composition deviation calculation quantifies the degree of deviation of the sample in chemical composition by comparing the difference between the element composition of the sample and the expected standard. The grain size in the microstructure data is analyzed to obtain the grain size distribution characteristics. The grain size distribution characteristics can reveal the size and distribution of the grains inside the sample, which helps to evaluate the mechanical properties and structural stability of the sample. According to the grain size distribution characteristics, the sample lead-tin bar is subjected to micro-uniformity evaluation processing to obtain the microstructure uniformity index. The micro-uniformity evaluation mainly quantifies the uniformity of the sample in the microstructure by analyzing the distribution of the grain size, thereby evaluating the stability of its internal structure. The element deviation index and the microstructure uniformity index are weighted fused to obtain the initial score of the structural quality. The weighted fusion process combines element deviation and micro-uniformity by setting different weights to form a preliminary structural quality assessment score. According to the initial structural quality score, the sample is subjected to fuzzy comprehensive evaluation to obtain the structural quality grade. Fuzzy comprehensive evaluation makes the quality grade division more reasonable and continuous by considering the fuzzy transition between scores. The structural quality grade and appearance quality data are subjected to correlation analysis to obtain quality consistency data. The correlation analysis evaluates the consistency of the sample in different quality dimensions by comparing the relationship between structural quality and appearance quality. According to the quality consistency data, the sample lead-tin bar is comprehensively scored to obtain the final quality score. The comprehensive score combines the two aspects of structural quality and appearance quality to form a comprehensive quality assessment result. The final quality score is graded to obtain a quality grade distribution report. The grade division divides the samples into different quality grades by setting different score thresholds, thereby clarifying their quality levels. The quality grade distribution report is subjected to data visualization processing to obtain a quality inspection report. The data visualization processing intuitively displays the quality grade distribution in the form of charts and graphs, making the quality inspection report easier to understand and analyze.

[0098] In the embodiments of the present application, through multi-dimensional image extraction and defect detection technology, comprehensive and accurate identification of surface defects of lead-tin strips is achieved, the subjectivity and limitations of traditional visual inspection are overcome, and the accuracy and consistency of surface quality assessment are significantly improved; X-ray fluorescence spectroscopy analysis combined with multi-point scanning processing is used to accurately determine not only the elemental composition, but also the element distribution map, uniformity index and segregation degree are obtained through spatial interpolation and distribution analysis, which provides a reliable basis for in-depth evaluation of the uniformity of material composition; nanoindentation analysis technology is introduced, and micro-scale hardness and elastic modulus data, as well as spatial distribution characteristics of mechanical properties are obtained through high-precision force-displacement curve analysis and data processing, which greatly improves the accuracy and spatial resolution of mechanical property evaluation; combined with X-ray diffraction and in-situ heating analysis, not only conventional crystal phase composition and grain size information are obtained, but also dynamic microstructural parameters such as thermal expansion coefficient, phase transition temperature and activation energy are obtained through temperature series diffraction pattern analysis, which provides an important basis for predicting the performance stability of materials during use; in terms of data processing and quality assessment, this method is innovative. A variety of advanced algorithms and models, such as multi-scale pyramid decomposition, regional growth segmentation, fuzzy logic optimization, cluster analysis, etc., have been introduced to realize the intelligent processing process from raw data to final quality assessment, greatly improving the efficiency and accuracy of data analysis; by combining image defect data with mechanical property data, an appearance quality assessment model has been established, which not only considers the severity of surface defects, but also incorporates the mechanical properties of materials into the assessment system, making the appearance quality assessment more comprehensive and reliable; in structural quality analysis, the element composition data and microstructure data are innovatively integrated and analyzed, and a more comprehensive structural quality assessment system is established by calculating the element deviation index and microstructure uniformity index, which can better reflect the quality of the internal structure of the material; through the comprehensive analysis and visualization of appearance quality data and structural quality data, an intuitive and detailed quality inspection report is generated, providing strong support for quality control decisions; the entire inspection process is highly automated and standardized, which significantly improves the inspection efficiency, reduces human errors, and ensures the repeatability and comparability of the inspection results.

[0099] In a specific embodiment, the process of executing step S101 may specifically include the following steps:

[0100] (1) performing multi-angle rotation scanning on the sample lead-tin bar to obtain surface image data;

[0101] (2) preprocessing the surface image data to obtain a standardized image, and performing multi-scale pyramid decomposition processing on the standardized image to obtain a feature image set with different resolutions;

[0102] (3) performing edge detection and contour extraction processing on the standardized image according to the feature image set to obtain surface contour data of the lead-tin bar;

[0103] (4) performing morphological operation on the surface profile data of the lead-tin bar to obtain a potential defect area;

[0104] (5) performing region growing segmentation processing on the standardized image according to the potential defect area to obtain an accurate defect boundary;

[0105] (6) performing geometric feature and texture feature extraction processing on the precise defect boundary to obtain a defect feature vector;

[0106] (7) Feature classification of defects according to the defect feature vector to obtain defect type identification results;

[0107] (8) Performing defect traversal processing on the defect type identification result to obtain the image defect data, wherein the image defect data includes: defect distribution data and defect degree.

[0108] Specifically, the sample lead-tin bar is placed on a rotating platform, and the surface details of the lead-tin bar are captured from different angles through multi-angle rotation scanning to ensure the comprehensiveness and accuracy of the image data. The multi-angle rotation scanning process generates multiple high-resolution surface image data by controlling the angle and shooting frequency of the rotating platform. The surface image data is preprocessed to obtain a standardized image. The preprocessing steps include operations such as denoising, contrast enhancement and grayscale equalization, which are aimed at eliminating the noise and uneven illumination effects in the original image and improving the quality and consistency of the image. The standardized image is subjected to multi-scale pyramid decomposition to obtain feature image sets of different resolutions. Multi-scale pyramid decomposition is a commonly used image processing technology that analyzes image features at different scales by decomposing the image into layers of different resolutions. The multi-scale pyramid decomposition process includes layer-by-layer downsampling and Gaussian blur processing of the image to generate a set of feature images of different resolutions. These feature image sets can capture image details and features at different scales. According to the feature image set, the standardized image is subjected to edge detection and contour extraction to obtain the surface contour data of the lead-tin bar. Edge detection highlights the boundaries and contours in the image by detecting significant grayscale changes in the image. Common edge detection algorithms include Canny edge detection and Sobel edge detection. Contour extraction is based on the edge detection results to depict the outline of the lead-tin bar, thereby generating surface contour data. After obtaining the surface contour data, the surface contour data of the lead-tin bar is processed by morphological operations to obtain the potential defect area. Morphological operations include expansion, corrosion, opening and closing operations, etc., which can effectively remove noise and small area interference in the image and highlight the potential defect area. Through morphological operation processing, the defect area that may exist on the surface of the lead-tin bar can be preliminarily identified, providing a basis for subsequent regional growth segmentation processing. According to the potential defect area, the standardized image is processed by regional growth segmentation to obtain an accurate defect boundary. Regional growth segmentation is a region-based image segmentation method that starts from a seed point and gradually expands the similarity region until a preset similarity threshold is reached to divide the defect area. Regional growth segmentation processing can ensure the accurate division of the defect area and avoid over-segmentation or under-segmentation. The geometric features and texture features of the precise defect boundary are extracted to obtain a defect feature vector. Geometric features include information such as the shape, size, and location of the defect, while texture features include information such as surface roughness and texture direction. The texture feature vector can be extracted through the gray level co-occurrence matrix (GLCM), and the formula is as follows:

[0109] ;

[0110] in, Represents texture feature vector, ASM is angular second moment, Contrast is contrast, Correlation is correlation, and Homogeneity is homogeneity. According to the defect feature vector, the defect is feature classified to obtain the defect type recognition result. Feature classification can adopt machine learning or deep learning methods to accurately identify and classify different types of defects through training models. For example, a support vector machine or convolutional neural network is used to classify the defect feature vector to obtain a specific defect type. The defect type recognition result is subjected to defect traversal processing to obtain image defect data, wherein the image defect data includes defect distribution data and defect degree. Defect traversal processing generates defect distribution data by counting and analyzing the number, location and distribution of defects of different types. At the same time, by calculating the severity index of each defect type, the severity of the defect is quantified to generate defect degree data.

[0111] In a specific embodiment, the process of executing step S102 may specifically include the following steps:

[0112] (1) performing grid division processing on the surface of the lead-tin bar of the sample to obtain a plurality of scanning points;

[0113] (2) Perform X-ray irradiation processing on each scanning point to obtain raw fluorescence spectrum data;

[0114] (3) performing background noise elimination and peak extraction processing on the original fluorescence spectrum data to obtain a characteristic peak data set;

[0115] (4) performing energy calibration processing on the spectral lines according to the characteristic peak data set to obtain calibrated energy spectrum data;

[0116] (5) performing qualitative analysis on the calibration energy spectrum data to obtain element types, and performing peak area integration processing on the energy spectrum data according to the element types to obtain the relative intensity value of each element;

[0117] (6) Perform matrix effect correction on the relative intensity value of each element to obtain the corrected element content data;

[0118] (7) performing spatial interpolation processing on the corrected element content data to obtain an element distribution map;

[0119] (8) performing distribution analysis on the element distribution diagram to obtain an element uniformity index and a segregation degree;

[0120] (9) Performing elemental composition analysis on the sample lead-tin bar according to the element uniformity index and the degree of segregation to obtain the elemental composition data.

[0121] Specifically, the surface of the lead-tin bar sample is divided into a regular grid to ensure that each grid node corresponds to a scanning point. The grid division method ensures that the X-ray fluorescence spectroscopy analysis can cover the entire sample surface and provide comprehensive elemental composition information. Each scanning point represents an independent measurement position, forming a fine detection network. Each scanning point is subjected to X-ray irradiation to obtain raw fluorescence spectrum data. At each scanning point, the elements in the sample emit characteristic fluorescence through the excitation of X-rays, which are captured by the detector and converted into raw spectrum data. The raw fluorescence spectrum data is subjected to background noise elimination and peak extraction to obtain a characteristic peak data set. Background noise elimination removes irrelevant signals in the spectrum through an algorithm, while peak extraction identifies and extracts the characteristic peaks of each element in the spectrum. Characteristic peaks refer to significant peaks that appear in the spectrum due to the presence of specific elements. The positions and intensities of these peaks directly reflect the types and contents of the elements. The spectrum lines are energy calibrated according to the characteristic peak data set to obtain calibrated energy spectrum data. During the calibration process, the spectrum data of known standard samples are used for comparison and adjustment to ensure that the measurement results of the spectrometer are highly accurate. Qualitative analysis is performed on the calibration spectrum data to determine the types of elements contained in the sample. Qualitative analysis identifies the elements present in the sample by comparing the position of the peak in the spectrum with the characteristic peaks of known elements. According to the type of element, the spectrum data is processed by peak area integration to obtain the relative intensity value of each element. Peak area integration quantifies the contribution of each element in the spectrum by calculating the area under the characteristic peak, thereby providing information on relative content. The relative intensity value of each element is processed by matrix effect correction to obtain corrected element content data. Matrix effect correction is to compensate for the measurement error caused by different sample matrices. Matrix effect refers to the mutual influence between different elements, which may lead to deviations in measurement results. Correction processing corrects these deviations through mathematical models or experimental data to provide more accurate element content information. Spatial interpolation processing is performed on the corrected element content data to obtain an element distribution map. Spatial interpolation is to generate an element distribution map of the entire sample surface by interpolating the data of different scanning points. Spatial interpolation processing makes the detection results not only limited to the scanning points, but also can infer the element distribution between grids to form a continuous element distribution map. The element distribution map is analyzed to obtain the element uniformity index and segregation degree. The element uniformity index quantifies the uniformity of the element distribution on the sample surface through statistical analysis. The segregation degree measures the enrichment or dilution of elements in certain areas. These indicators are calculated by mathematical formulas, such as the uniformity index formula:

[0122] ;

[0123] in, represents the uniformity index, is the number of scan points, For the The element content of each point, is the average content of all points. A uniformity index close to 1 indicates uniform distribution, and a uniformity index close to 0 indicates uneven distribution. According to the element uniformity index and the degree of segregation, the elemental composition of the sample lead-tin bar is analyzed to obtain the elemental composition data. The elemental content, distribution uniformity and segregation are comprehensively considered to comprehensively evaluate the elemental composition characteristics of the sample. For example, when analyzing a lead-tin bar sample, the content and distribution of lead (Pb) and tin (Sn) on its surface can be determined through the above steps. Assume that the analysis results of a certain sample show that the relative intensity value of lead is uniformly distributed in all scanning points, the uniformity index is close to 1, and the degree of segregation is low, indicating that lead is uniformly distributed in the sample; while the distribution of tin shows significant enrichment in certain areas, the uniformity index is low, and the degree of segregation is high, indicating that the distribution of tin is uneven. These data indicate that the sample may have the problem of uneven material mixing during the production process, thus providing an important basis for quality control.

[0124] In a specific embodiment, the process of executing step S103 may specifically include the following steps:

[0125] (1) Polishing the surface of the sample lead-tin bar to obtain a flat test surface;

[0126] (2) performing multi-point meshing processing on the test surface to obtain indentation position data;

[0127] (3) performing multiple nanoindentation loading-unloading cycle processes on the sample according to the indentation position data to obtain original force-displacement curve data;

[0128] (4) performing data smoothing on the original force-displacement curve data to obtain an optimized force-displacement curve;

[0129] (5) performing power function fitting processing on the loading section according to the optimized force-displacement curve to obtain a loading curve equation;

[0130] (6) performing derivative calculation on the loading curve equation to obtain a contact stiffness function;

[0131] (7) performing hardness analysis on the unloading section according to the contact stiffness function to obtain initial values ​​of hardness and elastic modulus;

[0132] (8) performing indenter shape and thermal drift correction processing on the initial values ​​of the hardness and the elastic modulus to obtain corrected hardness and elastic modulus data;

[0133] (9) performing mechanical distribution analysis based on the corrected hardness and the elastic modulus data to obtain a mechanical property distribution diagram and a coefficient of variation;

[0134] (10) Performing performance evaluation on the mechanical property distribution diagram and the coefficient of variation to obtain the mechanical property data.

[0135] Specifically, the surface of the lead-tin bar of the sample is polished to obtain a flat test surface. The purpose of the polishing process is to eliminate the roughness and irregularity of the surface so that the subsequent nanoindentation test can be carried out on a uniform substrate, thereby improving the accuracy and repeatability of the test. After the polishing is completed, the test surface is subjected to multi-point grid division to obtain the indentation position data. Through grid division, it is ensured that the indentation test points are evenly distributed on the entire surface, thereby fully reflecting the mechanical properties of the sample. According to the indentation position data, the sample is subjected to multiple nanoindentation loading-unloading cycle processing to obtain the original force-displacement curve data. At each indentation position, by applying and removing the load, the force-displacement relationship of the sample during the loading and unloading process is recorded to form the original force-displacement curve. The original force-displacement curve data is subjected to data smoothing to obtain the optimized force-displacement curve. Data smoothing eliminates the noise in the original curve, making the curve smoother and continuous, and more accurately reflecting the mechanical behavior of the material. According to the optimized force-displacement curve, the loading section is subjected to power function fitting processing to obtain the loading curve equation. The power function fitting processing can accurately describe the relationship between force and displacement during the loading process, thereby forming a mathematical model. The specific fitting equation can be expressed as:

[0136] ;

[0137] in, is the loading force, is the indentation depth, and are fitting parameters, which represent the strength coefficient and stress index of the material respectively. Through fitting, the specific form of the loading curve equation is obtained. The contact stiffness function is obtained by performing derivative calculation on the loading curve equation. The contact stiffness refers to the stiffness characteristics of the contact area between the indenter and the material during the indentation process, which can be specifically expressed as:

[0138] ;

[0139] in, is the contact stiffness, is the derivative of the loading force with respect to the indentation depth. According to the contact stiffness function, the hardness analysis is performed on the unloading section to obtain the initial values ​​of the hardness and elastic modulus. The hardness analysis mainly reflects the mechanical response characteristics of the material at different indentation depths through the contact stiffness function. The hardness and elastic modulus of the material are calculated by the shape of the contact stiffness and unloading curve. The specific calculation formula is:

[0140] ;

[0141] in, is the hardness, is the maximum loading force, is the indentation contact area, is the elastic modulus, is the shape factor, is the contact stiffness. Through these formulas, the initial values ​​of the hardness and elastic modulus of the material are obtained. The initial values ​​of hardness and elastic modulus are corrected for the shape of the indenter and thermal drift to obtain the corrected hardness and elastic modulus data. The indenter shape correction process can eliminate the error caused by the irregular shape of the indenter, while the thermal drift correction process can compensate for the data drift caused by temperature changes during the test. Mechanical distribution analysis is performed based on the corrected hardness and elastic modulus data to obtain the mechanical property distribution diagram and coefficient of variation. The mechanical property distribution diagram shows the distribution of hardness and elastic modulus at different positions on the sample surface, while the coefficient of variation quantifies the uniformity and stability of these mechanical properties. The specific coefficient of variation formula is:

[0142] ;

[0143] in, is the coefficient of variation, is the standard deviation of hardness or elastic modulus, is the average value of hardness or elastic modulus. A lower coefficient of variation indicates that the mechanical properties are evenly distributed, while a higher coefficient of variation indicates an uneven distribution. The mechanical property distribution diagram and the coefficient of variation are used for performance evaluation to obtain mechanical property data. Performance evaluation can comprehensively analyze the mechanical performance characteristics of the sample to determine its quality and reliability. For example, when analyzing a lead-tin bar sample, the distribution of its surface hardness and elastic modulus can be determined through the above steps. If the hardness and elastic modulus are evenly distributed at all indentation positions and the coefficient of variation is low, it indicates that the sample has uniform mechanical properties and high quality; conversely, if the hardness and elastic modulus vary greatly at different positions and the coefficient of variation is high, it indicates that the sample may have defects in the manufacturing process and the quality is low.

[0144] In a specific embodiment, the process of executing step S104 may specifically include the following steps:

[0145] (1) performing an X-ray diffraction scan on the sample lead-tin bar to obtain an original diffraction pattern;

[0146] (2) performing background subtraction and peak position identification processing on the original diffraction spectrum to obtain optimized diffraction peak data;

[0147] (3) performing phase analysis based on the optimized diffraction peak data to obtain crystal phase composition data;

[0148] (4) performing full spectrum fitting processing on the crystal phase composition data to obtain lattice parameters and relative content data;

[0149] (5) performing a grain size analysis on the sample lead-tin bar according to the lattice parameters and the relative content data to obtain an average grain size;

[0150] (6) performing a temperature-increasing X-ray diffraction process on the sample lead-tin bar through a preset temperature-controlled heating system to obtain a temperature series diffraction pattern;

[0151] (7) performing peak position shift analysis on the temperature series diffraction pattern to obtain thermal expansion coefficient data;

[0152] (8) performing kinetic analysis based on the temperature series diffraction pattern to obtain phase transition temperature and activation energy;

[0153] (9) Performing microstructural analysis on the sample lead-tin bar based on the crystal phase composition data, average grain size, thermal expansion coefficient data, phase transition temperature and activation energy to obtain the microstructural data.

[0154] Specifically, the lead-tin bar sample is placed in an X-ray diffractometer, and the crystal structure information of the sample is captured through diffraction scanning. This information is presented in the form of a diffraction pattern. When the X-ray passes through the sample, it diffracts with the crystal plane to form characteristic peaks. The position and intensity of these peaks reflect the properties of the crystals in the sample. The original diffraction pattern is subjected to background subtraction and peak position identification processing to obtain optimized diffraction peak data. Background subtraction removes noise and irrelevant signals in the spectrum through an algorithm to ensure that only valid diffraction signals are retained. Peak position identification extracts characteristic peaks reflecting crystal information by detecting the significant peak position and intensity in the diffraction spectrum. Phase analysis is performed based on the optimized diffraction peak data to determine the crystal phase composition of the sample. Phase analysis identifies the type of crystal phase present in the sample by comparing the position and intensity of the diffraction peak with a known standard diffraction pattern. For example, different crystal phases in a lead-tin alloy may include α phase, β phase, etc., and these crystal phases have their own unique diffraction characteristics. The crystal phase composition data is subjected to full spectrum fitting processing to obtain lattice parameters and relative content data. Full spectrum fitting calculates the lattice parameters (such as lattice constants) and the relative content of each crystal phase of the sample by fitting the entire diffraction pattern. These parameters provide important information about the crystal structure of the sample. For example, the lattice parameters of lead-tin alloy can reflect its internal atomic arrangement, while the relative content indicates the proportion of different crystal phases in the sample. Based on the lattice parameter and relative content data, the sample is subjected to grain size analysis to obtain the average grain size. Grain size analysis uses the width information of the diffraction peak to calculate the average grain size of the sample through the Scherrer formula or other related methods. The specific calculation formula is:

[0155] ;

[0156] in, is the grain size, is the shape factor, usually 0.9, is the wavelength of X-rays, is the half-height width of the diffraction peak, is the diffraction angle. Through this formula, the average grain size of the sample is quantitatively measured to reveal its microstructural characteristics. The sample is subjected to temperature X-ray diffraction treatment through a preset temperature control heating system to obtain a temperature series diffraction pattern. The temperature control heating system can accurately control the heating rate of the sample, and perform X-ray diffraction scans at different temperatures to record the diffraction changes of the sample during the heating process. These temperature series diffraction patterns provide information about the changes in the crystal structure of the sample at different temperatures. The temperature series diffraction patterns are subjected to peak displacement analysis to obtain thermal expansion coefficient data. The peak displacement analysis calculates the thermal expansion coefficient of the sample by observing the position changes of the diffraction peak at different temperatures. The specific calculation formula is:

[0157] ;

[0158] in, is the coefficient of thermal expansion, is the initial interplanar spacing, is the change in the interplanar spacing, is the temperature change. This formula quantitatively describes the expansion behavior of the sample during heat treatment. Kinetic analysis is performed based on the temperature series diffraction pattern to obtain the phase transition temperature and activation energy. Kinetic analysis determines the phase transition temperature of the material by observing the change in the diffraction peak intensity with temperature. At the same time, the activation energy of the phase transition process is obtained by calculating the relationship between the reaction rate constant and temperature. Activation energy is an important parameter to describe the difficulty of phase transition and can reveal the phase transition characteristics of the sample during heat treatment. The crystal phase composition data, average grain size, thermal expansion coefficient data, phase transition temperature and activation energy are comprehensively analyzed to obtain the microstructure data of the sample. For example, assuming that the analysis results of a lead-tin alloy sample show that its crystal phase composition mainly includes α phase and β phase, the lattice parameter of the α phase is 4.95Å, the lattice parameter of the β phase is 5.15Å, and the relative content of the α phase is 70% and the β phase is 30%. Grain size analysis shows that the average grain size of the sample is 100nm. Analysis of the temperature series diffraction pattern shows that the sample undergoes a phase transition at 150°C, with an activation energy of 85 kJ / mol and a thermal expansion coefficient of 1.2×10^-5 / °C. Based on these data, it is concluded that the lead-tin alloy sample has a small grain size, uniform crystal phase composition, and moderate thermal expansion performance. Its microstructure is stable and is suitable for use in high temperature environments.

[0159] In a specific embodiment, the process of executing step S105 may specifically include the following steps:

[0160] (1) performing defect type classification processing on the image defect data to obtain defect type distribution data;

[0161] (2) quantifying the degree of defects on the defect type distribution data to obtain a defect severity index;

[0162] (3) Standardizing the mechanical property data to obtain normalized mechanical property indicators;

[0163] (4) classifying the sample lead-tin bars into performance grades according to the normalized mechanical property index to obtain a mechanical property grade score;

[0164] (5) Performing weighted fusion processing on the defect severity index and the mechanical property grade score to obtain an initial comprehensive quality score;

[0165] (6) performing cluster analysis on the samples according to the initial comprehensive quality scores to obtain quality grade classification thresholds;

[0166] (7) performing fuzzy logic optimization processing on the quality grade classification threshold to obtain an optimized quality grade boundary;

[0167] (8) Performing quality grade determination processing on the sample according to the optimized quality grade limit to obtain the appearance quality grade;

[0168] (9) Performing statistical analysis on the appearance quality grades to obtain batch quality distribution characteristics;

[0169] (10) Analyzing the appearance quality of the sample lead-tin bars according to the batch quality distribution characteristics to obtain the appearance quality data.

[0170] Specifically, image processing algorithms are used to classify defects in the surface image of the lead-tin bar, such as scratches, holes, and oxidation spots. Different types of defects are accurately classified through machine learning algorithms, such as support vector machines or convolutional neural networks, and the distribution of each defect in the sample is statistically analyzed to generate defect type distribution data. The defect type distribution data is subjected to defect degree quantification processing to obtain a defect severity index. The defect degree quantification processing converts the defect into a numerical severity index by analyzing factors such as the area, number, and location of the defect. The mechanical property data is standardized to obtain a normalized mechanical property index. The standardization process is to eliminate the differences between different measurement scales and units so that the mechanical property data can be compared and analyzed under a unified standard. According to the normalized mechanical property index, the sample lead-tin bar is subjected to performance grade classification processing to obtain a mechanical property grade score. The performance grade classification can be based on preset standards and algorithms to divide the standardized mechanical property data into different grades. For example, the quantile method can be used to divide the data into different grades such as excellent, good, qualified, and unqualified, and assign corresponding scores. The defect severity index and mechanical property grade score are weighted and fused to obtain the initial comprehensive quality score. The weighted fusion process combines the defect severity index and the mechanical property grade score by setting different weights to form a preliminary quality assessment score. According to the initial comprehensive quality score, the samples are clustered to obtain the quality grade division threshold. The cluster analysis can use the K-means algorithm or other clustering methods to divide the samples into different quality grades and determine the score threshold for each grade. Through cluster analysis, the samples are reasonably classified according to the initial comprehensive quality score. The quality grade division threshold is fuzzy-logic optimized to obtain the optimized quality grade boundary. The fuzzy logic optimization process takes into account the fuzzy transition between scores, making the quality grade division more reasonable and continuous. Through the fuzzy logic optimization process, the uncertainty in the grade division is eliminated and the classification accuracy is improved. According to the optimized quality grade boundary, the sample is subjected to quality grade determination processing to obtain the appearance quality grade. By comparing the initial comprehensive quality score with the optimized quality grade boundary, the appearance quality grade of the sample is determined to form a specific quality assessment result. The appearance quality grade is statistically analyzed to obtain the batch quality distribution characteristics. Statistical analysis can reveal the quality grade distribution of all samples in a batch, so as to understand the quality level of the entire production batch. Through statistical analysis, the batch quality distribution characteristics are generated to provide a basis for subsequent quality control. According to the batch quality distribution characteristics, the appearance quality of the sample lead-tin bars is analyzed to obtain the appearance quality data. For example, when analyzing a batch of lead-tin bar samples, the defect type distribution, defect severity index and mechanical property grade score can be determined through the above steps.Assuming that the defect severity index of a batch of samples is 0.2, the mechanical property grade score is 85, and the initial comprehensive quality score obtained by weighted fusion processing is 72. After fuzzy logic optimization processing, it is judged to be of quality grade B. Statistical analysis shows that 60% of the lead-tin bars in this batch of samples are grade A, 30% are grade B, and 10% are grade C. The generated batch quality distribution characteristics indicate that the overall quality of the batch is good, but there are still a small number of samples that need to be improved.

[0171] In a specific embodiment, the process of executing step S106 may specifically include the following steps:

[0172] (1) Standardize the element composition data to obtain the normalized element content index;

[0173] (2) performing composition deviation calculation on the sample lead-tin bar according to the normalized element content index to obtain an element deviation index;

[0174] (3) Analyze the grain size in the microstructure data to obtain the grain size distribution characteristics;

[0175] (4) performing a microscopic uniformity evaluation process on the sample lead-tin bar according to the grain size distribution characteristics to obtain a microstructure uniformity index;

[0176] (5) performing weighted fusion processing on the element deviation index and the microstructure uniformity index to obtain an initial score of the structure quality;

[0177] (6) Performing fuzzy comprehensive evaluation on the sample according to the initial structural quality score to obtain the structural quality grade;

[0178] (7) Conducting correlation analysis on the structural quality grade and appearance quality data to obtain quality consistency data;

[0179] (8) Comprehensively scoring the sample lead-tin bars according to the quality consistency data to obtain a final quality score, and classifying the final quality score to obtain a quality grade distribution report;

[0180] (9) Performing data visualization processing on the quality grade distribution report to obtain the quality inspection report.

[0181] Specifically, the elemental composition data of the lead-tin bar samples are collected and standardized. The purpose of standardization is to eliminate the differences between the contents of different elements so that the data can be compared and analyzed on a unified scale. The sample aluminum-tin bar is subjected to composition deviation calculation according to the normalized element content index to obtain the element deviation index. The composition deviation calculation quantifies the degree of deviation of the sample in terms of chemical composition by comparing the difference between the elemental composition of the sample and the expected standard. Assuming the expected standard is , then the element deviation index It can be calculated by the following formula:

[0182] ;

[0183] in, is the element deviation index, is the standardized element content data, is the expected standard. By calculating the deviation index of each element, the degree of deviation of the overall elemental composition is quantified. The grain size in the microstructure data is analyzed to obtain the grain size distribution characteristics. Grain size analysis uses techniques such as X-ray diffraction or scanning electron microscopy to measure the size and distribution of grains in the sample. Through statistical analysis, the distribution characteristics of grain size, including average grain size, standard deviation, etc., are obtained. The microstructural uniformity of the sample is evaluated by analyzing the grain size distribution characteristics. According to the grain size distribution characteristics, the sample lead-tin bar is subjected to microscopic uniformity evaluation processing to obtain the microstructural uniformity index. The microuniformity evaluation mainly quantifies the uniformity of the sample in microstructure by calculating the coefficient of variation of the grain size. A lower coefficient of variation indicates a uniform distribution of the microstructure, while a higher coefficient indicates an uneven distribution. The element deviation index and the microstructural uniformity index are weighted and fused to obtain the initial score of the structural quality. The weighted fusion process combines the element deviation index and the microstructural uniformity index by setting different weights to form a preliminary structural quality evaluation score. According to the initial score of the structural quality, the sample is subjected to fuzzy comprehensive evaluation to obtain the structural quality grade. Fuzzy comprehensive evaluation makes the quality grade division more reasonable and continuous by considering the fuzzy transition between scores. Through fuzzy logic processing, the uncertainty in the grade division is eliminated and the accuracy of classification is improved. Correlation analysis is performed on the structural quality grade and appearance quality data to obtain quality consistency data. Correlation analysis evaluates the consistency of samples in different quality dimensions by comparing the relationship between structural quality and appearance quality. Correlation analysis can be performed by calculating the Pearson correlation coefficient conduct:

[0184] ;

[0185] in, is the correlation coefficient, and are the average values ​​of the structural quality grade and appearance quality data, respectively. A correlation coefficient close to 1 indicates a high correlation, and close to 0 indicates no correlation. Based on the quality consistency data, the sample lead-tin bars are comprehensively scored to obtain the final quality score. The comprehensive score combines the two aspects of structural quality and appearance quality to form a comprehensive quality assessment result. The final quality score is graded to obtain a quality grade distribution report. The grade division divides the samples into different quality grades by setting different score thresholds to clarify their quality levels. Assuming that the grade division standards are: excellent (90-100), good (75-89), qualified (60-74), and unqualified (<60), the samples can be classified according to the comprehensive score. The quality grade distribution report is visualized to obtain a quality inspection report. Data visualization intuitively displays the quality grade distribution in the form of charts and graphs, making the quality inspection report easier to understand and analyze. For example, a pie chart is used to show the proportion of samples of different quality grades, or a bar chart is used to show the quality score distribution of samples from different batches.

[0186] The lead-tin bar quality detection method in the embodiment of the present application is described above. The lead-tin bar quality detection device in the embodiment of the present application is described below. Figure 2 In the embodiment of the present application, one embodiment of the lead-tin bar quality detection device includes:

[0187] The extraction module 201 is used to perform multi-dimensional image extraction on the collected sample lead-tin bars to obtain surface image data, and perform defect detection on the surface image data to obtain image defect data;

[0188] Scanning module 202, used to perform X-ray fluorescence spectrum analysis and multi-point scanning processing on the sample lead-tin bar to obtain element composition data;

[0189] An indentation module 203 is used to perform nanoindentation analysis on the sample lead-tin bar to obtain mechanical property data;

[0190] A heating module 204 is used to perform diffraction analysis and in-situ heating analysis on the lead-tin bar sample to obtain microstructure data;

[0191] An analysis module 205 is used to perform quality analysis on the sample lead-tin bar according to the image defect data and the mechanical property data to obtain appearance quality data;

[0192] The generation module 206 is used to perform a structural quality analysis on the sample lead-tin bar according to the element composition data and the microstructure data to obtain structural quality data, and to generate a quality inspection report according to the appearance quality data and the structural quality data.

[0193] Through the synergy of the above components, through multi-dimensional image extraction and defect detection technology, the surface defects of lead-tin strips are comprehensively and accurately identified, the subjectivity and limitations of traditional visual inspection are overcome, and the accuracy and consistency of surface quality assessment are significantly improved; X-ray fluorescence spectroscopy analysis combined with multi-point scanning processing is used to accurately determine the elemental composition, and the element distribution map, uniformity index and segregation degree are obtained through spatial interpolation and distribution analysis, which provides a reliable basis for in-depth evaluation of the uniformity of material composition; nanoindentation analysis technology is introduced, and through high-precision force-displacement curve analysis and data processing, micro-scale hardness and elastic modulus data, as well as the spatial distribution characteristics of mechanical properties are obtained, which greatly improves the accuracy and spatial resolution of mechanical property evaluation; combined with X-ray diffraction and in-situ heating analysis, not only the conventional crystal phase composition and grain size information are obtained, but also the dynamic microstructure parameters such as thermal expansion coefficient, phase transition temperature and activation energy are obtained through temperature series diffraction pattern analysis, which provides an important basis for predicting the performance stability of materials during use; in terms of data processing and quality assessment, this paper The method innovatively introduces a variety of advanced algorithms and models, such as multi-scale pyramid decomposition, region growing segmentation, fuzzy logic optimization, cluster analysis, etc., to realize the intelligent processing process from raw data to final quality assessment, greatly improving the efficiency and accuracy of data analysis; by combining image defect data with mechanical property data, an appearance quality assessment model is established, which not only considers the severity of surface defects, but also incorporates the mechanical properties of materials into the assessment system, making the appearance quality assessment more comprehensive and reliable; in structural quality analysis, the element composition data and microstructure data are innovatively fused and analyzed, and a more comprehensive structural quality assessment system is established by calculating the element deviation index and microstructure uniformity index, which can better reflect the quality of the internal structure of the material; through the comprehensive analysis and visualization of appearance quality data and structural quality data, an intuitive and detailed quality inspection report is generated, providing strong support for quality control decisions; the entire inspection process is highly automated and standardized, which significantly improves the inspection efficiency, reduces human errors, and ensures the repeatability and comparability of the inspection results.

[0194] The present application also provides a lead-tin bar quality detection device, which includes a memory and a processor, wherein the memory stores computer-readable instructions, and when the computer-readable instructions are executed by the processor, the processor executes the steps of the lead-tin bar quality detection method in the above-mentioned embodiments.

[0195] The present application also provides a computer-readable storage medium, which may be a non-volatile computer-readable storage medium or a volatile computer-readable storage medium. Instructions are stored in the computer-readable storage medium. When the instructions are executed on a computer, the computer executes the steps of the lead-tin bar quality detection method.

[0196] Those skilled in the art can clearly understand that, for the convenience and brevity of description, the specific working processes of the above-described systems, systems and units can refer to the corresponding processes in the aforementioned method embodiments and will not be repeated here.

[0197] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present application is essentially or the part that contributes to the prior art or all or part of the technical solution can be embodied in the form of a software product. The computer software product is stored in a storage medium, including several instructions to enable a computer device (which can be a personal computer, server, or network device, etc.) to execute all or part of the steps of the method described in each embodiment of the present application. The aforementioned storage medium includes: U disk, mobile hard disk, read-only memory (ROM), random access memory (RAM), disk or optical disk and other media that can store program codes.

[0198] As described above, the above embodiments are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application.

Claims

1. A lead-tin bar quality detection method, characterized in that: The lead-tin bar quality detection method comprises: Performing multi-dimensional image extraction on the collected sample lead-tin bars to obtain surface image data, and performing defect detection on the surface image data to obtain image defect data; Performing X-ray fluorescence spectroscopy analysis and multi-point scanning processing on the sample lead-tin bar to obtain element composition data; Performing nanoindentation analysis on the lead-tin bar of the sample to obtain mechanical property data; Performing diffraction analysis and in-situ heating analysis on the lead-tin bar sample to obtain microstructure data; Performing quality analysis on the sample lead-tin bar according to the image defect data and the mechanical property data to obtain appearance quality data; Performing a structural quality analysis on the sample lead-tin bar according to the element composition data and the microstructure data to obtain structural quality data, and generating a quality inspection report according to the appearance quality data and the structural quality data; The method of performing multi-dimensional image extraction on the collected sample lead-tin strip to obtain surface image data, and performing defect detection on the surface image data to obtain image defect data includes: Performing multi-angle rotation scanning on the sample lead-tin bar to obtain surface image data; Preprocessing the surface image data to obtain a standardized image, and performing multi-scale pyramid decomposition processing on the standardized image to obtain a feature image set with different resolutions; Perform edge detection and contour extraction processing on the standardized image according to the characteristic image set to obtain surface contour data of the lead-tin bar; Performing morphological operation processing on the surface profile data of the lead-tin bar to obtain a potential defect area; Performing region growing segmentation processing on the standardized image according to the potential defect region to obtain an accurate defect boundary; Performing geometric feature and texture feature extraction processing on the precise defect boundary to obtain a defect feature vector; Performing feature classification on the defects according to the defect feature vector to obtain a defect type identification result; Performing defect traversal processing on the defect type identification result to obtain the image defect data, wherein the image defect data includes: defect distribution data and defect degree; The sample lead-tin strip is subjected to X-ray fluorescence spectroscopy analysis and multi-point scanning processing to obtain element composition data, including: Performing grid division processing on the surface of the lead-tin bar of the sample to obtain a plurality of scanning points; Perform X-ray irradiation processing on each scanning point to obtain original fluorescence spectrum data; Performing background noise elimination and peak extraction processing on the original fluorescence spectrum data to obtain a characteristic peak data set; Performing energy calibration processing on the spectral lines according to the characteristic peak data set to obtain calibrated energy spectrum data; Performing qualitative analysis on the calibration energy spectrum data to obtain element types, and performing peak area integration processing on the energy spectrum data according to the element types to obtain a relative intensity value of each element; The relative intensity value of each element is corrected for matrix effect to obtain the corrected element content data; Performing spatial interpolation processing on the corrected element content data to obtain an element distribution map; The element distribution diagram is analyzed to obtain the element uniformity index and the degree of segregation; the element uniformity index formula is: ; in, represents the uniformity index, is the number of scan points, For the The element content of each point, is the average content of all points; the segregation degree is a measure of the enrichment or dilution of elements in certain areas; Performing elemental composition analysis on the sample lead-tin bar according to the element uniformity index and the segregation degree to obtain the elemental composition data; The nanoindentation analysis of the lead-tin bar sample is performed to obtain mechanical property data, including: Polishing the surface of the lead-tin bar of the sample to obtain a flat test surface; Performing multi-point grid division processing on the test surface to obtain indentation position data; According to the indentation position data, the sample is subjected to multiple nanoindentation loading-unloading cycle processing to obtain original force-displacement curve data; Performing data smoothing on the original force-displacement curve data to obtain an optimized force-displacement curve; Performing power function fitting processing on the loading section according to the optimized force-displacement curve to obtain a loading curve equation; Performing derivative calculation processing on the loading curve equation to obtain a contact stiffness function; Performing hardness analysis on the unloading section according to the contact stiffness function to obtain initial values ​​of hardness and elastic modulus; Performing indenter shape and thermal drift correction processing on the initial values ​​of the hardness and the elastic modulus to obtain corrected hardness and elastic modulus data; Performing mechanical distribution analysis based on the corrected hardness and elastic modulus data to obtain a mechanical property distribution diagram and a coefficient of variation; the mechanical property distribution diagram displays the hardness and elastic modulus distribution at different locations on the sample surface; Performing performance evaluation on the mechanical property distribution diagram and the coefficient of variation to obtain the mechanical property data; The diffraction analysis and in-situ heating analysis of the lead-tin bar sample are performed to obtain microstructure data, including: Performing X-ray diffraction scanning on the sample lead-tin bar to obtain an original diffraction pattern; Performing background subtraction and peak position identification processing on the original diffraction spectrum to obtain optimized diffraction peak data; Performing phase analysis according to the optimized diffraction peak data to obtain crystal phase composition data; Performing full spectrum fitting processing on the crystal phase composition data to obtain lattice parameters and relative content data; Performing grain size analysis on the lead-tin bar sample according to the lattice parameters and relative content data to obtain an average grain size; Performing a temperature-increasing X-ray diffraction process on the sample lead-tin bar through a preset temperature-controlled heating system to obtain a temperature-series diffraction pattern; Performing peak position shift analysis on the temperature sequence diffraction pattern to obtain thermal expansion coefficient data; Perform kinetic analysis based on the temperature sequence diffraction pattern to obtain phase transition temperature and activation energy; Comprehensively analyzing the crystal phase composition data, average grain size, thermal expansion coefficient data, phase transition temperature and activation energy to obtain the microstructure data; The quality analysis of the sample lead-tin bar is performed according to the image defect data and the mechanical property data to obtain appearance quality data, including: Performing defect type classification processing on the image defect data to obtain defect type distribution data; The defect type distribution data is subjected to defect degree quantification processing to obtain a defect severity index; the defect degree quantification processing is to convert the defect area, quantity and position factors into a numerical severity index by analyzing them; Performing standardization processing on the mechanical property data to obtain normalized mechanical property indicators; According to the normalized mechanical property index, the sample lead-tin bar is graded to obtain a mechanical property grade score; Performing weighted fusion processing on the defect severity index and the mechanical property grade score to obtain an initial comprehensive quality score; Performing cluster analysis on the samples according to the initial comprehensive quality scores to obtain a quality grade classification threshold; Performing fuzzy logic optimization processing on the quality grade division threshold to obtain an optimized quality grade boundary; Performing quality grade determination processing on the sample according to the optimized quality grade limit to obtain the appearance quality grade; Performing statistical analysis on the appearance quality grades to obtain batch quality distribution characteristics; Performing appearance quality analysis on the sample lead-tin bars according to the batch quality distribution characteristics to obtain the appearance quality data; The method comprises: performing a structural quality analysis on the sample lead-tin bar according to the element composition data and the microstructure data to obtain structural quality data, and generating a quality inspection report according to the appearance quality data and the structural quality data, including: Standardize the element composition data to obtain the normalized element content index; The sample lead-tin bar is subjected to composition deviation calculation processing according to the normalized element content index to obtain an element deviation index; an element deviation index Calculated by the following formula: ; in, is the element deviation index, is the standardized element content data, is the expected standard; Analyze the grain size in the microstructure data to obtain the grain size distribution characteristics, including the average grain size and standard deviation; According to the grain size distribution characteristics, the sample lead-tin bar is subjected to a microscopic uniformity evaluation process to obtain a microstructure uniformity index; the microscopic uniformity evaluation is mainly performed by calculating the coefficient of variation of the grain size to quantify the uniformity of the sample in microstructure; Performing weighted fusion processing on the element deviation index and the microstructure uniformity index to obtain an initial structure quality score; Perform fuzzy comprehensive evaluation on the sample according to the initial structural quality score to obtain the structural quality grade; Performing correlation analysis on the structural quality grade and appearance quality data to obtain quality consistency data; Comprehensively scoring the sample lead-tin bars according to the quality consistency data to obtain a final quality score, and grading the final quality score to obtain a quality grade distribution report; Data visualization processing is performed on the quality grade distribution report to obtain the quality inspection report.

2. A lead-tin bar quality detection device, characterized in that: The lead-tin bar quality detection device comprises: An extraction module is used to perform multi-dimensional image extraction on the collected sample lead-tin bars to obtain surface image data, and perform defect detection on the surface image data to obtain image defect data; A scanning module is used to perform X-ray fluorescence spectrum analysis and multi-point scanning processing on the sample lead-tin bar to obtain element composition data; An indentation module is used to perform nanoindentation analysis on the lead-tin bar sample to obtain mechanical property data; A heating module is used to perform diffraction analysis and in-situ heating analysis on the lead-tin bar sample to obtain microstructure data; An analysis module, used for performing quality analysis on the sample lead-tin bar according to the image defect data and the mechanical property data to obtain appearance quality data; A generating module, used for performing a structural quality analysis on the sample lead-tin bar according to the element composition data and the microstructure data to obtain structural quality data, and generating a quality inspection report according to the appearance quality data and the structural quality data; The method of performing multi-dimensional image extraction on the collected sample lead-tin strip to obtain surface image data, and performing defect detection on the surface image data to obtain image defect data includes: Performing multi-angle rotation scanning on the sample lead-tin bar to obtain surface image data; Preprocessing the surface image data to obtain a standardized image, and performing multi-scale pyramid decomposition processing on the standardized image to obtain a feature image set with different resolutions; Perform edge detection and contour extraction processing on the standardized image according to the characteristic image set to obtain surface contour data of the lead-tin bar; Performing morphological operation processing on the surface profile data of the lead-tin bar to obtain a potential defect area; Performing region growing segmentation processing on the standardized image according to the potential defect region to obtain an accurate defect boundary; Performing geometric feature and texture feature extraction processing on the precise defect boundary to obtain a defect feature vector; Performing feature classification on the defects according to the defect feature vector to obtain a defect type identification result; Performing defect traversal processing on the defect type identification result to obtain the image defect data, wherein the image defect data includes: defect distribution data and defect degree; The sample lead-tin strip is subjected to X-ray fluorescence spectroscopy analysis and multi-point scanning processing to obtain element composition data, including: Performing grid division processing on the surface of the lead-tin bar of the sample to obtain a plurality of scanning points; Perform X-ray irradiation processing on each scanning point to obtain original fluorescence spectrum data; Performing background noise elimination and peak extraction processing on the original fluorescence spectrum data to obtain a characteristic peak data set; Performing energy calibration processing on the spectral lines according to the characteristic peak data set to obtain calibrated energy spectrum data; Performing qualitative analysis on the calibration energy spectrum data to obtain element types, and performing peak area integration processing on the energy spectrum data according to the element types to obtain a relative intensity value of each element; The relative intensity value of each element is corrected for matrix effect to obtain the corrected element content data; Performing spatial interpolation processing on the corrected element content data to obtain an element distribution map; The element distribution diagram is analyzed to obtain the element uniformity index and the degree of segregation; the element uniformity index formula is: ; in, represents the uniformity index, is the number of scan points, For the The element content of each point, is the average content of all points; the segregation degree is a measure of the enrichment or dilution of elements in certain areas; Performing elemental composition analysis on the sample lead-tin bar according to the element uniformity index and the segregation degree to obtain the elemental composition data; The nanoindentation analysis of the lead-tin bar sample is performed to obtain mechanical property data, including: Polishing the surface of the lead-tin bar of the sample to obtain a flat test surface; Performing multi-point grid division processing on the test surface to obtain indentation position data; According to the indentation position data, the sample is subjected to multiple nanoindentation loading-unloading cycle processing to obtain original force-displacement curve data; Performing data smoothing on the original force-displacement curve data to obtain an optimized force-displacement curve; Performing power function fitting processing on the loading section according to the optimized force-displacement curve to obtain a loading curve equation; Performing derivative calculation processing on the loading curve equation to obtain a contact stiffness function; Performing hardness analysis on the unloading section according to the contact stiffness function to obtain initial values ​​of hardness and elastic modulus; Performing indenter shape and thermal drift correction processing on the initial values ​​of the hardness and the elastic modulus to obtain corrected hardness and elastic modulus data; Performing mechanical distribution analysis based on the corrected hardness and elastic modulus data to obtain a mechanical property distribution diagram and a coefficient of variation; the mechanical property distribution diagram displays the hardness and elastic modulus distribution at different locations on the sample surface; Performing performance evaluation on the mechanical property distribution diagram and the coefficient of variation to obtain the mechanical property data; The diffraction analysis and in-situ heating analysis of the lead-tin bar sample are performed to obtain microstructure data, including: Performing X-ray diffraction scanning on the sample lead-tin bar to obtain an original diffraction pattern; Performing background subtraction and peak position identification processing on the original diffraction spectrum to obtain optimized diffraction peak data; Performing phase analysis according to the optimized diffraction peak data to obtain crystal phase composition data; Performing full spectrum fitting processing on the crystal phase composition data to obtain lattice parameters and relative content data; Performing grain size analysis on the lead-tin bar sample according to the lattice parameters and relative content data to obtain an average grain size; Performing a temperature-increasing X-ray diffraction process on the sample lead-tin bar through a preset temperature-controlled heating system to obtain a temperature-series diffraction pattern; Performing peak position shift analysis on the temperature sequence diffraction pattern to obtain thermal expansion coefficient data; Perform kinetic analysis based on the temperature sequence diffraction pattern to obtain phase transition temperature and activation energy; Comprehensively analyzing the crystal phase composition data, average grain size, thermal expansion coefficient data, phase transition temperature and activation energy to obtain the microstructure data; The quality analysis of the sample lead-tin bar is performed according to the image defect data and the mechanical property data to obtain appearance quality data, including: Performing defect type classification processing on the image defect data to obtain defect type distribution data; The defect type distribution data is subjected to defect degree quantification processing to obtain a defect severity index; the defect degree quantification processing is to convert the defect area, quantity and position factors into a numerical severity index by analyzing them; Performing standardization processing on the mechanical property data to obtain normalized mechanical property indicators; According to the normalized mechanical property index, the sample lead-tin bar is graded to obtain a mechanical property grade score; Performing weighted fusion processing on the defect severity index and the mechanical property grade score to obtain an initial comprehensive quality score; Performing cluster analysis on the samples according to the initial comprehensive quality scores to obtain a quality grade classification threshold; Performing fuzzy logic optimization processing on the quality grade division threshold to obtain an optimized quality grade boundary; Performing quality grade determination processing on the sample according to the optimized quality grade limit to obtain the appearance quality grade; Performing statistical analysis on the appearance quality grades to obtain batch quality distribution characteristics; Performing appearance quality analysis on the sample lead-tin bars according to the batch quality distribution characteristics to obtain the appearance quality data; The method comprises: performing a structural quality analysis on the sample lead-tin bar according to the element composition data and the microstructure data to obtain structural quality data, and generating a quality inspection report according to the appearance quality data and the structural quality data, including: Standardize the element composition data to obtain the normalized element content index; The sample lead-tin bar is subjected to composition deviation calculation processing according to the normalized element content index to obtain an element deviation index; an element deviation index Calculated by the following formula: ; in, is the element deviation index, is the standardized element content data, is the expected standard; Analyze the grain size in the microstructure data to obtain the grain size distribution characteristics, including the average grain size and standard deviation; According to the grain size distribution characteristics, the sample lead-tin bar is subjected to a microscopic uniformity evaluation process to obtain a microstructure uniformity index; the microscopic uniformity evaluation is mainly performed by calculating the coefficient of variation of the grain size to quantify the uniformity of the sample in microstructure; Performing weighted fusion processing on the element deviation index and the microstructure uniformity index to obtain an initial structure quality score; Perform fuzzy comprehensive evaluation on the sample according to the initial structural quality score to obtain the structural quality grade; Performing correlation analysis on the structural quality grade and appearance quality data to obtain quality consistency data; Comprehensively scoring the sample lead-tin bars according to the quality consistency data to obtain a final quality score, and grading the final quality score to obtain a quality grade distribution report; Data visualization processing is performed on the quality grade distribution report to obtain the quality inspection report.

3. A lead-tin bar quality inspection device, characterized in that: The lead-tin bar quality detection device comprises: a memory and at least one processor, wherein the memory stores instructions; The at least one processor calls the instructions in the memory so that the lead-tin bar quality detection device implements the lead-tin bar quality detection method as claimed in claim 1 when executing.

4. A computer-readable storage medium having instructions stored thereon, characterized in that: When the instructions are executed by the processor, the lead-tin bar quality detection method as claimed in claim 1 is implemented.

Citation Information

Patent Citations

  • Crystal orientation and micromechanics performance measurement method of each composition crystal grain in polycrystal

    CN101532970A

  • Sample analysis using combined x-ray fluorescence and raman spectroscopy

    CN104335032A

  • Multi-dimensional data fusion and quantitative modeling method for metal additive manufacturing process system

    CN112632720A

  • Techniques for mass analyzing a complex sample

    US20180144918A1

  • Instrument and method for X-ray diffraction, fluorescence, and crystal texture analysis without sample preparation

    US7796726B1