Diamond flaw detection data analysis method and system based on machine vision
Through the diamond flaw detection data analysis method based on machine vision, combined with the shape, location, and color feature data of the flaw, the visibility and severity evaluation index of the flaw is calculated, which solves the problem of single detection dimension in the existing technology and realizes the detection of diamond flaws. A comprehensive assessment improves the accuracy of assessment and market competitiveness.
Patent Information
- Application Number
- CN202411249948.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-06
- Publication Date
- 2024-10-11
- Estimated Expiration
- Not applicable · inactive patent
AI Technical Summary
Existing diamond defect detection methods mainly focus on the texture characteristics of defects, and have a single detection dimension, making it difficult to cope with various types of diamond defects.
Using the diamond flaw detection data analysis method based on machine vision, by collecting the initial detection data of the flaw, comprehensively analyzing the visibility and severity evaluation index of the flaw, and calculating the visibility and severity evaluation index of the flaw based on the shape, location, and color feature data of the flaw. , and evaluate the quality impact of diamond based on these indices.
It provides a method to quantitatively assess the severity and visibility of defects, improves the accuracy and pertinence of the assessment, helps engineers and designers optimize the visibility of defects, improve product quality and user experience, and enhance market competitiveness.
Smart Images

Figure CN118758937A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of diamond data processing, and in particular to a method and system for analyzing diamond defect detection data based on machine vision. Background Art
[0002] Diamond defect detection is a very important part of the jewelry testing industry. With the development of machine vision technology and the promotion of market demand, providing diamonds with no defects or minimized defects has become the norm. Efficient and accurate diamond defect detection technology is of great significance to improving product quality and enhancing market competitiveness.
[0003] For example, the invention patent with announcement number CN112614101B is a polished tile defect detection method and related equipment based on multi-layer feature extraction. The method includes: under preset environmental conditions, collecting a first image of the polished tile to be detected; inputting the first image into a trained recognition network model; obtaining the output of the recognition network model as the defect type of the polished tile to be detected; the recognition network model includes a feature extraction subnetwork for extracting deep features of the image input to the recognition network model and a recognition subnetwork for identifying and judging the deep features extracted by the feature extraction subnetwork. The feature extraction subnetwork uses a feature pyramid form and a multi-layer feature extraction method to perform deep feature extraction on the input image, and the recognition subnetwork uses an attention mechanism to work.
[0004] For example, the invention patent with announcement number CN114880951B is a fabric defect prediction method based on digital twins, which includes the following process steps: 1) constructing a digital model of textile machinery; 2) establishing a physical model of fabric weaving based on textile technology; 3) using sensors to collect operating information and equipment status; 4) associating anomalies with fabric defect events through manual labeling and automatic classification, and then obtaining a neural network model for predicting fabric defect events through deep learning methods; 5) applying the trained model in the actual production process, and automatically marking the defect when it is judged to be a fabric defect event.
[0005] However, in the process of implementing the technical solution of the invention in the embodiments of the present application, the present applicant discovered that the above technology has at least the following technical problems: the current diamond defect detection method focuses more on the texture characteristics of the defects, and the detection dimension is single, which makes it difficult to cope with various types of diamond defects. Summary of the invention
[0006] In view of the deficiencies in the prior art, the present invention provides a diamond defect detection data analysis method and system based on machine vision, which can effectively solve the problems involved in the above-mentioned background technology.
[0007] To achieve the above objectives, the present invention is implemented through the following technical solutions: In a first aspect, the present invention provides a diamond defect detection data analysis method based on machine vision, including: collecting initial defect detection data of diamond.
[0008] Based on the initial defect detection data of diamond, a comprehensive analysis is conducted to obtain the diamond defect visibility assessment index and defect severity assessment index, and based on the diamond defect visibility assessment index and defect severity assessment index, a comprehensive analysis is conducted to obtain the diamond quality impact assessment index.
[0009] The diamond quality is evaluated according to the diamond quality impact evaluation index, and the evaluation results are obtained and fed back.
[0010] As a further method, the initial defect detection data of the diamond specifically includes: the number of defects and shape feature data, position feature data and color feature data of each defect, and a comprehensive analysis is performed to obtain reference information of the defects.
[0011] As a further method, the diamond defect visibility evaluation index and defect severity evaluation index are obtained by comprehensive analysis based on the initial defect detection data of the diamond. The specific analysis process is as follows: The center point position of each defect is obtained from the position feature data of each defect, the center point position of the diamond is used as the reference position, and the straight-line distance between the center point position of each defect and the reference position is collected and marked as the center distance of each defect deviation.
[0012] The color of each defect is obtained from the color feature data of each defect, the color of the diamond is used as the reference color, and the color of each defect is compared with the color of the diamond to obtain the color difference between each defect and the diamond, which is marked as the color difference of each defect.
[0013] The diamond transparency is collected and comprehensively analyzed to obtain the diamond defect visibility evaluation index.
[0014] The defects are classified into different types according to their shape characteristic data, and the sizes of the defects in each type are obtained. At the same time, according to the number of defects, a comprehensive analysis is performed to obtain the defect severity assessment index of the diamond.
[0015] As a further method, the comprehensive analysis obtains the diamond quality impact assessment index, and the specific analysis process is: extracting the quality impact assessment impact factor corresponding to the diamond defect visibility assessment index and the quality impact assessment impact factor corresponding to the diamond defect severity assessment index from the diamond defect database.
[0016] Based on the diamond defect visibility assessment index and defect severity assessment index, a comprehensive analysis is conducted to obtain the diamond quality impact assessment index.
[0017] As a further method, the diamond quality is evaluated according to the diamond quality impact evaluation index. The specific evaluation process is: extracting the diamond quality impact evaluation threshold from the diamond defect database, comparing the diamond quality impact evaluation index with the diamond quality impact evaluation threshold, if the diamond quality impact evaluation index is greater than or equal to the diamond quality impact evaluation threshold, then the diamond quality is evaluated as unqualified, if the diamond quality impact evaluation index is less than the diamond quality impact evaluation threshold, then the diamond quality is evaluated as qualified.
[0018] As a further method, the diamond defect visibility evaluation index is a quantitative index obtained by analyzing the color difference, transparency and deviation distance of the defect from the center point of the diamond, and is used to quantify the visibility of the diamond defect.
[0019] As a further method, the diamond defect severity assessment index is a quantitative index obtained by analyzing the number and size of defects, and is used to quantify the severity of diamond defects.
[0020] As a further method, the diamond defect visibility evaluation index has a specific numerical expression as follows:
[0021] Where A represents the diamond defect visibility evaluation index, e represents the natural constant, represents the color difference of the i-th defect, Indicates the set critical color difference, Indicates the transparency of diamond. Indicates the set critical transparency, represents the deviation center distance of the i-th defect, Indicates the set critical deviation center distance, Indicates the visibility assessment impact factor corresponding to the set color difference, Indicates the visibility assessment impact factor corresponding to the set transparency. It represents the visibility assessment influencing factor corresponding to the set deviation center distance, i represents the number of each defect, i=1,2,3,...,m, and m represents the total number of defects.
[0022] As a further method, the diamond defect severity evaluation index has a specific numerical expression as follows:
[0023] in, It represents the diamond defect severity assessment index, n represents the number of defects, represents the set critical number, represents the size of the jth type of the i-th defect, represents the critical size of the j-th type defect setting, Indicates the severity assessment impact factor corresponding to the set number of defects, It represents the severity assessment impact factor corresponding to the set size, j represents the type number of the defect, j=1,2,3,...,n, n represents the total number of types, i represents the number of each defect, i=1,2,3,...,m, m represents the total number of defects.
[0024] The second aspect of the present invention provides a diamond defect detection data analysis system based on machine vision, including: a defect data acquisition module, which collects initial diamond defect detection data based on a diamond defect database obtained using machine vision technology, including the deviation center distance of each diamond defect, color difference, diamond transparency, the number of diamond defects and the size of each defect.
[0025] The defect data analysis module is used to obtain the diamond defect visibility evaluation index based on the deviation center distance, color difference, and diamond transparency of each collected diamond defect, and to obtain the diamond defect severity evaluation index based on the collected number of diamond defects and the size of each defect. Then, based on the diamond defect visibility evaluation index and severity evaluation index, a comprehensive analysis is performed to obtain the diamond quality impact evaluation value.
[0026] The diamond quality impact assessment module is used to compare the diamond quality impact assessment index with the diamond quality impact assessment threshold, and then obtain the impact of defects on diamond quality.
[0027] The diamond defect database is used to store diamond defect related data, including diamond quality impact assessment threshold, diamond quality impact assessment influencing factor, diamond defect color difference, diamond transparency and other indicators. The data in the diamond defect database is obtained by collecting multiple diamond defect experimental data.
[0028] Compared with the prior art, the embodiments of the present invention have at least the following advantages or beneficial effects: (1) The present invention provides a method for quantitatively evaluating the severity and visibility of defects. The weight factor and critical value can be adjusted according to actual conditions to ensure that the evaluation method is applicable to various defects, making the evaluation more accurate and targeted to meet the needs of different application scenarios. It can help engineers and designers better understand and optimize the visibility of defects during product development, thereby improving the overall quality of the product and user experience.
[0029] (2) The present invention can more accurately evaluate the overall quality of a diamond through comprehensive analysis of the color difference, deviation center distance and diamond transparency of the defects, provide more comprehensive evaluation results, and help merchants, cutters and consumers make more informed decisions. This analysis method not only helps to improve the aesthetics and value of diamonds, but also promotes scientific research and technological progress in related fields.
[0030] (3) The present invention improves the reliability and scientificity of feedback by evaluating the impact of diamond quality on the evaluation value. Through effective data collection and processing, the accuracy of the evaluation results is significantly improved from multiple dimensions, data waste is avoided, and the overall value of the data is enhanced. Users can more intuitively understand the importance of different diamond data and make more rational purchasing choices based on this. BRIEF DESCRIPTION OF THE DRAWINGS
[0031] The present invention is further described using the accompanying drawings, but the embodiments in the accompanying drawings do not constitute any limitation to the present invention. A person skilled in the art can obtain other drawings based on the following drawings without creative work.
[0032] Figure 1 It is a schematic diagram of the method flow of the present invention.
[0033] Figure 2 It is a schematic diagram of system module connection of the present invention.
[0034] Figure 3 Schematic diagram of the functional relationship between the diamond quality impact assessment value and the diamond defect visibility assessment index involved in the embodiment of the present invention. DETAILED DESCRIPTION
[0035] The technical solutions in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, rather than all the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without making creative work are within the scope of protection of the present invention.
[0036] Reference Figure 1 As shown, the first aspect of the present invention provides a diamond defect detection data analysis method based on machine vision, comprising: collecting initial diamond defect detection data.
[0037] Based on the initial defect detection data of diamond, a comprehensive analysis is conducted to obtain the diamond defect visibility assessment index and defect severity assessment index, and based on the diamond defect visibility assessment index and defect severity assessment index, a comprehensive analysis is conducted to obtain the diamond quality impact assessment index.
[0038] The diamond quality is evaluated according to the diamond quality impact evaluation index, and the evaluation results are obtained and fed back.
[0039] Specifically, the initial defect detection data of diamond includes: the number of defects and shape feature data, position feature data and color feature data of each defect, and the reference information of the defects is obtained by comprehensive analysis.
[0040] In a specific embodiment, the diamond defect detection data is collected by a machine vision system, which is composed of a camera, a lens, a light source, an image acquisition card, an image processing software, a human-computer interaction interface, etc. The camera and the lens are used to capture a high-definition image of the diamond, the image acquisition card is used to convert the image signal captured by the camera into a digital signal, and the image recognition software is used to identify and mark the diamond defects.
[0041] In this embodiment, the shape feature data of each defect can be used to classify each defect. Each defect has a corresponding category, and it can also be used to locate the center point of each defect; the position feature data is used to mark the center point of the defect and then compare it with the center point of the diamond to obtain the deviation center distance; the color feature data is used to compare with the color of the diamond to obtain the color difference of each defect.
[0042] It should be understood that the shape feature data of the defect in this embodiment is a key indicator of measurement. It determines the type of diamond defect and then determines the calculation method of the diamond defect size, which can improve the reliability and scientificity of the reference information.
[0043] Specifically, based on the initial defect detection data of diamond, a comprehensive analysis is performed to obtain the diamond defect visibility evaluation index and defect severity evaluation index. The specific analysis process is: the center point position of each defect is obtained from the position feature data of each defect, the center point position of the diamond is used as the reference position, and the straight-line distance between the center point position of each defect and the reference position is collected, and marked as the deviation center distance of each defect.
[0044] The color of each defect is obtained from the color feature data of each defect, the color of the diamond is used as the reference color, and the color of each defect is compared with the color of the diamond to obtain the color difference between each defect and the diamond, which is marked as the color difference of each defect.
[0045] The diamond transparency is collected and comprehensively analyzed to obtain the diamond defect visibility evaluation index.
[0046] The defects are classified into different types according to their shape characteristic data, and the sizes of the defects in each type are obtained. At the same time, according to the number of defects, a comprehensive analysis is performed to obtain the defect severity assessment index of the diamond.
[0047] It should be understood that the specific numerical expression of the diamond defect visibility evaluation index in this example is:
[0048] Where A represents the diamond defect visibility evaluation index, e represents the natural constant, represents the color difference of the i-th defect, Indicates the set critical color difference, Indicates the transparency of diamond. Indicates the set critical transparency, represents the deviation center distance of the i-th defect, Indicates the set critical deviation center distance, Indicates the visibility assessment impact factor corresponding to the set color difference, Indicates the visibility assessment impact factor corresponding to the set transparency. It represents the visibility assessment influencing factor corresponding to the set deviation center distance, i represents the number of each defect, i=1,2,3,...,m, and m represents the total number of defects.
[0049] Table 1 Example of diamond flaw visibility evaluation index data Defective serial number Chromatic Aberration (E) transparency(%) Deviation center distance (mm) Diamond flaw visibility evaluation index 1 0.5 75 1 0.4 0.3 0.3 2.38 2 0.5 75 2 0.4 0.3 0.3 2.06 3 1 75 2 0.4 0.3 0.3 2.20 4 1 95 2 0.4 0.3 0.3 2.15 5 1 95 1.5 0.4 0.3 0.3 2.25 As shown in Table 1, the defect visibility evaluation index of diamond is determined by color difference, transparency, and deviation center distance. In a specific embodiment, m=1, and the critical color difference is set to , the critical transparency is set to 50%, the critical deviation center distance is set to 1.5mm, the visibility assessment impact factor corresponding to the color difference is set to 0.4, the visibility assessment impact factor corresponding to the transparency is set to 0.3, and the visibility assessment impact factor corresponding to the deviation center distance is set to 0.3. In this embodiment, the three important factors of color difference, transparency and deviation center distance are considered at the same time, which provides a more comprehensive perspective for the evaluation. By standardizing the color difference, transparency and deviation center distance, it is ensured that they are compared at the same level, which improves the fairness and comparability of the evaluation. By weighting the influence of color difference, transparency and deviation center distance, it reflects their relative importance in the evaluation index. The weights of different factors can be adjusted according to different needs, so that the model has good adaptability. At the same time, the use of exponential functions enables the evaluation index to better reflect the nonlinear change trend of defect visibility, which helps to capture subtle differences in defect visibility. In summary, this formula provides a method to quantitatively evaluate defect visibility. The weight factor and critical value can be adjusted according to actual conditions to meet the needs of different application scenarios. It can help engineers and designers better understand and optimize defect visibility during product development, thereby improving the overall product quality and user experience.
[0050] Furthermore, the transparency of the diamond in this embodiment plays a very critical role. For diamonds with high transparency, even if there are defects with large color difference or the defects are very close to the center point, the defects may not be so obvious due to the good penetration ability of light, and for defects with large color difference, if they are far away from the center point, they may not be so obvious due to the refraction and reflection effects of light. In short, high transparency has a positive effect on reducing the visibility of diamond defects, which can not only improve the beauty and value of diamonds, but also improve their durability and optical properties. Through a comprehensive analysis of the color difference of the defects, the deviation center distance and the transparency of the diamond, the overall quality of a diamond can be more accurately evaluated, providing a more comprehensive evaluation result, helping merchants, cutters and consumers make more informed decisions. This analysis method not only helps to improve the beauty and value of diamonds, but also promotes scientific research and technological progress in related fields.
[0051] It should be explained that in this embodiment Used to quantify the difference between the color of each defect and the color of the diamond, It is used to quantify the difference between the center point of each defect and the center point of the diamond. Different types of defects have different ways of locating the center point. For circular or elliptical defects, the center point is usually the center of the circle or the center of the ellipse; for irregular defects, the center of mass can be used as the center point. For linear defects, the midpoint of the line segment is usually used as the center point.
[0052] Furthermore, in this embodiment, the color difference of each defect is obtained by the color feature data of the defect, the deviation center distance of each defect is obtained by the position feature data of the defect, and the transparency of each defect is obtained from the machine vision system. The greater the color difference of the defect, the smaller the diamond transparency and deviation center distance, the greater the corresponding diamond defect visibility evaluation index, indicating that the diamond defect is more obvious.
[0053] Specifically, the color difference of the defect refers to the difference between the color of the defect itself and the main color of the diamond. If the color of the defect is close to the color of the diamond, the defect will be difficult to detect; conversely, if the color of the defect forms a sharp contrast with the color of the diamond, the defect will be more obvious. By evaluating the color difference of the defect color, the impact of the defect on the beauty of the diamond can be more accurately estimated. If the color of the defect is significantly different from the main color of the diamond, the visibility of the defect will increase. The deviation center distance refers to the position of the defect relative to the center of the diamond. Considering the position of the defect relative to the center of the diamond can help the evaluator understand whether the defect is in a conspicuous position. Defects in the center are often more conspicuous than defects on the edge. Transparency refers to the degree to which light penetrates the diamond. Considering the transparency of the diamond itself helps to understand the extent to which defects can be observed. Diamonds with high transparency will reduce the visibility of defects.
[0054] It should be understood that in this embodiment, a mapping set of color difference, transparency and deviation center distance of defects and corresponding visibility assessment influencing factors is constructed through the relationship between the color difference, transparency and deviation center distance of defects in historical data and the defect visibility evaluation index of diamond, and the real-time color difference, transparency and deviation center distance are input to obtain the corresponding visibility assessment influencing factors from the mapping set.
[0055] In a specific embodiment, the visibility evaluation influencing factors corresponding to the color difference, diamond transparency and deviation center distance of each defect have a value range between 0 and 1. By adjusting the value of the influencing factor, the influence of different factors on the final visibility evaluation index can be flexibly adjusted.
[0056] It should be explained that the specific numerical expression of the diamond defect severity evaluation index described in this embodiment is:
[0057] in, It represents the diamond defect severity assessment index, n represents the number of defects, represents the set critical number, represents the size of the jth type of the i-th defect, represents the critical size of the j-th type defect setting, Indicates the severity assessment impact factor corresponding to the set number of defects, It represents the severity assessment impact factor corresponding to the set size, j represents the number of each defect type, j=1,2,3,...,n, n represents the total number of defect types, i represents the number of each defect, i=1,2,3,...,m, m represents the total number of defects.
[0058] It should be explained that the calculation methods of the sizes of different types of defects in this embodiment are different. We need to match the type of defects in the diamond defect database according to the shape feature data of the defects, and then calculate the different types of defects in different ways. Among them, for linear defects, the length is calculated as the defect size, if it is a plane defect, the area is calculated as the defect size, and if it is a three-dimensional defect, the volume is calculated as the defect size.
[0059] Specifically, the number and size of defects directly affect the appearance of diamonds. The more defects there are and the larger their size, the more significant the impact on the overall aesthetics of the diamond. Large defects may cause light scattering, causing the diamond to lose its luster or produce dark areas, affecting its brightness and sparkle. The presence of defects will interfere with the penetration of light, especially when there are many defects or they are large in size, which will significantly reduce the transparency of the diamond. The decrease in transparency will cause the diamond to lose its unique optical effects, such as fire and sparkle. Large defects may become weaknesses in the internal structure of the diamond, increasing the risk of diamond breakage. The increase in the number of defects may also affect the overall structural stability and durability of the diamond. Using the number and size of defects as evaluation criteria can achieve standardization of the evaluation process and ensure consistency between different evaluators. The standardized evaluation system reduces the deviation of subjective judgment and improves the reliability of the evaluation results.
[0060] Furthermore, in this embodiment, the value range of the severity assessment influencing factor corresponding to the number and size of defects is between 0 and 1. By adjusting the value of the influencing factor, the influence of different factors on the final severity assessment index can be flexibly adjusted, thereby performing personalized severity index evaluation for different types of defects.
[0061] It should be understood that in this embodiment, a mapping set of the number and size of defects and the corresponding severity assessment influencing factors is constructed through the relationship between the number and size of defects in historical data and the defect severity assessment index of diamond, and the real-time number and size are input to obtain the corresponding severity assessment influencing factors from the mapping set.
[0062] It should be explained that the defect severity evaluation index of the diamond in this embodiment is jointly determined by the number and size of the defects. When the number and size of the defects are larger, the corresponding diamond defect severity evaluation index is larger, indicating that the severity of the defect is higher. In this embodiment, the two important factors of the number and size of defects are comprehensively considered, and the severity of the defects can be comprehensively evaluated. By standardizing the number and size of defects, it is ensured that they are compared at the same level, which improves the fairness and comparability of the evaluation. By weighting the impact of the number and size of defects, their relative importance in the evaluation index is reflected. The weights of different factors can be adjusted according to different needs, making the model very adaptable. By using the natural logarithm function, the evaluation index can better reflect the nonlinear change trend of the severity of the defects, which helps to capture subtle differences in severity. In summary, this formula provides a method for quantitatively evaluating the severity of defects. The weight factor and critical value can be adjusted according to actual conditions to ensure that the evaluation method is applicable to various defects, making the evaluation more accurate and targeted.
[0063] Specifically, the comprehensive analysis obtains the diamond quality impact assessment index, and the specific analysis process is: extracting the quality impact assessment impact factor corresponding to the diamond defect visibility assessment index and the quality impact assessment impact factor corresponding to the diamond defect severity assessment index from the diamond defect database.
[0064] Based on the diamond defect visibility assessment index and defect severity assessment index, a comprehensive analysis is conducted to obtain the diamond quality impact assessment index.
[0065] In a specific embodiment, the diamond defect visibility evaluation index is a quantitative index obtained by analyzing the color difference, transparency and deviation distance of the defect from the center point of the diamond, and is used to quantify the visibility of the diamond defect.
[0066] Specifically, the diamond defect severity assessment index is a quantitative index obtained by analyzing the number and size of defects, and is used to quantify the severity of diamond defects.
[0067] In a specific embodiment, the diamond quality impact evaluation index is specifically expressed as:
[0068] in, Indicates the diamond quality impact assessment value, Indicates the diamond defect visibility evaluation index. Indicates the diamond defect severity assessment index. Indicates the diamond quality impact assessment factor corresponding to the set diamond defect visibility assessment index, Indicates the diamond quality impact assessment factor corresponding to the set diamond defect severity assessment index.
[0069] like Figure 2 As shown, in a specific embodiment, =0.3, =0.5. =0.6, the functional relationship between the diamond quality impact assessment value and the diamond defect visibility assessment index is shown in curve a; when =1, the functional relationship between the diamond quality impact assessment value and the diamond defect visibility assessment index is shown in curve b; when =1.6, the functional relationship between the diamond quality impact assessment value and the diamond defect visibility assessment index is shown in curve c.
[0070] It should be explained that the diamond quality impact assessment value in this embodiment is a quantitative index obtained by analyzing the diamond defect visibility assessment index and severity assessment index, and is used to quantify the impact of defects on diamond quality.
[0071] It should be understood that in this embodiment, a mapping set of the diamond defect visibility assessment index and the diamond severity assessment index and the corresponding diamond quality impact assessment influencing factors is constructed through the relationship between the diamond defect visibility assessment index and the diamond severity assessment index in the historical data and the diamond quality impact assessment value, and the real-time visibility assessment index and the severity assessment index are input to obtain the corresponding diamond quality impact assessment influencing factors from the mapping set.
[0072] Furthermore, in this embodiment, the diamond quality impact assessment influencing factors corresponding to the diamond defect visibility assessment index and the diamond severity assessment index have a value range of 0 to 1. By adjusting the value of the influencing factor, the degree of influence of different factors on the diamond quality impact assessment value can be flexibly adjusted.
[0073] It should be understood that the use of the defect visibility assessment index and the severity assessment index in this embodiment can achieve standardization of the assessment process, which can ensure consistency between different assessors and reduce the deviation of subjective judgment. By carefully analyzing the visibility and severity of defects, the assessor can obtain more accurate data, which helps to more accurately assess the overall quality of diamonds. The standardized assessment method makes the comparison between different diamonds more objective and reliable. By using these standards, market transparency can be enhanced and consumers' trust in the diamond market can be improved. Consumers can understand the quality of diamonds based on these standards and make more informed purchasing decisions. The diamond quality impact assessment value determines the quality and value of diamonds. Improving the diamond quality impact assessment value helps to improve the competitiveness of diamonds in the market. By comparing it with the diamond quality impact assessment threshold, it helps to improve the quality of diamonds in a targeted manner.
[0074] It should be explained that the diamond quality impact assessment value in this embodiment is jointly determined by the diamond defect visibility assessment index and severity assessment index. The larger the defect visibility assessment index and severity assessment index of the defective diamond, the larger the corresponding diamond quality impact assessment value, indicating that the degree of impact on the diamond quality is greater. In this embodiment, the two important factors of defect visibility and severity are comprehensively considered, and the impact of defects on diamond quality can be comprehensively evaluated. By weighting the impact of the visibility assessment index and the severity assessment index, their relative importance in the assessment index is reflected, and the weights of different factors can be adjusted according to different needs, so that the model has good adaptability. By using the hyperbolic sine function, the evaluation value can better reflect the nonlinear change trend of quality impact, which helps to capture subtle differences in quality impact. In summary, this formula provides a method to quantitatively evaluate the impact of defects on diamond quality. By evaluating the impact of diamond quality on the evaluation value, the reliability and scientificity of the feedback are improved. Through effective data collection and processing, from multiple dimensions, the accuracy of the evaluation results is significantly improved, data waste is avoided, and the overall value of the data is enhanced. Users can more intuitively understand the importance of different diamond data and make more rational purchasing choices based on this.
[0075] The second aspect of the present invention provides a method and system for analyzing diamond defect detection data based on machine vision, comprising: The defect data collection module collects the initial defect detection data of diamonds based on the diamond defect database obtained by using machine vision technology, including the deviation center distance, color difference, transparency, number of diamond defects and size of each diamond defect.
[0076] The defect data analysis module is used to obtain the diamond defect visibility evaluation index according to the deviation center distance, color difference and transparency of each diamond defect collected, and to obtain the diamond defect severity evaluation index according to the number of diamond defects collected and the size of each defect, and then to obtain the diamond quality impact evaluation value through comprehensive analysis based on the diamond defect visibility evaluation index and severity evaluation index.
[0077] The diamond quality impact assessment module is used to compare the diamond quality impact assessment index with the diamond quality impact assessment threshold, and then obtain the impact of defects on diamond quality.
[0078] The diamond defect database is used to store diamond defect related data, including diamond quality impact assessment threshold, diamond quality impact assessment influencing factor, diamond defect color difference, defect transparency and other indicators. The data in the diamond defect database is obtained by collecting multiple diamond defect experimental data.
[0079] The above contents are merely examples and explanations of the structure of the present invention. The technicians in this technical field may make various modifications or additions to the specific embodiments described or replace them in a similar manner. As long as they do not deviate from the structure of the invention or exceed the scope defined by the present invention, they should all fall within the protection scope of the present invention.
Claims
1. Diamond defect detection data analysis method based on machine vision, It is characterized in that include: Collect initial detection data of diamond defects; Based on the initial defect detection data of diamonds, a comprehensive analysis is conducted to obtain the defect visibility evaluation index and defect severity evaluation index of diamonds, and based on the defect visibility evaluation index and defect severity evaluation index of diamonds, a comprehensive analysis is conducted to obtain the diamond quality impact evaluation index; The diamond quality is evaluated according to the diamond quality impact evaluation index, and the evaluation results are obtained and fed back.
2. According to the method for analyzing diamond defect detection data based on machine vision according to claim 1, Features: The initial defect detection data of the diamond specifically includes: the number of defects and shape feature data, position feature data and color feature data of each defect, and the reference information of the defects is obtained by comprehensive analysis.
3. According to the method for analyzing diamond defect detection data based on machine vision as claimed in claim 2, Features: According to the initial defect detection data of diamond, the defect visibility evaluation index and defect severity evaluation index of diamond are obtained through comprehensive analysis. The specific analysis process is as follows: The center point position of each defect is obtained from the position feature data of each defect, the center point position of the diamond is used as the reference position, and the straight-line distance between the center point position of each defect and the reference position is collected and marked as the deviation center distance of each defect; The color of each defect is obtained from the color characteristic data of each defect, the color of the diamond is used as the reference color, and the color of each defect is compared with the color of the diamond to obtain the color difference between each defect and the diamond, which is marked as the color difference of each defect; Collect the transparency of each diamond defect and conduct comprehensive analysis to obtain the diamond defect visibility evaluation index; The defects are classified into different types according to their shape characteristic data, and the sizes of the defects in each type are obtained. At the same time, according to the number of defects, a comprehensive analysis is performed to obtain the defect severity assessment index of the diamond.
4. The method for analyzing diamond defect detection data based on machine vision according to claim 1, Features: The comprehensive analysis results in the diamond quality impact assessment index, and the specific analysis process is as follows: Extracting the quality impact assessment factor corresponding to the diamond defect visibility assessment index and the quality impact assessment factor corresponding to the diamond defect severity assessment index from the diamond defect database; Based on the diamond defect visibility assessment index and defect severity assessment index, a comprehensive analysis is conducted to obtain the diamond quality impact assessment index.
5. The method for analyzing diamond defect detection data based on machine vision according to claim 1, Features: The diamond quality is evaluated according to the diamond quality impact evaluation index, and the specific evaluation process is as follows: A diamond quality impact assessment threshold is extracted from a diamond defect database, and a diamond quality impact assessment index is compared with the diamond quality impact assessment threshold. If the diamond quality impact assessment index is greater than or equal to the diamond quality impact assessment threshold, the diamond quality is assessed as unqualified; if the diamond quality impact assessment index is less than the diamond quality impact assessment threshold, the diamond quality is assessed as qualified.
6. The method for analyzing diamond defect detection data based on machine vision according to claim 3, Features: The diamond defect visibility evaluation index is a quantitative index obtained by analyzing the color difference of the defect, the diamond transparency and the deviation distance from the diamond center point, and is used to quantify the visibility of the diamond defect.
7. The method for analyzing diamond defect detection data based on machine vision according to claim 3, Features: The diamond defect severity assessment index is a quantitative index obtained by analyzing the number and size of defects, and is used to quantify the severity of diamond defects.
8. The method for analyzing diamond defect detection data based on machine vision according to claim 3, Features: The specific numerical expression of the diamond defect visibility evaluation index is: Where A represents the diamond defect visibility evaluation index, e represents the natural constant, represents the color difference of the i-th defect, Indicates the set critical color difference, Indicates the transparency of diamond. Indicates the set critical transparency, represents the deviation center distance of the i-th defect, Indicates the set critical deviation center distance, Indicates the visibility assessment impact factor corresponding to the set color difference, Indicates the visibility assessment impact factor corresponding to the set transparency. It represents the visibility assessment influencing factor corresponding to the set deviation center distance, i represents the number of each defect, i=1,2,3,...,m, and m represents the total number of defects.
9. The method for analyzing diamond defect detection data based on machine vision according to claim 3, Features: The specific numerical expression of the diamond defect severity evaluation index is: in, It represents the diamond defect severity assessment index, n represents the number of defects, represents the set critical number, represents the size of the jth type of the i-th defect, represents the critical size of the j-th type defect setting, Indicates the severity assessment impact factor corresponding to the set number of defects, It represents the severity assessment impact factor corresponding to the set size, j represents the type number of the defect, j=1,2,3,...,n, n represents the total number of types, i represents the number of each defect, i=1,2,3,...,m, m represents the total number of defects.
10. Diamond defect detection data analysis system based on machine vision, Features: include: The defect data collection module collects the initial defect detection data of diamonds based on the diamond defect database obtained by machine vision technology, including the deviation center distance of each diamond defect, color difference, diamond transparency, number of diamond defects and size of each defect; The defect data analysis module is used to obtain the diamond defect visibility evaluation index according to the deviation center distance, color difference and diamond transparency of each diamond defect collected, and obtain the diamond defect severity evaluation index according to the number of diamond defects collected and the size of each defect, and then obtain the diamond quality impact evaluation value through comprehensive analysis based on the diamond defect visibility evaluation index and severity evaluation index; A diamond quality impact assessment module is used to compare the diamond quality impact assessment index with the diamond quality impact assessment threshold to obtain the impact of defects on diamond quality; The diamond defect database is used to store diamond defect related data, including diamond quality impact assessment threshold, diamond quality impact assessment influencing factor, diamond defect color difference, diamond transparency and other indicators. The data in the diamond defect database is obtained by collecting multiple diamond defect experimental data.
