Electronic detonator module appearance detection method and system based on image technology
Through the electronic detonator module appearance inspection method based on image technology, the appearance and structural defects of the detonator are automatically detected, which solves the problem of low efficiency of traditional manual inspection, achieves efficient and accurate quality control, and ensures the reliability and safety of the product.
Patent Information
- Application Number
- CN202410856168.6
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-06-28
- Publication Date
- 2024-09-13
- Estimated Expiration
- 2044-06-28
AI Technical Summary
The traditional electronic detonator appearance inspection method relies on manual visual inspection, which is inefficient and cannot meet the needs of modern industry for efficient, accurate, and reliable quality control.
An electronic detonator module appearance detection method based on image technology is adopted, including multi-channel color space enhancement, topological structure analysis, deep feature extraction, three-dimensional model construction, appearance integrity assessment and connection line integrity assessment, automated through image processing and deep learning technology Detect detonators for cosmetic and structural defects.
It improves detection efficiency and accuracy, reduces errors caused by human factors, provides a more reliable quality control method, can quickly and objectively identify potential safety hazards and structural abnormalities, and ensures product reliability and safety.
Smart Images

Figure CN118397008B
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of image processing, and in particular to an electronic detonator module appearance detection method and system based on image technology. Background Art
[0002] Since the late 1990s, the rapid development of digital image processing technology and computer vision technology has promoted the widespread application of image detection technology in the industrial field. In fields such as mining, construction and oil extraction, electronic detonators play a key role as the core components of explosive devices. These devices must undergo precise appearance quality inspection to ensure their safety and reliability during use. With the increasing attention paid to the safety of explosives in modern society, the production quality control requirements for explosives such as electronic detonators are becoming increasingly stringent. Any defects or damage in appearance may lead to serious accidents, so the inspection of the appearance integrity of the detonator module is crucial. This inspection not only helps to ensure that the product is not damaged in any way during the manufacturing process, but also can timely detect potential defects before the product is assembled and used, thereby improving the reliability and safety of the product. Traditional appearance inspection methods mainly rely on manual visual inspection, which has the problem of low efficiency and cannot meet the needs of modern industrial production for efficient, accurate and reliable quality control. Summary of the invention
[0003] Based on this, it is necessary for the present invention to provide an electronic detonator module appearance detection method and system based on image technology to solve at least one of the above technical problems.
[0004] To achieve the above purpose, a method for detecting the appearance of an electronic detonator module based on image technology comprises the following steps:
[0005] Step S1: acquiring an electronic detonator image, and performing multi-channel color space enhancement on the electronic detonator image, thereby obtaining an electronic detonator enhanced image; dividing the electronic detonator enhanced image into detonator module ranges, thereby obtaining an electronic detonator module range image and an electronic detonator line range image;
[0006] Step S2: performing a topological structure analysis of the electronic detonator module based on the electronic detonator module range image and the electronic detonator line range image, thereby obtaining an electronic detonator structure model;
[0007] Step S3: performing multi-level depth feature extraction on the range image of the electronic detonator module to obtain depth feature data of the detonator module, and constructing a three-dimensional model of the electronic detonator module based on the range image of the electronic detonator module and the depth feature data of the detonator module;
[0008] Step S4: evaluating the module appearance integrity based on the three-dimensional model of the electronic detonator module, thereby obtaining module appearance integrity data;
[0009] Step S5: evaluating the integrity of the detonator module connection line based on the electronic detonator structure model and the electronic detonator module three-dimensional model, thereby obtaining module connection line integrity data;
[0010] Step S6: Based on the module connection line integrity data and the module appearance integrity data, the electronic detonator structure model is parameterized to describe the electronic detonator abnormal structure, so as to obtain the electronic detonator abnormal structure model.
[0011] The present invention can enhance the contrast and color vividness of the image by performing multi-channel color space enhancement on the electronic detonator image, so that the details in the image are more clearly visible. This enhancement helps to reduce noise interference in subsequent analysis and improve the quality of the image and the accuracy of the analysis. The electronic detonator image is divided into a detonator module range image and an electronic detonator line range image, which helps to locate and identify the various modules and lines inside the detonator. This division provides a clear target area for subsequent steps, making the subsequent analysis more accurate and effective. By analyzing the topological structure of the electronic detonator module, the relationship and connection mode between the various components can be understood. This analysis provides a basis for subsequent structural feature extraction and anomaly detection, making the subsequent analysis more in-depth and accurate. Through deep learning technology, more abundant and meaningful features, such as shape, texture, etc., can be extracted from the electronic detonator module image. These features can help distinguish different components and identify potential defects. By constructing a three-dimensional model of the electronic detonator module, the appearance and structure of the detonator can be presented in a three-dimensional manner. This three-dimensional model helps to more comprehensively understand the internal structure of the electronic detonator and provides a more objective basis for subsequent appearance integrity evaluation and structural analysis. By evaluating the appearance integrity of the 3D model, it is possible to detect whether there are defects or damage on the outside of the electronic detonator, such as cracks, wear, etc. This evaluation can quickly and objectively identify potential safety hazards, which helps to repair and improve the production process in a timely manner. By analyzing the integrity of the connection line, the stability and reliability of the internal connection of the electronic detonator can be ensured. This evaluation helps to prevent failures or accidents caused by connection problems and improve the reliability and safety of the product. By parametrically describing the abnormal structure, potential defects or abnormalities, such as abnormal connections, looseness, etc., can be accurately identified and located. This description helps to promptly discover and deal with potential safety hazards and improve the quality and reliability of the product. In summary, the application of these steps in the appearance quality inspection of electronic detonators not only improves the efficiency and accuracy of the inspection, but also reduces the errors caused by human factors, thereby providing a more reliable quality control method for modern industrial production.
[0012] Optionally, it is characterized in that step S1 specifically comprises:
[0013] Step S11: acquiring an electronic detonator image, and performing color space conversion on the electronic detonator image, thereby obtaining an electronic detonator conversion image;
[0014] Step S12: performing channel separation on the electronic detonator conversion image, thereby obtaining a brightness channel image and a chrominance channel image;
[0015] Step S13: performing intensity enhancement on the brightness channel image to obtain an intensity enhanced image; performing color enhancement on the chrominance channel image to obtain a color enhanced image;
[0016] Step S14: performing channel merging on the intensity enhanced image and the color enhanced image to obtain an electronic detonator enhanced image;
[0017] Step S15: dividing the electronic detonator enhanced image into detonator module ranges, thereby obtaining an electronic detonator module range image and an electronic detonator line range image.
[0018] The present invention changes the representation of an image by converting the image to another color space in order to better highlight certain features in the image or reduce noise. For example, converting an RGB image to a grayscale image can reduce the complexity of processing and can generally better highlight the brightness difference in the image. Separating different channels of an image usually separates brightness (brightness) and color information. This helps to process the brightness and color of the image separately, for example, sharpening or enhancing details on the brightness channel and color correction or enhancement on the color channel. By enhancing the intensity of the brightness channel, the contrast or details of the image can be increased and the image can be made clearer. Color enhancement of the chromaticity channel can improve the color performance of the image, making the color more vivid or closer to the real scene. The enhanced brightness and color channels are recombined into one image to obtain a final image that combines the brightness and color enhancement effects. Such an image has a better visual effect and is more suitable for subsequent analysis and processing. The electronic detonator enhanced image is divided into a detonator module range image and an electronic detonator line range image to better locate and identify the various modules and lines inside the detonator. This division provides a clear target area for subsequent analysis, making the subsequent structural analysis more accurate and effective.
[0019] Optionally, step S15 is specifically:
[0020] Step S151: performing background segmentation on the electronic detonator enhanced image to obtain an electronic detonator segmentation image;
[0021] Step S152: performing edge detection on the electronic detonator segmented image to obtain edge data of the electronic detonator image;
[0022] Step S153: acquiring electronic detonator design data, and extracting electronic detonator module shape features and electronic detonator circuit connection features from the electronic detonator design data, thereby obtaining electronic detonator module shape data and electronic detonator circuit connection data;
[0023] Step S154: performing similarity calculation on the electronic detonator image edge data and the electronic detonator module shape data, thereby obtaining the electronic detonator module edge data;
[0024] Step S155: dividing the electronic detonator segmentation image into module ranges according to the electronic detonator module edge data, thereby obtaining an electronic detonator module range image;
[0025] Step S156: dividing the line range based on the electronic detonator line connection data and the electronic detonator segmentation image, thereby obtaining the electronic detonator line range image.
[0026] Background segmentation of the present invention is a process of distinguishing a target object from a background in an image. In the processing of electronic detonator images, the detonator can be separated from the surrounding environment by background segmentation, so that subsequent analysis is more accurate and precise. Edge detection is a process of identifying the boundary of an object in an image. In the processing of electronic detonator images, the outline of the detonator can be determined by edge detection, thereby helping to identify its shape and structure, and further perform subsequent analysis and processing. Feature information related to module shape and line connection is extracted from the design data of the electronic detonator. These data are crucial for analyzing the structure and connection mode of the electronic detonator, and are helpful for subsequent module range division and line range division. By calculating the similarity between the edge data of the electronic detonator image and the module shape data in the design data, the corresponding relationship between each part in the detonator image and the design module can be determined, further helping to accurately segment each module of the detonator. Based on the module edge data, each module in the electronic detonator segmentation image can be accurately divided to form a module range image. This helps to further analyze and process each detonator module. Using the electronic detonator line connection data, the line in the electronic detonator segmentation image can be accurately divided to form a line range image. This helps to identify and analyze the wiring connections inside the electronic detonator and further understand its structure and function.
[0027] Optionally, step S156 is specifically:
[0028] Connecting edge points of the electronic detonator image edge data to obtain electronic detonator edge connection data;
[0029] Performing line matching on the electronic detonator edge connection data and the electronic detonator line connection data, thereby obtaining the detonator line edge connection data;
[0030] Interpolating the line connection points of the electronic detonator segmentation image according to the detonator line edge connection data, thereby obtaining line range data;
[0031] The line range pixel values of the electronic detonator segmentation image are extracted according to the line range data, so as to obtain the electronic detonator line range image.
[0032] By connecting the edge data of the electronic detonator image, the present invention can combine adjacent edge points into continuous edge segments, thereby forming a complete edge contour. This helps to more accurately represent the shape and structure of the electronic detonator, and provides a better basis for subsequent processing. By matching the edge connection data of the detonator with the line connection data, the corresponding relationship between each edge and line inside the detonator can be determined. This helps to understand the internal structure of the detonator, and further analyze the association between the line and the edge, providing more information for subsequent processing. Using the line edge connection data, the line connection points in the electronic detonator segmentation image can be interpolated to obtain more continuous and accurate line range data. This helps to accurately determine the position and shape of the line, and provides a more reliable data basis for subsequent analysis and processing. Based on the line range data, pixel values related to the line can be extracted from the electronic detonator segmentation image to form an electronic detonator line range image. This helps to distinguish the line in the detonator from other parts, making the analysis and processing of the line more simple and effective.
[0033] Optionally, step S2 specifically includes:
[0034] Step S21: extracting the spatial features of the line connection points of the electronic detonator line range image, thereby obtaining the spatial data of the electronic detonator line connection points;
[0035] Step S22: extracting module space features from the electronic detonator module range image, thereby obtaining electronic detonator module space data;
[0036] Step S23: performing spatial distance calculation on the spatial data of the electronic detonator line connection points and the spatial data of the electronic detonator modules, thereby obtaining spatial distance data;
[0037] Step S24: matching the connection point spatial data of the electronic detonator line connection point and the electronic detonator module spatial data according to the spatial distance data, thereby obtaining the detonator module connection relationship data;
[0038] Step S25: Perform topological structure analysis based on the detonator module connection relationship data to obtain an electronic detonator structure model.
[0039] The present invention can capture the geometric features, position information, etc. of the line connection points by performing spatial feature extraction on the line range image of the electronic detonator. These features are crucial for subsequent spatial analysis and connection point matching. In electronic detonators, different modules are usually included, such as circuit boards, batteries, etc. Spatial feature extraction on the module range image can obtain information such as the position, size, shape, etc. of each module, which is helpful for understanding the internal structure of the detonator. After obtaining the line connection point spatial data and module spatial data, spatial distance calculation can be performed to determine the relative position relationship between the line connection point and each module. These distance information provides clues for subsequent connection point matching. Based on the spatial distance data, the line connection point and the module are matched to determine the association relationship between the line connection point and the module to which it belongs. This helps to understand the internal structure of the detonator and provides a basis for further analysis and modeling. According to the matching relationship of the connection points, topological structure analysis can reveal the internal organizational structure of the electronic detonator, including the layout of the line, the connection method of the module, etc. This helps to understand the function and working principle of the detonator and provides an important reference for design and optimization.
[0040] Optionally, step S3 specifically includes:
[0041] Step S31: performing convolution structure calculation based on the electronic detonator module range image, thereby obtaining an image convolution neural network;
[0042] Step S32: performing module structure convolution layer feature extraction and module category fully connected layer feature extraction on the electronic detonator module range image through an image convolution neural network, thereby obtaining module structure feature data and module category feature data;
[0043] Step S33: performing feature fusion based on the module structure feature data and the module category feature data, thereby obtaining the detonator module depth feature data;
[0044] Step S34: creating a three-dimensional model based on the range image of the electronic detonator module, thereby obtaining a three-dimensional model of the module;
[0045] Step S35: Optimizing the module structure characteristics of the module three-dimensional model according to the depth characteristic data of the detonator module, thereby obtaining the electronic detonator module three-dimensional model.
[0046] The present invention can design a CNN structure suitable for the task by performing convolution structure calculation on the range image of the electronic detonator module. The key to this step is to determine the parameters of the CNN, such as the number of layers, the size of the convolution kernel, and the pooling method, to ensure that the network can effectively extract useful features from the image. The constructed CNN structure is used to extract features from the range image of the electronic detonator module. By extracting the module structure features through the convolution layer, the local information and structural features in the image can be captured; and by extracting the module category features through the fully connected layer, the category information to which the module belongs can be obtained. In this way, the image can be converted into a feature vector with semantic information. The module structure feature data and the module category feature data extracted from the CNN are fused. This helps to combine information from different sources, improve the expression ability and discrimination of the features, and thus better describe the characteristics of the detonator module. Based on the range image of the electronic detonator module, a three-dimensional model can be created using computer vision and image processing technology. Such a three-dimensional model can more intuitively present the appearance and structure of the detonator module, providing a basis for subsequent analysis and application. The created module three-dimensional model is optimized using the deep feature data of the detonator module extracted from the CNN. This includes adjusting the model's geometric structure, improving the model's detail representation, etc. to better match the feature data extracted from the image, thereby obtaining a more precise and accurate 3D model.
[0047] Optionally, step S4 is specifically:
[0048] Step S41: evaluating the module surface smoothness of the electronic detonator module three-dimensional model, thereby obtaining module surface smoothness data;
[0049] Step S42: extracting the model edge structure of the electronic detonator module three-dimensional model, thereby obtaining a module edge structure model;
[0050] Step S43: performing module edge crack detection on the module edge structure model to obtain module edge crack data, and performing module edge integrity assessment based on the module edge crack data to obtain module edge integrity data;
[0051] Step S44: constructing an integrity assessment system based on the module edge integrity data and the module surface smoothness data;
[0052] Step S45: Perform module integrity assessment on the three-dimensional model of the electronic detonator module through the integrity assessment system, thereby obtaining module appearance integrity data.
[0053] The present invention can detect whether there are obvious unevenness, roughness and other problems on the module surface by evaluating the surface smoothness of the three-dimensional model of the electronic detonator module. This helps to evaluate the appearance quality of the module, ensure that its outer surface meets the design requirements, and improve the aesthetics and texture of the product. The edge structure of the three-dimensional model of the electronic detonator module is extracted. By identifying the edge structure of the model, the geometric shape and contour of the module can be better understood, providing a basis for subsequent crack detection. Crack detection is performed on the edge structure of the model. This helps to find cracks, gaps or other defects on the edge of the module, and evaluate the impact of these cracks on the integrity of the module edge. Through this evaluation, problems that may affect the function and safety of the product can be discovered and repaired early. An integrity evaluation system is constructed based on the module edge integrity data and surface smoothness data. This evaluation system includes indicators and standards for quantitatively evaluating the appearance and structural integrity of the module, thereby providing a systematic framework for subsequent evaluation. The three-dimensional model of the electronic detonator module is comprehensively evaluated through the integrity evaluation system to obtain the appearance integrity data of the module. This evaluation result can provide guidance for quality control in the manufacturing process, ensuring that the produced modules meet the specification requirements and have good appearance and structural integrity.
[0054] Optionally, step S5 specifically includes:
[0055] Step S51: extracting the connection line structure of the electronic detonator structure model, thereby obtaining the detonator connection line structure model;
[0056] Step S52: Associating the detonator connection line structure model and the electronic detonator module three-dimensional model with the detonator module connection line, thereby obtaining module connection line data;
[0057] Step S53: Perform connectivity integrity assessment on the module connection line data, thereby obtaining module connection line integrity data.
[0058] The present invention extracts the structure of the connection line from the electronic detonator structural model. This helps to understand the layout and structure of the connection line inside the detonator, and provides a basis for the subsequent connection line association. The detonator connection line structural model is associated with the three-dimensional model of the electronic detonator module. Through this association, the actual connection relationship between the connection line and the detonator module can be simulated, so as to obtain the data of the module connection line. This helps to ensure that the layout of the connection line matches the module structure and evaluates the reliability of the connection line. The module connection line data is evaluated for connectivity integrity. This includes checking the connectivity of the connection line, that is, whether the electrical signal can be transmitted normally in the connection line, and whether there is a circuit break, short circuit or other connectivity problems. Through this evaluation, it can be ensured that the design and layout of the connection line can meet the functional requirements of the detonator module and ensure its reliability and stability during use.
[0059] Optionally, step S6 specifically includes:
[0060] Step S61: performing low integrity line statistics on the module connection line integrity data, thereby obtaining low integrity connection line data;
[0061] Step S62: performing low-integrity appearance module statistics on the module appearance integrity data, thereby obtaining low-integrity appearance module data;
[0062] Step S63: performing an abnormal structure parameter description on the electronic detonator structure model according to the low-integrity connection line data and the low-integrity appearance module data, thereby obtaining the abnormal structure model of the electronic detonator.
[0063] The present invention identifies the connection lines with low integrity by statistically analyzing the integrity data of the module connection lines. This can timely discover the abnormalities in the connection lines so as to carry out repairs or improvements to avoid affecting the functions and performance of the electronic detonator module. The module appearance integrity data is statistically analyzed to identify the modules with defects or damage in appearance. Appearance defects can cause parts to be unstable or easily damaged, thereby affecting the reliability and durability of the electronic detonator module. This can timely discover and replace defective modules to ensure the appearance quality and functional integrity of the product. According to the low-integrity connection line data and the low-integrity appearance module data, the electronic detonator structure model is parameterized to describe the abnormal structure. This includes recording and describing the abnormal characteristics, location, impact range and other information of the connection lines and appearance modules. Through this description, the impact of abnormal structures on product performance can be more accurately understood, and a reference can be provided for subsequent repair or improvement work.
[0064] Optionally, the present specification also provides an electronic detonator module appearance detection system based on image technology, which is used to perform the electronic detonator module appearance detection method based on image technology as described above. The electronic detonator module appearance detection system based on image technology includes:
[0065] The detonator module range division module is used to obtain the electronic detonator image and perform multi-channel color space enhancement on the electronic detonator image to obtain the electronic detonator enhanced image; perform detonator module range division on the electronic detonator enhanced image to obtain the electronic detonator module range image and the electronic detonator line range image;
[0066] A topology structure analysis module is used to perform a topology structure analysis of the electronic detonator module based on the electronic detonator module range image and the electronic detonator line range image, so as to obtain an electronic detonator structure model;
[0067] A module three-dimensional model construction module is used to perform multi-level depth feature extraction on the range image of the electronic detonator module, thereby obtaining the depth feature data of the detonator module, and construct a three-dimensional model of the electronic detonator module based on the range image of the electronic detonator module and the depth feature data of the detonator module;
[0068] An appearance integrity assessment module is used to assess the appearance integrity of the module based on the three-dimensional model of the electronic detonator module, thereby obtaining the appearance integrity data of the module;
[0069] A circuit integrity assessment module is used to assess the integrity of the connection circuit of the detonator module based on the electronic detonator structure model and the three-dimensional model of the electronic detonator module, so as to obtain the module connection circuit integrity data;
[0070] The abnormal structure parameterized description module is used to perform a parameterized description of the abnormal structure of the electronic detonator based on the module connection line integrity data and the module appearance integrity data, so as to obtain the abnormal structure model of the electronic detonator.
[0071] The electronic detonator module appearance detection system based on image technology of the present invention can implement any one of the electronic detonator module appearance detection methods based on image technology of the present invention, and is used to combine the operation and signal transmission medium between various modules to complete the electronic detonator module appearance detection method based on image technology. The internal modules of the system cooperate with each other to improve the accuracy of the electronic detonator module appearance detection. BRIEF DESCRIPTION OF THE DRAWINGS
[0072] Other features, objects and advantages of the present invention will become more apparent from the detailed description of non-limiting embodiments thereof made with reference to the following drawings:
[0073] Figure 1 It is a schematic diagram of the steps of the electronic detonator module appearance detection method based on image technology of the present invention;
[0074] Figure 2 Detailed step flow diagram of step S1 in the present invention;
[0075] Figure 3 Detailed step flow diagram of step S2 in the present invention.
[0076] The realization of the purpose, functional features and advantages of the present invention will be further explained in conjunction with embodiments and with reference to the accompanying drawings. DETAILED DESCRIPTION
[0077] The following is a clear and complete description of the technical method of the present invention in conjunction with the accompanying drawings. Obviously, the described embodiments are part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by technicians in this field without creative work are within the scope of protection of the present invention.
[0078] In addition, the accompanying drawings are only schematic illustrations of the present invention and are not necessarily drawn to scale. The same reference numerals in the figures represent the same or similar parts, and their repeated description will be omitted. Some of the block diagrams shown in the accompanying drawings are functional entities and do not necessarily correspond to physically or logically independent entities. The functional entities can be implemented in software form, or implemented in one or more hardware modules or integrated circuits, or implemented in different networks and / or processor methods and / or microcontroller methods.
[0079] It should be understood that, although the terms "first", "second", etc. may be used herein to describe various units, these units should not be limited by these terms. These terms are used only to distinguish one unit from another unit. For example, without departing from the scope of the exemplary embodiments, the first unit may be referred to as the second unit, and similarly the second unit may be referred to as the first unit. The term "and / or" used herein includes any and all combinations of one or more of the listed associated items.
[0080] To achieve this, please refer to Figures 1 to 3 The present invention provides an electronic detonator module appearance detection method based on image technology, the method comprising the following steps:
[0081] Step S1: acquiring an electronic detonator image, and performing multi-channel color space enhancement on the electronic detonator image, thereby obtaining an electronic detonator enhanced image; dividing the electronic detonator enhanced image into detonator module ranges, thereby obtaining an electronic detonator module range image and an electronic detonator line range image;
[0082] In this embodiment, an image of the electronic detonator is obtained by a high-resolution camera or scanner. Then, the image is enhanced using a multi-channel color space enhancement technique, such as RGB, HSV or Lab. For example, histogram equalization can be used to enhance the contrast of the image, or a filter can be used to reduce noise. Next, an image segmentation algorithm based on edge detection and region growing is used to separate the module area of the electronic detonator from the line area. For the module area, morphological processing can be used to fill the holes and extract the boundaries of the module for subsequent analysis.
[0083] Step S2: performing a topological structure analysis of the electronic detonator module based on the electronic detonator module range image and the electronic detonator line range image, thereby obtaining an electronic detonator structure model;
[0084] In this embodiment, the electronic detonator module range image and line range image obtained by segmentation are used to perform topological structure analysis. First, the key feature points of each component are detected in the module range image using a feature point detection algorithm such as SIFT or SURF. Then, the connection relationship between the components is established by matching these feature points. In the line range image, Hough transform or RANSAC algorithm can be used to detect straight lines, and the topological structure of the connection line is established based on the intersection relationship of the straight lines.
[0085] Step S3: performing multi-level depth feature extraction on the range image of the electronic detonator module to obtain depth feature data of the detonator module, and constructing a three-dimensional model of the electronic detonator module based on the range image of the electronic detonator module and the depth feature data of the detonator module;
[0086] In this embodiment, multi-level deep feature extraction is performed on the electronic detonator module range image. A pre-trained deep neural network model, such as VGG, ResNet or MobileNet, can be used to extract features from the image. The module range image is input into the network, and the feature map output by the convolution layer of the network is used as the deep feature data. Then, based on these deep feature data, combined with the module range image, a three-dimensional reconstruction algorithm (such as structured light or stereo vision) is used to construct a three-dimensional model of the electronic detonator module.
[0087] Step S4: evaluating the module appearance integrity based on the three-dimensional model of the electronic detonator module, thereby obtaining module appearance integrity data;
[0088] In this embodiment, the appearance integrity assessment is performed by comparing the three-dimensional model of the electronic detonator module with the standard model. The surface differences between the models are calculated using the three-dimensional model comparison technology. The normal information and curvature information in the model are used to detect the existence of bumps, damage or foreign matter. In combination with deep learning methods, such as convolutional neural networks, abnormal features are classified and identified to generate module appearance integrity data.
[0089] Step S5: evaluating the integrity of the detonator module connection line based on the electronic detonator structure model and the electronic detonator module three-dimensional model, thereby obtaining module connection line integrity data;
[0090] In this embodiment, the electronic detonator structure model and three-dimensional model are used to evaluate the integrity of the connection line. First, a circuit model of the connection line is established based on the position and connection relationship of the components in the structure model. Then, the circuit is simulated and analyzed using circuit simulation software, such as SPICE. Problems such as open circuit, short circuit or poor contact are detected, and connection line integrity data is generated.
[0091] Step S6: Based on the module connection line integrity data and the module appearance integrity data, the electronic detonator structure model is parameterized to describe the electronic detonator abnormal structure, so as to obtain the electronic detonator abnormal structure model.
[0092] In this embodiment, based on the connection line integrity data and the appearance integrity data, the electronic detonator structure model is parameterized to describe the abnormal structure. According to the abnormal detection results, the characteristic parameters of the abnormal structure, such as position, shape and size, are extracted. Using these parameters, a mathematical model of the abnormal structure is established, and the degree of its influence on the function of the electronic detonator is analyzed. For example, by establishing the association between the abnormal structure and the circuit signal transmission, the influence of the abnormal structure on the signal transmission is evaluated.
[0093] The present invention can enhance the contrast and color vividness of the image by performing multi-channel color space enhancement on the electronic detonator image, so that the details in the image are more clearly visible. This enhancement helps to reduce noise interference in subsequent analysis and improve the quality of the image and the accuracy of the analysis. The electronic detonator image is divided into a detonator module range image and an electronic detonator line range image, which helps to locate and identify the various modules and lines inside the detonator. This division provides a clear target area for subsequent steps, making the subsequent analysis more accurate and effective. By analyzing the topological structure of the electronic detonator module, the relationship and connection mode between the various components can be understood. This analysis provides a basis for subsequent structural feature extraction and anomaly detection, making the subsequent analysis more in-depth and accurate. Through deep learning technology, more abundant and meaningful features, such as shape, texture, etc., can be extracted from the electronic detonator module image. These features can help distinguish different components and identify potential defects. By constructing a three-dimensional model of the electronic detonator module, the appearance and structure of the detonator can be presented in a three-dimensional manner. This three-dimensional model helps to more comprehensively understand the internal structure of the electronic detonator and provides a more objective basis for subsequent appearance integrity evaluation and structural analysis. By evaluating the appearance integrity of the 3D model, it is possible to detect whether there are defects or damage on the outside of the electronic detonator, such as cracks, wear, etc. This evaluation can quickly and objectively identify potential safety hazards, which helps to repair and improve the production process in a timely manner. By analyzing the integrity of the connection line, the stability and reliability of the internal connection of the electronic detonator can be ensured. This evaluation helps to prevent failures or accidents caused by connection problems and improve the reliability and safety of the product. By parametrically describing the abnormal structure, potential defects or abnormalities, such as abnormal connections, looseness, etc., can be accurately identified and located. This description helps to promptly discover and deal with potential safety hazards and improve the quality and reliability of the product. In summary, the application of these steps in the appearance quality inspection of electronic detonators not only improves the efficiency and accuracy of the inspection, but also reduces the errors caused by human factors, thereby providing a more reliable quality control method for modern industrial production.
[0094] Optionally, it is characterized in that step S1 specifically comprises:
[0095] Step S11: acquiring an electronic detonator image, and performing color space conversion on the electronic detonator image, thereby obtaining an electronic detonator conversion image;
[0096] In this embodiment, a high-resolution camera or scanner is used to obtain an image of the electronic detonator. Then, the image is converted from the RGB color space to the Lab color space using image processing software, such as OpenCV. The Lab color space has a brightness channel (L channel) and chrominance channels (a and b channels) that are more consistent with human visual perception, which helps to extract the characteristics of the electronic detonator.
[0097] Step S12: performing channel separation on the electronic detonator conversion image, thereby obtaining a brightness channel image and a chrominance channel image;
[0098] In this embodiment, the image in the Lab color space is channel-separated to obtain a brightness channel image and a chromaticity channel image. By utilizing the characteristics of the Lab color space, the L channel image and the a and b channel images can be separated through simple matrix operations. In this way, the brightness and color information of the electronic detonator image can be obtained respectively.
[0099] Step S13: performing intensity enhancement on the brightness channel image to obtain an intensity enhanced image; performing color enhancement on the chrominance channel image to obtain a color enhanced image;
[0100] In this embodiment, for the brightness channel image, the histogram equalization technology is used to enhance its intensity, and the contrast and brightness distribution of the image are enhanced. By applying the CLAHE (contrast limited adaptive histogram equalization) algorithm, the problems of over-enhancement and noise amplification can be avoided. For the chrominance channel image, the color enhancement can be performed by using methods such as histogram stretching or gamma correction to enhance the color information of the electronic detonator image.
[0101] Step S14: performing channel merging on the intensity enhanced image and the color enhanced image to obtain an electronic detonator enhanced image;
[0102] In this embodiment, the intensity enhanced image and the color enhanced image are channel-merged to generate an enhanced image of the electronic detonator. Using OpenCV or a similar image processing library, the enhanced brightness channel image and chromaticity channel image are re-merged into a Lab color space image, and then the Lab image is converted back to the RGB color space to obtain the final electronic detonator enhanced image.
[0103] Step S15: dividing the electronic detonator enhanced image into detonator module ranges, thereby obtaining an electronic detonator module range image and an electronic detonator line range image.
[0104] In this embodiment, the electronic detonator enhanced image is divided into detonator module ranges. An image segmentation algorithm, such as threshold-based segmentation, edge detection algorithm (such as Canny edge detection) or region growing algorithm, can be used to segment the electronic detonator image into detonator module regions and line regions. These algorithms can perform region segmentation based on image features such as brightness and color to obtain an electronic detonator module range image and an electronic detonator line range image.
[0105] The present invention changes the representation of an image by converting the image to another color space in order to better highlight certain features in the image or reduce noise. For example, converting an RGB image to a grayscale image can reduce the complexity of processing and can generally better highlight the brightness difference in the image. Separating different channels of an image usually separates brightness (brightness) and color information. This helps to process the brightness and color of the image separately, for example, sharpening or enhancing details on the brightness channel and color correction or enhancement on the color channel. By enhancing the intensity of the brightness channel, the contrast or details of the image can be increased and the image can be made clearer. Color enhancement of the chromaticity channel can improve the color performance of the image, making the color more vivid or closer to the real scene. The enhanced brightness and color channels are recombined into one image to obtain a final image that combines the brightness and color enhancement effects. Such an image has a better visual effect and is more suitable for subsequent analysis and processing. The electronic detonator enhanced image is divided into a detonator module range image and an electronic detonator line range image to better locate and identify the various modules and lines inside the detonator. This division provides a clear target area for subsequent analysis, making the subsequent structural analysis more accurate and effective.
[0106] Optionally, step S15 is specifically:
[0107] Step S151: performing background segmentation on the electronic detonator enhanced image to obtain an electronic detonator segmentation image;
[0108] In this embodiment, the electronic detonator enhanced image is processed by background segmentation technology to distinguish the detonator from the background, thereby obtaining an electronic detonator segmentation image. It can be pixel-based threshold segmentation, in which the detonator in the image is separated from the background by setting a threshold. A better method is image segmentation based on machine learning, such as using a convolutional neural network (CNN) to train a model so that it can accurately identify the detonator and the background.
[0109] Step S152: performing edge detection on the electronic detonator segmented image to obtain edge data of the electronic detonator image;
[0110] In this embodiment, an edge detection algorithm, such as Canny edge detection, is applied to the electronic detonator segmentation image to obtain edge data of the electronic detonator. These edge data can determine the outline of the detonator by detecting changes in pixel values in the image, providing important information about the shape and structure of the detonator.
[0111] Step S153: acquiring electronic detonator design data, and extracting electronic detonator module shape features and electronic detonator circuit connection features from the electronic detonator design data, thereby obtaining electronic detonator module shape data and electronic detonator circuit connection data;
[0112] In this embodiment, the electronic detonator module shape features and circuit connection features are extracted from the electronic detonator design data. The module shape features may include the size, shape and geometric features of the detonator, while the circuit connection features may describe the layout and connection mode of the internal circuit of the detonator. These features may be extracted from CAD design files or other design documents.
[0113] Step S154: performing similarity calculation on the electronic detonator image edge data and the electronic detonator module shape data, thereby obtaining the electronic detonator module edge data;
[0114] In this embodiment, a similarity calculation method is used to compare the similarity between the edge data of the electronic detonator image and the shape data of the electronic detonator module, thereby obtaining the edge data of the electronic detonator module. Various similarity measurement methods, such as Euclidean distance, correlation coefficient or structural similarity index (SSI), can be used to quantify the similarity between the edge data and the module shape data.
[0115] Step S155: dividing the electronic detonator segmentation image into module ranges according to the electronic detonator module edge data, thereby obtaining an electronic detonator module range image;
[0116] In this embodiment, the electronic detonator segmentation image is divided into module ranges according to the edge data of the electronic detonator module. This can be achieved by drawing a module boundary box on the segmentation image or using a segmentation algorithm to segment the detonator into different areas. The module range image can clearly show the position and shape of each electronic detonator module.
[0117] Step S156: dividing the line range based on the electronic detonator line connection data and the electronic detonator segmentation image, thereby obtaining the electronic detonator line range image.
[0118] In this embodiment, based on the electronic detonator line connection data and the electronic detonator segmentation image, the detonator line range is divided. This involves distinguishing the line from other parts of the detonator, and usually requires analyzing the connection mode and layout of the line. An image processing algorithm can be used to identify the line and separate it from the detonator to obtain an electronic detonator line range image.
[0119] Background segmentation of the present invention is a process of distinguishing a target object from a background in an image. In the processing of electronic detonator images, the detonator can be separated from the surrounding environment by background segmentation, so that subsequent analysis is more accurate and precise. Edge detection is a process of identifying the boundary of an object in an image. In the processing of electronic detonator images, the outline of the detonator can be determined by edge detection, thereby helping to identify its shape and structure, and further perform subsequent analysis and processing. Feature information related to module shape and line connection is extracted from the design data of the electronic detonator. These data are crucial for analyzing the structure and connection mode of the electronic detonator, and are helpful for subsequent module range division and line range division. By calculating the similarity between the edge data of the electronic detonator image and the module shape data in the design data, the corresponding relationship between each part in the detonator image and the design module can be determined, further helping to accurately segment each module of the detonator. Based on the module edge data, each module in the electronic detonator segmentation image can be accurately divided to form a module range image. This helps to further analyze and process each detonator module. Using the electronic detonator line connection data, the line in the electronic detonator segmentation image can be accurately divided to form a line range image. This helps to identify and analyze the wiring connections inside the electronic detonator and further understand its structure and function.
[0120] Optionally, step S156 is specifically:
[0121] Connecting edge points of the electronic detonator image edge data to obtain electronic detonator edge connection data;
[0122] In this embodiment, edge data can be extracted from the electronic detonator image by using methods such as Canny edge detection. Then, these edge points are connected into edge lines, which can be connected using Hough transform or straight line fitting algorithm. The connected data contains the continuous line segment information of the edge of the electronic detonator, forming the electronic detonator edge connection data. For example, Hough transform can be used to connect the edge points into straight line segments, and then a certain threshold can be set to filter out the straight line segments that meet the conditions as edge connection data.
[0123] Performing line matching on the electronic detonator edge connection data and the electronic detonator line connection data, thereby obtaining the detonator line edge connection data;
[0124] In this embodiment, the electronic detonator edge connection data is matched with the electronic detonator line connection data to determine the correspondence between the electronic detonator edge and the line. This involves a line segment matching algorithm or a shape matching algorithm. For example, the matching can be performed by calculating the similarity or distance between the two data sets, and then the detonator line edge connection data is obtained according to the matching result.
[0125] Interpolating the line connection points of the electronic detonator segmentation image according to the detonator line edge connection data, thereby obtaining line range data;
[0126] In this embodiment, the detonator line edge connection data is used to interpolate the line connection points of the electronic detonator segmentation image. This means finding the pixels corresponding to the line connection points on the image and interpolating them according to their position information. This can be achieved through an interpolation algorithm, such as bilinear interpolation or cubic spline interpolation. After interpolation, more accurate line range data can be obtained for subsequent processing and analysis.
[0127] The line range pixel values of the electronic detonator segmentation image are extracted according to the line range data, so as to obtain the electronic detonator line range image.
[0128] In this embodiment, according to the line range data, the pixel values within the line range are extracted from the electronic detonator segmentation image to form the electronic detonator line range image. This can be achieved by pixel value traversal and region marking algorithm. The extracted image will clearly show the outline and structure of the electronic detonator line, which facilitates subsequent analysis and identification.
[0129] By connecting the edge data of the electronic detonator image, the present invention can combine adjacent edge points into continuous edge segments, thereby forming a complete edge contour. This helps to more accurately represent the shape and structure of the electronic detonator, and provides a better basis for subsequent processing. By matching the edge connection data of the detonator with the line connection data, the corresponding relationship between each edge and line inside the detonator can be determined. This helps to understand the internal structure of the detonator, and further analyze the association between the line and the edge, providing more information for subsequent processing. Using the line edge connection data, the line connection points in the electronic detonator segmentation image can be interpolated to obtain more continuous and accurate line range data. This helps to accurately determine the position and shape of the line, and provides a more reliable data basis for subsequent analysis and processing. Based on the line range data, pixel values related to the line can be extracted from the electronic detonator segmentation image to form an electronic detonator line range image. This helps to distinguish the line in the detonator from other parts, making the analysis and processing of the line more simple and effective.
[0130] Optionally, step S2 specifically includes:
[0131] Step S21: extracting the spatial features of the line connection points of the electronic detonator line range image, thereby obtaining the spatial data of the electronic detonator line connection points;
[0132] In this embodiment, the spatial features of the line connection points are extracted from the electronic detonator line range image. These features may include the coordinates, relative positions, angles, curvatures, etc. of the connection points. For example, image processing techniques such as contour detection and morphological operations can be used to identify the connection points and extract their spatial features. Specifically, the Harris corner point detection algorithm can be used to detect the line connection points, and then the coordinates and other geometric features of each connection point can be calculated.
[0133] Step S22: extracting module space features from the electronic detonator module range image, thereby obtaining electronic detonator module space data;
[0134] In this embodiment, the spatial features of the module are extracted from the range image of the electronic detonator module. These features may include the shape, size, position, etc. of the module. For example, morphological operations and region labeling algorithms may be used to extract the contour and shape information of the module. Specifically, the contour extraction algorithm may be used to obtain the outer contour of the module and calculate its area, perimeter, center position, and other features.
[0135] Step S23: performing spatial distance calculation on the spatial data of the electronic detonator line connection points and the spatial data of the electronic detonator modules, thereby obtaining spatial distance data;
[0136] In this embodiment, spatial distance calculation is performed on the line connection point spatial data and the module spatial data to obtain distance information between them. This can be achieved by calculating the Euclidean distance or other geometric distances. For example, the distance between each line connection point and each module can be calculated to form a distance matrix.
[0137] Step S24: matching the connection point spatial data of the electronic detonator line connection point and the electronic detonator module spatial data according to the spatial distance data, thereby obtaining the detonator module connection relationship data;
[0138] In this embodiment, the line connection point spatial data and the module spatial data are matched. This means finding the correspondence between the nearest neighbor line connection point and the module. Matching can be achieved by setting a threshold or using a nearest neighbor algorithm. For example, the line connection point with the closest distance can be selected for matching with the module according to the distance matrix.
[0139] Step S25: Perform topological structure analysis based on the detonator module connection relationship data to obtain an electronic detonator structure model.
[0140] In this embodiment, the topological structure analysis of the electronic detonator is performed based on the obtained detonator module connection relationship data. This includes building a connection diagram, identifying the trunk path, detecting closed loops, etc. For example, the connection relationship data can be analyzed using a graph theory algorithm to find out the connection relationship between the modules and the topological structure between them. In this way, an electronic detonator structure model can be formed, including information on the connection relationship and the topological structure.
[0141] The present invention can capture the geometric features, position information, etc. of the line connection points by performing spatial feature extraction on the line range image of the electronic detonator. These features are crucial for subsequent spatial analysis and connection point matching. In electronic detonators, different modules are usually included, such as circuit boards, batteries, etc. Spatial feature extraction on the module range image can obtain information such as the position, size, shape, etc. of each module, which is helpful for understanding the internal structure of the detonator. After obtaining the line connection point spatial data and module spatial data, spatial distance calculation can be performed to determine the relative position relationship between the line connection point and each module. These distance information provides clues for subsequent connection point matching. Based on the spatial distance data, the line connection point and the module are matched to determine the association relationship between the line connection point and the module to which it belongs. This helps to understand the internal structure of the detonator and provides a basis for further analysis and modeling. According to the matching relationship of the connection points, topological structure analysis can reveal the internal organizational structure of the electronic detonator, including the layout of the line, the connection method of the module, etc. This helps to understand the function and working principle of the detonator and provides an important reference for design and optimization.
[0142] Optionally, step S3 specifically includes:
[0143] Step S31: performing convolution structure calculation based on the electronic detonator module range image, thereby obtaining an image convolution neural network;
[0144] In this embodiment, features are extracted from the range image of the electronic detonator module, and then a convolutional neural network structure is designed. Specifically, a one-dimensional or two-dimensional convolutional layer can be used to capture specific image features, such as edges, textures, etc. For the detection and classification tasks of the electronic detonator module, a convolutional neural network including a convolutional layer, a pooling layer, and a fully connected layer can be designed. For example, a deep convolutional neural network structure consisting of multiple convolutional layers (each layer contains 64 3x3 convolution kernels), a pooling layer, and a fully connected layer is designed to effectively extract and learn the features of the electronic detonator module.
[0145] Step S32: performing module structure convolution layer feature extraction and module category fully connected layer feature extraction on the electronic detonator module range image through an image convolution neural network, thereby obtaining module structure feature data and module category feature data;
[0146] In this embodiment, the designed convolutional neural network structure is used to extract features from the range image of the electronic detonator module. This includes the convolutional layer feature extraction of the module structure and the fully connected layer feature extraction of the module category. For example, the shallow convolutional layer of the convolutional layer in the image convolutional neural network is used to extract the local features of the module including edges, textures, etc., the middle convolutional layer of the convolutional layer in the image convolutional neural network is used to extract the shape features of the module, and the deep convolutional layer or fully connected layer in the image convolutional neural network is used to extract the category, scene and other features of the module. In this way, the structural feature data and category feature data of each module can be obtained.
[0147] Step S33: performing feature fusion based on the module structure feature data and the module category feature data, thereby obtaining the detonator module depth feature data;
[0148] In this embodiment, the structural feature data and the category feature data of the module are fused, and a simple connection or a more complex fusion method can be used. For example, the structural features and the category features can be connected into a long vector, and then fused through a fully connected layer, or the attention mechanism can be used to dynamically fuse the two.
[0149] Step S34: creating a three-dimensional model based on the range image of the electronic detonator module, thereby obtaining a three-dimensional model of the module;
[0150] In this embodiment, the range images of the electronic detonator module from multiple viewing angles are used, and then a three-dimensional reconstruction algorithm such as dense optical flow or stereo matching algorithm is used to create a model. For example, the model can be represented by three-dimensional point cloud data or three-dimensional grid data.
[0151] Step S35: Optimizing the module structure characteristics of the module three-dimensional model according to the depth characteristic data of the detonator module, thereby obtaining the electronic detonator module three-dimensional model.
[0152] In this embodiment, the depth feature data of the detonator module is used to optimize the features of the created module 3D model. For example, the size and proportion of the model can be adjusted according to the depth feature data, or the realism and recognizability of the model can be improved through texture mapping and surface detail enhancement.
[0153] The present invention can design a CNN structure suitable for the task by performing convolution structure calculation on the range image of the electronic detonator module. The key to this step is to determine the parameters of the CNN, such as the number of layers, the size of the convolution kernel, and the pooling method, to ensure that the network can effectively extract useful features from the image. The constructed CNN structure is used to extract features from the range image of the electronic detonator module. By extracting the module structure features through the convolution layer, the local information and structural features in the image can be captured; and by extracting the module category features through the fully connected layer, the category information to which the module belongs can be obtained. In this way, the image can be converted into a feature vector with semantic information. The module structure feature data and the module category feature data extracted from the CNN are fused. This helps to combine information from different sources, improve the expression ability and discrimination of the features, and thus better describe the characteristics of the detonator module. Based on the range image of the electronic detonator module, a three-dimensional model can be created using computer vision and image processing technology. Such a three-dimensional model can more intuitively present the appearance and structure of the detonator module, providing a basis for subsequent analysis and application. The created module three-dimensional model is optimized using the deep feature data of the detonator module extracted from the CNN. This includes adjusting the model's geometric structure, improving the model's detail representation, etc. to better match the feature data extracted from the image, thereby obtaining a more precise and accurate 3D model.
[0154] Optionally, step S4 is specifically:
[0155] Step S41: evaluating the module surface smoothness of the electronic detonator module three-dimensional model, thereby obtaining module surface smoothness data;
[0156] In this embodiment, when evaluating the surface smoothness of the three-dimensional model of the electronic detonator module, a method such as curvature calculation can be used. First, surface information such as normal and curvature is extracted from the model. Then, based on this information, the curvature value of each point can be calculated and compared with a preset threshold to determine the smoothness of the surface. For example, the curvature value can be compared with a set of thresholds, and the surface can be divided into different areas according to the range of the curvature value, thereby quantifying the surface smoothness.
[0157] Step S42: extracting the model edge structure of the electronic detonator module three-dimensional model, thereby obtaining a module edge structure model;
[0158] In this embodiment, when extracting the edge structure of the model, an edge detection algorithm, such as Canny edge detection, can be used. First, the three-dimensional model of the electronic detonator module is represented by point cloud or voxelization, and then the Canny algorithm is applied to detect the edge. This can be achieved by thresholding the gradient image to identify edge pixels and connect them into edge lines. Ultimately, these edge lines can form an edge structure model of the module.
[0159] Step S43: performing module edge crack detection on the module edge structure model to obtain module edge crack data, and performing module edge integrity assessment based on the module edge crack data to obtain module edge integrity data;
[0160] In this embodiment, image processing and computer vision techniques can be used in the module edge crack detection stage. First, using the module edge structure model, the area where the cracks exist can be determined. This can be achieved by examining the geometric features and structure of the model, such as geometric discontinuities at the edges or abnormal surface morphology. Then, image segmentation algorithms, such as region-based segmentation or edge-based segmentation, can be applied to identify cracks. The edge integrity of the module can be evaluated by the shape, size and location of the cracks and the number of cracks in the module as a whole.
[0161] Step S44: constructing an integrity assessment system based on the module edge integrity data and the module surface smoothness data;
[0162] In this embodiment, when constructing the integrity assessment system, the surface smoothness data and the edge integrity data can be combined. For example, the surface smoothness and edge integrity can be used as two evaluation dimensions, and then the two can be combined according to the weight to form a comprehensive integrity assessment index. This can be achieved through weighted average or decision tree methods.
[0163] Step S45: Perform module integrity assessment on the three-dimensional model of the electronic detonator module through the integrity assessment system, thereby obtaining module appearance integrity data.
[0164] In this embodiment, in the module integrity assessment stage, the constructed integrity assessment system can be used to assess the electronic detonator module three-dimensional model. For example, according to the comprehensive integrity assessment index, the model is divided into different integrity levels, so as to obtain the appearance integrity data of the module. This can help users quickly understand the quality and reliability of the module.
[0165] The present invention can detect whether there are obvious unevenness, roughness and other problems on the module surface by evaluating the surface smoothness of the three-dimensional model of the electronic detonator module. This helps to evaluate the appearance quality of the module, ensure that its outer surface meets the design requirements, and improve the aesthetics and texture of the product. The edge structure of the three-dimensional model of the electronic detonator module is extracted. By identifying the edge structure of the model, the geometric shape and contour of the module can be better understood, providing a basis for subsequent crack detection. Crack detection is performed on the edge structure of the model. This helps to find cracks, gaps or other defects on the edge of the module, and evaluate the impact of these cracks on the integrity of the module edge. Through this evaluation, problems that may affect the function and safety of the product can be discovered and repaired early. An integrity evaluation system is constructed based on the module edge integrity data and surface smoothness data. This evaluation system includes indicators and standards for quantitatively evaluating the appearance and structural integrity of the module, thereby providing a systematic framework for subsequent evaluation. The three-dimensional model of the electronic detonator module is comprehensively evaluated through the integrity evaluation system to obtain the appearance integrity data of the module. This evaluation result can provide guidance for quality control in the manufacturing process, ensuring that the produced modules meet the specification requirements and have good appearance and structural integrity.
[0166] Optionally, step S5 specifically includes:
[0167] Step S51: extracting the connection line structure of the electronic detonator structure model, thereby obtaining the detonator connection line structure model;
[0168] In this embodiment, when extracting the connection line structure, a method based on circuit board design can be used. First, the position and layout of the connection line are identified through the electronic detonator structure model. Then, circuit board design software such as Altium Designer or Cadence Allegro is used to extract the connection line structure from the model. This includes elements such as wires, pads, and connection points to form a detonator connection line structure model.
[0169] Step S52: Associating the detonator connection line structure model and the electronic detonator module three-dimensional model with the detonator module connection line, thereby obtaining module connection line data;
[0170] In this embodiment, in the detonator module connection line association stage, it is necessary to associate the detonator connection line structure model with the electronic detonator module three-dimensional model. This can be achieved by matching the position and shape of the connection line with the corresponding components in the module. For example, the pin or connection point information in the model can be used to correctly associate the connection line with the module. In this way, the module connection line data can be obtained, including the relationship between the connection line and the various components of the module.
[0171] Step S53: Perform connectivity integrity assessment on the module connection line data, thereby obtaining module connection line integrity data.
[0172] In this embodiment, when evaluating the connectivity integrity of the module connection line data, the connectivity and integrity of the connection line need to be considered. First, a simulation or emulation tool is used to check whether there are problems such as open circuits or short circuits in the connection line. Then, a connectivity algorithm, such as a graph-based method, can be used to analyze the connection line to ensure that the signal can be transmitted correctly and the circuit can work normally. Finally, based on the evaluation results of connectivity and integrity, the integrity data of the module connection line is obtained to guide subsequent design and manufacturing work.
[0173] The present invention extracts the structure of the connection line from the electronic detonator structural model. This helps to understand the layout and structure of the connection line inside the detonator, and provides a basis for the subsequent connection line association. The detonator connection line structural model is associated with the three-dimensional model of the electronic detonator module. Through this association, the actual connection relationship between the connection line and the detonator module can be simulated, so as to obtain the data of the module connection line. This helps to ensure that the layout of the connection line matches the module structure and evaluates the reliability of the connection line. The module connection line data is evaluated for connectivity integrity. This includes checking the connectivity of the connection line, that is, whether the electrical signal can be transmitted normally in the connection line, and whether there is a circuit break, short circuit or other connectivity problems. Through this evaluation, it can be ensured that the design and layout of the connection line can meet the functional requirements of the detonator module and ensure its reliability and stability during use.
[0174] Optionally, step S6 specifically includes:
[0175] Step S61: performing low integrity line statistics on the module connection line integrity data, thereby obtaining low integrity connection line data;
[0176] In this embodiment, when performing low integrity line statistics on the module connection line integrity data, it is necessary to perform statistical analysis including variance calculation on the integrity assessment score of the module connection line integrity data to determine a threshold for distinguishing high and low line integrity, and cluster the module connection line integrity data according to this line integrity threshold to extract the connection line data with low line integrity.
[0177] Step S62: performing low-integrity appearance module statistics on the module appearance integrity data, thereby obtaining low-integrity appearance module data;
[0178] In this embodiment, when performing low-integrity appearance statistics on module appearance integrity data, it is necessary to perform statistical analysis on the integrity assessment score of the module appearance integrity data, including variance calculation, to determine a threshold for distinguishing high and low module appearance integrity, and cluster the module appearance integrity data according to this module appearance integrity threshold to extract module data with low module appearance integrity.
[0179] Step S63: performing an abnormal structure parameter description on the electronic detonator structure model according to the low-integrity connection line data and the low-integrity appearance module data, thereby obtaining the abnormal structure model of the electronic detonator.
[0180] In this embodiment, when the abnormal structure of the electronic detonator structure model is parametrically described based on the low-integrity connection line data and the low-integrity appearance module data, the characteristics of the abnormal structure need to be parametrically described for further analysis and processing. This can be done by establishing a model of the abnormal structure and incorporating its key parameters into the model. For example, for connection line problems, parameters such as the length, position, and problem type of the line can be recorded; for appearance problems, parameters such as the shape, size, and degree of damage of the module can be recorded. Through these parametric descriptions, the abnormal structure model of the electronic detonator can be obtained for subsequent repair or improvement work.
[0181] The present invention identifies the connection lines with low integrity by statistically analyzing the integrity data of the module connection lines. This can timely discover the abnormalities in the connection lines so as to carry out repairs or improvements to avoid affecting the functions and performance of the electronic detonator module. The module appearance integrity data is statistically analyzed to identify the modules with defects or damage in appearance. Appearance defects can cause parts to be unstable or easily damaged, thereby affecting the reliability and durability of the electronic detonator module. This can timely discover and replace defective modules to ensure the appearance quality and functional integrity of the product. According to the low-integrity connection line data and the low-integrity appearance module data, the electronic detonator structure model is parameterized to describe the abnormal structure. This includes recording and describing the abnormal characteristics, location, impact range and other information of the connection lines and appearance modules. Through this description, the impact of abnormal structures on product performance can be more accurately understood, and a reference can be provided for subsequent repair or improvement work.
[0182] Optionally, the present specification also provides an electronic detonator module appearance detection system based on image technology, which is used to perform the electronic detonator module appearance detection method based on image technology as described above. The electronic detonator module appearance detection system based on image technology includes:
[0183] The detonator module range division module is used to obtain the electronic detonator image and perform multi-channel color space enhancement on the electronic detonator image to obtain the electronic detonator enhanced image; perform detonator module range division on the electronic detonator enhanced image to obtain the electronic detonator module range image and the electronic detonator line range image;
[0184] A topology structure analysis module is used to perform a topology structure analysis of the electronic detonator module based on the electronic detonator module range image and the electronic detonator line range image, so as to obtain an electronic detonator structure model;
[0185] A module three-dimensional model construction module is used to perform multi-level depth feature extraction on the range image of the electronic detonator module, thereby obtaining the depth feature data of the detonator module, and construct a three-dimensional model of the electronic detonator module based on the range image of the electronic detonator module and the depth feature data of the detonator module;
[0186] An appearance integrity assessment module is used to assess the appearance integrity of the module based on the three-dimensional model of the electronic detonator module, thereby obtaining the appearance integrity data of the module;
[0187] A circuit integrity assessment module is used to assess the integrity of the connection circuit of the detonator module based on the electronic detonator structure model and the three-dimensional model of the electronic detonator module, so as to obtain the module connection circuit integrity data;
[0188] The abnormal structure parameterized description module is used to perform a parameterized description of the abnormal structure of the electronic detonator based on the module connection line integrity data and the module appearance integrity data, so as to obtain the abnormal structure model of the electronic detonator.
[0189] The electronic detonator module appearance detection system based on image technology of the present invention can implement any one of the electronic detonator module appearance detection methods based on image technology of the present invention, and is used to combine the operation and signal transmission medium between various modules to complete the electronic detonator module appearance detection method based on image technology. The internal modules of the system cooperate with each other to improve the accuracy of the electronic detonator module appearance detection.
[0190] Therefore, the embodiments should be regarded as illustrative and non-restrictive from all points, and the scope of the present invention is limited by the appended claims rather than the above description, and it is therefore intended that all changes falling within the meaning and range of equivalent elements of the application documents are included in the present invention.
[0191] The above description is only a specific embodiment of the present invention, so that those skilled in the art can understand or implement the present invention. Various modifications to these embodiments will be apparent to those skilled in the art, and the general principles defined herein may be implemented in other embodiments without departing from the spirit or scope of the present invention. Therefore, the present invention will not be limited to the embodiments shown herein, but should conform to the widest scope consistent with the principles and novel features invented herein.
Claims
1. A method for detecting the appearance of an electronic detonator module based on image technology, characterized in that: The following steps are involved: Step S1: acquiring an electronic detonator image, and performing multi-channel color space enhancement on the electronic detonator image, thereby obtaining an electronic detonator enhanced image; Dividing the electronic detonator enhanced image into detonator module ranges, thereby obtaining an electronic detonator module range image and an electronic detonator line range image; Step S2: performing topological structure analysis of the electronic detonator module based on the electronic detonator module range image and the electronic detonator line range image, thereby obtaining an electronic detonator structure model; Step S3: performing multi-level depth feature extraction on the range image of the electronic detonator module to obtain depth feature data of the detonator module, and constructing a three-dimensional model of the electronic detonator module based on the range image of the electronic detonator module and the depth feature data of the detonator module; Step S4: Performing module appearance integrity assessment based on the electronic detonator module three-dimensional model to obtain module appearance integrity data. Step S4 is specifically as follows: Step S41: evaluating the module surface smoothness of the electronic detonator module three-dimensional model, thereby obtaining module surface smoothness data; Step S42: extracting the model edge structure of the electronic detonator module three-dimensional model, thereby obtaining a module edge structure model; Step S43: performing module edge crack detection on the module edge structure model to obtain module edge crack data, and performing module edge integrity assessment based on the module edge crack data to obtain module edge integrity data; Step S44: constructing an integrity assessment system based on the module edge integrity data and the module surface smoothness data; Step S45: performing module integrity assessment on the three-dimensional model of the electronic detonator module through the integrity assessment system, thereby obtaining module appearance integrity data; Step S5: Based on the electronic detonator structure model and the three-dimensional model of the electronic detonator module, the integrity of the detonator module connection line is evaluated to obtain the module connection line integrity data. Step S5 is specifically as follows: Step S51: extracting the connection line structure of the electronic detonator structure model, thereby obtaining the detonator connection line structure model; Step S52: Associating the detonator connection line structure model and the electronic detonator module three-dimensional model with the detonator module connection line, thereby obtaining module connection line data; Step S53: performing connectivity integrity assessment on the module connection line data, thereby obtaining module connection line integrity data; Step S6: Based on the module connection line integrity data and the module appearance integrity data, the electronic detonator structure model is parameterized to describe the electronic detonator abnormal structure, so as to obtain the electronic detonator abnormal structure model.
2. The electronic detonator module appearance detection method based on image technology according to claim 1 is characterized in that: Step S1 is specifically as follows: Step S11: acquiring an electronic detonator image, and performing color space conversion on the electronic detonator image, thereby obtaining an electronic detonator conversion image; Step S12: performing channel separation on the electronic detonator conversion image, thereby obtaining a brightness channel image and a chrominance channel image; Step S13: performing intensity enhancement on the brightness channel image to obtain an intensity enhanced image; Performing color enhancement on the chroma channel image to obtain a color enhanced image; Step S14: performing channel merging on the intensity enhanced image and the color enhanced image to obtain an electronic detonator enhanced image; Step S15: dividing the electronic detonator enhanced image into detonator module ranges, thereby obtaining an electronic detonator module range image and an electronic detonator line range image.
3. The electronic detonator module appearance detection method based on image technology according to claim 2 is characterized in that: Step S15 is specifically as follows: Step S151: performing background segmentation on the electronic detonator enhanced image to obtain an electronic detonator segmentation image; Step S152: performing edge detection on the electronic detonator segmented image to obtain edge data of the electronic detonator image; Step S153: acquiring electronic detonator design data, and extracting electronic detonator module shape features and electronic detonator circuit connection features from the electronic detonator design data, thereby obtaining electronic detonator module shape data and electronic detonator circuit connection data; Step S154: performing similarity calculation on the edge data of the electronic detonator image and the shape data of the electronic detonator module, thereby obtaining the edge data of the electronic detonator module; Step S155: dividing the electronic detonator segmentation image into module ranges according to the electronic detonator module edge data, thereby obtaining an electronic detonator module range image; Step S156: dividing the line range based on the electronic detonator line connection data and the electronic detonator segmentation image, thereby obtaining the electronic detonator line range image.
4. The electronic detonator module appearance detection method based on image technology according to claim 3 is characterized in that: Step S156 is specifically as follows: Connecting edge points of the electronic detonator image edge data to obtain electronic detonator edge connection data; Performing line matching on the electronic detonator edge connection data and the electronic detonator line connection data, thereby obtaining the detonator line edge connection data; Interpolating the line connection points of the electronic detonator segmentation image according to the detonator line edge connection data, thereby obtaining line range data; The line range pixel values of the electronic detonator segmentation image are extracted according to the line range data, so as to obtain the electronic detonator line range image.
5. The electronic detonator module appearance detection method based on image technology according to claim 1 is characterized in that: Step S2 is specifically as follows: Step S21: extracting the spatial features of the line connection points of the electronic detonator line range image, thereby obtaining the spatial data of the electronic detonator line connection points; Step S22: extracting module space features from the electronic detonator module range image, thereby obtaining electronic detonator module space data; Step S23: performing spatial distance calculation on the spatial data of the electronic detonator line connection points and the spatial data of the electronic detonator modules, thereby obtaining spatial distance data; Step S24: matching the connection point spatial data of the electronic detonator line connection point and the electronic detonator module spatial data according to the spatial distance data, thereby obtaining the detonator module connection relationship data; Step S25: Perform topological structure analysis based on the detonator module connection relationship data to obtain an electronic detonator structure model.
6. The electronic detonator module appearance detection method based on image technology according to claim 1 is characterized in that: Step S3 is specifically as follows: Step S31: performing convolution structure calculation based on the electronic detonator module range image, thereby obtaining an image convolution neural network; Step S32: performing module structure convolution layer feature extraction and module category fully connected layer feature extraction on the electronic detonator module range image through an image convolution neural network, thereby obtaining module structure feature data and module category feature data; Step S33: performing feature fusion based on the module structure feature data and the module category feature data, thereby obtaining the detonator module depth feature data; Step S34: creating a three-dimensional model based on the range image of the electronic detonator module, thereby obtaining a three-dimensional model of the module; Step S35: Optimizing the module structure characteristics of the module three-dimensional model according to the depth characteristic data of the detonator module, thereby obtaining the electronic detonator module three-dimensional model.
7. The electronic detonator module appearance detection method based on image technology according to claim 1 is characterized in that: Step S6 is specifically as follows: Step S61: performing low integrity line statistics on the module connection line integrity data, thereby obtaining low integrity connection line data; Step S62: performing low-integrity appearance module statistics on the module appearance integrity data, thereby obtaining low-integrity appearance module data; Step S63: performing an abnormal structure parameter description on the electronic detonator structure model according to the low-integrity connection line data and the low-integrity appearance module data, thereby obtaining the abnormal structure model of the electronic detonator.
8. An electronic detonator module appearance detection system based on image technology, characterized in that: Used to execute the electronic detonator module appearance detection method based on image technology as claimed in claim 1, the electronic detonator module appearance detection system based on image technology comprises: The detonator module range division module is used to obtain the electronic detonator image and perform multi-channel color space enhancement on the electronic detonator image to obtain the electronic detonator enhanced image; perform detonator module range division on the electronic detonator enhanced image to obtain the electronic detonator module range image and the electronic detonator line range image; A topology structure analysis module is used to perform a topology structure analysis of the electronic detonator module based on the electronic detonator module range image and the electronic detonator line range image, so as to obtain an electronic detonator structure model; A module three-dimensional model construction module is used to perform multi-level depth feature extraction on the range image of the electronic detonator module, thereby obtaining the depth feature data of the detonator module, and construct a three-dimensional model of the electronic detonator module based on the range image of the electronic detonator module and the depth feature data of the detonator module; An appearance integrity assessment module is used to assess the appearance integrity of the module based on the three-dimensional model of the electronic detonator module, thereby obtaining the appearance integrity data of the module; A circuit integrity assessment module is used to assess the integrity of the connection circuit of the detonator module based on the electronic detonator structure model and the three-dimensional model of the electronic detonator module, so as to obtain the module connection circuit integrity data; The abnormal structure parameterized description module is used to perform a parameterized description of the electronic detonator abnormal structure on the electronic detonator structure model based on the module connection line integrity data and the module appearance integrity data, so as to obtain the electronic detonator abnormal structure model.
