Product repair system based on image reconstruction technology
Through the product repair system based on image reconstruction technology, the precise identification and repair of product defects is achieved, solving the problem of difficulty in identifying and locating the damage location in traditional technology, and improving the repair efficiency and accuracy.
Patent Information
- Application Number
- CN202410969790.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-07-19
- Publication Date
- 2024-09-10
- Estimated Expiration
- 2044-07-19
AI Technical Summary
Traditional product repair technology is difficult to accurately identify and locate the damaged location and extent of product components, resulting in inefficient repair processes and inaccurate results.
A product repair system based on image reconstruction technology is adopted, including a product defect identification module, a defect evaluation information acquisition module, a defect location area segmentation module and a reconstruction repair strategy acquisition module. Through image acquisition, feature segmentation, defect evaluation and adaptive reconstruction Control to achieve accurate identification and repair of product defects.
It improves the efficiency of the product repair process and the accuracy of the repair results, ensuring the stability of product quality and improving production efficiency.
Smart Images

Figure CN118505708B
Abstract
Description
Technical Field
[0001] The present application relates to the field related to image processing technology, and specifically to a product repair system based on image reconstruction technology. Background Art
[0002] As products wear and age during daily use, their appearance and functions may be damaged to varying degrees, which not only affects the service life of the product, but may also have a negative impact on the user experience. In today's increasingly advanced technological era, image reconstruction technology has become an important technology in the field of product repair. However, traditional product repair technology usually relies on physical entity repair. For product parts with complex damage, it is often difficult to accurately identify and locate the damage position and degree of damage of product parts with the naked eye alone, making it difficult for product repair to meet the requirements of high precision of repair results and high efficiency of the repair process.
[0003] Therefore, in the current product repair related technologies, there are technical problems that make it difficult to monitor in real time and accurately control the key parameters in the extrusion process, which in turn leads to unstable product quality and low production efficiency. Summary of the invention
[0004] This application provides a product repair system based on image reconstruction technology, and adopts technical means such as defect segmentation and image reconstruction to solve the technical problems existing in existing product repairs, such as difficulty in accurately identifying the damaged location and degree of the product, resulting in an inefficient product repair process and inaccurate results, thereby achieving the technical effect of improving the efficiency of the product repair process and the accuracy of the repair results.
[0005] The present application provides a product repair system based on image reconstruction technology, the system comprising: a product defect recognition module, the product defect recognition module is used to collect product image information, perform defect recognition, and obtain product defect location and defect characteristics; a defect evaluation information acquisition module, the defect evaluation information acquisition module is used to perform defect evaluation based on the product defect location and defect characteristics, and obtain defect evaluation information, including defect impact and defect area reconstruction accuracy; a defect location area segmentation module, the defect location area segmentation module is used to set a constraint coefficient based on the defect impact, and perform defect location area segmentation based on the defect area reconstruction accuracy; a product image reconstruction module, the product image reconstruction module is used to segment the product defect location based on the defect location area segmentation result, perform image reconstruction on the segmented area, and obtain a reconstructed image of the segmented area; a reconstruction and repair strategy acquisition module, the reconstruction and repair strategy acquisition module is used to perform splicing smoothness evaluation based on the reconstructed image of the segmented area, and use the constraint coefficient to perform adaptive reconstruction control on the splicing smoothness evaluation result until the constraint coefficient is met, and obtain the reconstruction and repair strategy for feedback.
[0006] In a possible implementation, the product defect identification module further performs the following processing: obtaining product standard image features; performing feature segmentation based on the product standard image features to construct a feature segmentation positioning set; performing corresponding segmentation on the product image information based on the feature segmentation positioning set, and constructing a convolution kernel based on the regional segmentation features in the feature segmentation positioning set; using the convolution kernel to perform feature traversal on the segmentation results of the product image information to obtain abnormal feature recognition results; performing segmentation area positioning on the product defect based on the abnormal feature recognition results, and obtaining defect features, wherein the defect features include difference information between the abnormal feature recognition results and the regional segmentation features.
[0007] In a possible implementation, the product defect identification module also performs the following processing: determining whether the product has standardized quality inspection features, and if so, obtaining the standardized quality inspection features as the product standard image features; if not, obtaining binary data of the product image information; performing cluster segmentation based on the binary data, and determining the binary threshold of each cluster segmentation area as the product standard image feature.
[0008] In a possible implementation, the defect evaluation information acquisition module also performs the following processing: obtaining the functional requirements and ornamental requirements of the product; performing analysis based on the functional requirements and ornamental requirements of the product, and matching them with the product appearance structure to establish a mapping relationship between the product structure and the target requirements; performing an impact analysis between the product appearance structure and the target requirements, and between the defect characteristics and the target requirements according to the mapping relationship, and constructing a fuzzy evaluation list, wherein the fuzzy evaluation list includes product structure partitions, defect characteristics and corresponding impacts; performing impact configuration through the fuzzy evaluation list according to the defect location and defect characteristics of the product to obtain the defect impact; obtaining historical reconstruction cases, and fitting based on the historical reconstruction cases with the defect area size as the independent variable and the reconstruction accuracy as the dependent variable to determine the defect area reconstruction evaluation function; performing accuracy evaluation on the area of the product defect location using the defect area reconstruction evaluation function to obtain the defect area reconstruction accuracy.
[0009] In a possible implementation, the defect location area segmentation module also performs the following processing: based on the historical reconstruction cases, screening is performed according to the reconstruction accuracy to obtain an area parameter set, which includes the minimum segmentation area and the corresponding accuracy; when the defect area reconstruction accuracy meets the preset threshold, the defect location area segmentation step is skipped; when the defect area reconstruction accuracy does not meet the preset threshold, the defect location area segmentation step is started; based on the preset threshold and the accuracy of the area parameter set, the minimum segmentation area is matched to obtain; based on the minimum segmentation area, the defect location area is segmented by maximizing the positioning edge.
[0010] In a possible implementation, the defect location area segmentation module also performs the following processing: obtaining the edge length of the defect location area; segmenting the edge length using the minimum side length of the segmented minimum area to obtain an edge segmentation result; obtaining the remaining defect area based on the edge segmentation result; and segmenting the remaining defect area from the edge to the inside using the segmented minimum area until the segmentation of all defect location areas is completed.
[0011] In a possible implementation, the reconstruction and repair strategy acquisition module also performs the following processing: according to the product defect location, a defect edge connection image is obtained as a sample target image; based on the positional relationship between the segmented area and the sample target image, an adversarial image relationship is determined, and the adversarial image relationship includes the sample target image and the corresponding reconstructed image; according to the adversarial image relationship, peak signal-to-noise ratio, structural similarity, and integrity evaluation are performed on the sample target image and the reconstructed image respectively; evaluation weights are configured, and based on the evaluation weights, the peak signal-to-noise ratio, structural similarity, and integrity evaluation values are calculated to obtain the splicing smoothness evaluation result.
[0012] In a possible implementation, the reconstruction and repair strategy acquisition module further performs the following processing: by formula:
[0013] , calculate and obtain the splicing smoothness evaluation result, where, are the evaluation weights of peak signal-to-noise ratio, structural similarity, and integrity evaluation value, respectively. The sum is 1, is the maximum pixel value, is the pixel of the sample target image, and The pixels of the reconstructed image at the corresponding position, is the pixel average of the sample target image, is the pixel average of the reconstructed image, is the pixel variance of the sample target image, is the pixel variance of the reconstructed image, is the covariance, , To avoid a constant with a denominator of zero, n is the total number of pixels and m is the number of pixel pairs to be stitched.
[0014] The product repair system based on image reconstruction technology proposed in this application is intended to collect product image information and perform defect identification; perform defect evaluation based on product defect location and defect characteristics; set constraint coefficients based on defect impact, and perform defect location area segmentation based on defect area reconstruction accuracy; segment product defect location, perform image reconstruction on the segmented area, and obtain a reconstructed image of the segmented area; perform splicing smoothness evaluation, and use constraint coefficients to adaptively reconstruct the splicing smoothness evaluation results until the constraint coefficients are met, and obtain the reconstruction repair strategy for feedback. This solves the technical problem of the difficulty in accurately identifying the damaged location and degree of the product in existing product repairs, resulting in an inefficient product repair process and inaccurate results, and achieves the technical effect of improving the efficiency of the product repair process and the accuracy of the repair results. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] In order to more clearly illustrate the technical solution of the embodiment of the present disclosure, the accompanying drawings of the embodiment of the present disclosure will be briefly introduced below. A flow chart is used in the present application to illustrate the operations performed by the system according to the embodiment of the present application. It should be understood that the preceding or following operations are not necessarily performed accurately in order. On the contrary, various steps can be processed in reverse order or simultaneously as needed. At the same time, other operations can also be added to these processes, or one or more operations can be removed from these processes.
[0016] Figure 1 A schematic diagram of the structure of a product repair system based on image reconstruction technology provided in an embodiment of the present application;
[0017] Figure 2 A schematic diagram of the execution process of a product defect recognition module in a product repair system based on image reconstruction technology provided in an embodiment of the present application.
[0018] Explanation of the reference numerals: product defect recognition module 10 , defect evaluation information acquisition module 20 , defect location area segmentation module 30 , product image reconstruction module 40 , reconstruction and repair strategy acquisition module 50 . DETAILED DESCRIPTION
[0019] The above description is only an overview of the technical solution of the present application. In order to more clearly understand the technical means of the present application, it can be implemented in accordance with the contents of the specification. In order to make the above and other purposes, features and advantages of the present application more obvious and easy to understand, the specific implementation methods of the present application are listed below.
[0020] In order to make the purpose, technical solutions and advantages of the present application clearer, the present application will be further described in detail below in conjunction with the accompanying drawings. The described embodiments should not be regarded as limiting the present application. All other embodiments obtained by ordinary technicians in the field without making creative work are within the scope of protection of this application.
[0021] In the following description, reference is made to "some embodiments", which describe a subset of all possible embodiments, but it is understood that "some embodiments" may be the same subset or different subsets of all possible embodiments, and may be combined with each other without conflict, and the terms "first\second" involved are merely to distinguish similar objects and do not represent a specific ordering of objects. The terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, system, product, or server that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or modules that are not clearly listed or inherent to these processes, products, or devices. Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those generally understood by technicians in the technical field of this application. The terms used herein are for the purpose of describing the embodiments of the present application only.
[0022] The present application embodiment provides a product repair system based on image reconstruction technology, such as Figure 1 As shown, the system comprises:
[0023] The product defect recognition module 10 is used to collect product image information, perform defect recognition, and obtain product defect location and defect features. Use image acquisition equipment (such as a camera, scanner, etc.) to shoot or scan the product to obtain product image information. Use image processing and analysis technology to process the collected product image to identify defects in the product. For example, use image enhancement, segmentation, feature extraction, etc. to accurately identify product defects. After identifying product defects, determine the specific location of the defect on the product and obtain detailed defect feature information, including the size, shape, color, texture and other features of the defect. Specifically, a variety of methods can be used to identify product defects, such as rule-based detection methods, infrared thermal imaging technology, laser scanning technology, etc.
[0024] The specific configuration of the product defect identification module 10 will be described in detail below. Figure 2As shown, the product defect recognition module 10 may further include: obtaining product standard image features. Extracting representative information that can describe product attributes or characteristics from the standard image of the product. Performing feature segmentation based on the product standard image features and constructing a feature segmentation positioning set. Different regions or objects in the image are distinguished and separated according to their features based on the product standard image features, for example, threshold-based segmentation, edge-based segmentation, region-based segmentation, etc., and different parts of the image are divided according to their feature values (such as grayscale value, color, texture, etc.) to form different segmented regions. A feature segmentation positioning set is constructed based on the segmentation results, which contains a set of positions and feature information of all segmented regions, and records the specific position of each segmented region in the image (such as coordinate range) and the feature value of the region (such as color, texture, etc.). The product image information is segmented accordingly based on the feature segmentation positioning set, and a convolution kernel is constructed based on the regional segmentation features in the feature segmentation positioning set. According to the feature segmentation and positioning set, the product image information is accurately segmented to obtain image blocks corresponding to each area in the feature segmentation and positioning set, and the features of these image blocks are further extracted, and the convolution kernel is constructed based on these features. For example, if there is a defect in a certain area, a convolution kernel that can highlight the defect may be required; if a certain area needs to be smoothed, a convolution kernel that can smooth the image may be required. The convolution kernel is used to perform feature traversal on the segmentation results of the product image information to obtain abnormal feature recognition results. The convolution kernel is used to perform a convolution operation on each segmented area of the product image information to generate a corresponding feature map, and then feature traversal is performed to find the area that does not conform to the normal mode, so as to obtain the abnormal feature recognition result. According to the abnormal feature recognition result, the segmented area of the product defect is located, and the defect feature is obtained. The defect feature includes the difference information between the abnormal feature recognition result and the regional segmentation feature. Based on the abnormal feature recognition results, the product image is segmented and located more accurately. That is, by comparing the position and shape of the abnormal feature with the information in the original image or the regional segmentation and positioning set, the matching defect area is found. After the defect segmentation area is determined, the feature information of the area is further extracted, that is, the defect feature, including the difference information between the abnormal feature recognition result and the regional segmentation feature, which may be the grayscale difference, texture difference, color difference, etc. between the defect area and the normal area.
[0025] The specific configuration of the product defect recognition module 10 will be described in detail below. The product defect recognition module 10 may further include: determining whether the product has standardized quality inspection features, and if so, obtaining the standardized quality inspection features as the product standard image features. If there are standardized image requirements for mass-produced products, the standardized features are directly used for identification traversal, and the standardized quality inspection features are used as the product standard image features. If not, the binary data of the product image information is obtained; cluster segmentation is performed based on the binary data, and the binary threshold of each cluster segmentation area is determined as the product standard image feature. For images that are not batched and have no standards, such as unique products, cultural relics, etc., it is unknown what their previous standard status was. Threshold segmentation is performed based on the binarization of the product image to obtain the product standard image features. Binarization is a basic operation in image processing, which simplifies the pixel values of the image into two levels, usually 0 (black) and 255 (white). When clustering and segmenting on binary images, a common method is based on connectivity, treating adjacent white (or black) pixels as the same cluster. For example, morphological operations (such as erosion and dilation) can be used to remove noise and connect adjacent white pixels, and then a labeling algorithm (such as the connected component labeling algorithm) is used to identify and mark different areas in the image, and the binary threshold of each cluster segmentation area is used as the product standard image feature.
[0026] Defect evaluation information acquisition module 20, the defect evaluation information acquisition module 20 is used to perform defect evaluation according to the product defect location and defect characteristics, and obtain defect evaluation information, including defect impact and defect area reconstruction accuracy. According to the obtained product defect location and defect characteristics, through sample data, using association rule mining algorithm or machine learning, etc., defect correlation analysis and evaluation are performed to determine the influence relationship of each structure, and defect evaluation information, including defect impact and defect area reconstruction accuracy, is obtained. For example, a comprehensive analysis and evaluation of product defects is performed to determine the nature, severity, scope of impact and necessity of repair of the defects. Specifically, defect impact refers to the degree of impact of defects on product performance, safety, reliability or user experience, which may be direct (such as causing product function failure) or indirect (such as reducing product life or increasing maintenance costs). For example, a defect that may immediately cause the product to stop working is more serious than a defect that takes some time to appear. The defect is on the edge or inside of the product and has a great impact on the appearance or function of the product. The smaller the defect area, the lower the reconstruction accuracy. The reconstruction accuracy of small defect areas is higher. The defect area reconstruction accuracy refers to the ability to accurately identify and measure defect areas in product images through image processing and analysis technology. When evaluating the defect area reconstruction accuracy, it is necessary to consider the measurement accuracy (the error between the reconstructed defect area and the actual defect area should be as small as possible), the measurement repeatability (similar or identical results should be obtained when measuring the same defect area multiple times), the measurement stability (the measurement results should remain relatively stable under different lighting, angles or shooting conditions), and the measurement integrity (the reconstructed defect area should cover the entire range of the actual defect to avoid omissions or misjudgments). For example, accurate defect area measurement can more accurately assess the severity and impact of defects.
[0027] The specific configuration of the defect evaluation information acquisition module 20 will be described in detail below. The defect evaluation information acquisition module 20 may further include: obtaining the functional requirements and ornamental requirements of the product. Functional requirements refer to the specific functions or behaviors that a product or system should have, describing how the software or hardware should operate to meet the predetermined goals; ornamental requirements focus more on the appearance, design, style and other aspects of the product, aiming to meet the user's pursuit of beauty and aesthetic needs. Based on the functional requirements and ornamental requirements of the product, the product is analyzed and matched with the product appearance structure to establish a mapping relationship between the product structure and the target requirements. The functional requirements and ornamental requirements of the product are analyzed to clarify how each structural element meets specific functional requirements or ornamental requirements, and a mapping relationship between the product structure and the target requirements is established to ensure that these requirements can be effectively reflected in the product appearance structure. According to the mapping relationship, the influence analysis of the product appearance structure and the target requirements, the defect characteristics and the target requirements are respectively performed, and a fuzzy evaluation list is constructed, and the fuzzy evaluation list includes product structure partitions, defect characteristics and corresponding influences. According to the established mapping relationship, the target demand, defect characteristics and the impact analysis results of the target demand are integrated to analyze how each partition of the product appearance structure meets or does not meet the functional and aesthetic requirements, for example, whether the position of a button is convenient for user operation, whether the resolution of the display screen is high enough to meet the user's visual needs, whether the design of the shell is beautiful and in line with the user's aesthetics, etc.; for the identified defect characteristics (such as insensitive buttons, bad pixels on the display screen, scratches on the shell, etc.), analyze how these defects affect the functional and aesthetic requirements of the product. For example, an insensitive button may cause the user to be unable to use a certain function of the product normally, and the bad pixels on the display screen may reduce the user's visual experience; determine the evaluation factors and assign corresponding evaluation levels to each evaluation factor, record them in the fuzzy evaluation list, and show different partitions of the product structure, defect characteristics and their corresponding impact (i.e., evaluation level). According to the product defect location and defect characteristics, the impact is configured through the fuzzy evaluation list to obtain the defect impact. According to the product defect location and defect characteristics, a corresponding impact level is configured for each defect in the fuzzy evaluation list, for example, slight impact, general impact, severe impact, etc., and finally the defect impact is obtained. Obtain historical reconstruction cases, and according to the historical reconstruction cases, fit the defect area size as an independent variable and the reconstruction accuracy as a dependent variable to determine a defect area reconstruction evaluation function. The defect area reconstruction evaluation function can predict the reconstruction accuracy according to a given defect area size. The defect area reconstruction evaluation function is used to evaluate the accuracy of the area of the product defect location to obtain the defect area reconstruction accuracy.
[0028] The defect location area segmentation module 30 is used to set a constraint coefficient according to the defect influence and perform defect location area segmentation according to the defect area reconstruction accuracy. The constraint coefficient is set according to the defect influence. Specifically, the constraint coefficient is the reconstruction accuracy requirement coefficient, which is a quantitative indicator used to indicate the influence of the accuracy requirement for reconstructing product defects. The constraint coefficient can be used to determine the accuracy requirement for reconstructing product defects and guide subsequent defect processing. In the process of defect identification and reconstruction, the preliminary location and area information of the defect can be obtained through image processing and analysis technology. However, due to various factors in the image acquisition and processing process (such as illumination, noise, shooting angle, etc.), the preliminary defect location and area information may have certain errors. Therefore, the defect location area is further segmented and corrected according to the accuracy of defect area reconstruction, and the initially identified defect area is subdivided into smaller areas to more accurately determine the location and size of the defect. For example, edge detection is used to perform more refined processing on the product image to obtain more accurate defect location and area information.
[0029] The specific configuration of the defect location area segmentation module 30 will be described in detail below. The defect location area segmentation module 30 may further include: according to the historical reconstruction cases, screening according to the reconstruction accuracy, obtaining an area parameter set, including the minimum segmentation area and the corresponding accuracy. All cases are screened out from the historical reconstruction case database, and sorted according to their reconstruction accuracy, that is, by comparing the reconstruction accuracy indicators in each case (such as the similarity or difference between the reconstructed product and the original product), to obtain an area parameter set, including obtaining the minimum segmentation area and the corresponding reconstruction accuracy. When the defect area reconstruction accuracy meets the preset threshold, the defect location area segmentation step is skipped. The preset threshold refers to the preset reconstruction accuracy threshold in the defect reconstruction process. When the defect area reconstruction accuracy does not meet the preset threshold, the defect location area segmentation step is started. Defect location area segmentation is a process of accurately identifying the defect location and its size range. Through defect location area segmentation, more detailed and accurate defect information can be obtained, thereby guiding subsequent reconstruction or repair work. Based on the preset threshold and the accuracy of the area parameter set, the minimum segmentation area is obtained. In the area parameter set, starting from the smallest segmentation area, it is gradually compared with the preset threshold. If the reconstruction accuracy corresponding to a certain segmented area reaches or exceeds the preset threshold, then the segmented area is considered to meet the minimum segmentation area requirements. According to the minimum segmentation area, the defect positioning area is segmented by maximizing the positioning edge. After the minimum segmentation area is determined, the defect area is re-segmented, while ensuring that the integrity and maximization of the positioning edge are maintained as much as possible during the segmentation process. Because the defects on the edges are connected to the product features, they are easier to reconstruct. For example, textures can be reconstructed by referring to the connected parts without defects. However, for the middle area, since there is no original product image for comparison, it needs to be reconstructed based on the reconstructed image, and the error is relatively large.
[0030] The specific configuration of the defect location area segmentation module 30 will be described in detail below. The defect location area segmentation module 30 may further include: obtaining the edge length of the defect location area. Performing edge detection on the defect area that has been located, and calculating the total length of the edge of the defect area. Using the minimum side length of the segmentation minimum area to segment the edge length, and obtaining an edge segmentation result. Using the minimum side length as a reference to segment the detected defect edge length means dividing the edge length into multiple parts, each of which is close to or equal to the minimum side length, and finally obtaining the edge segmentation result. According to the edge segmentation result, the remaining defect area is obtained. Given the edge segmentation result, the remaining defect area is determined by calculating the area of the area enclosed by these fragments. Using the segmentation minimum area to segment the remaining defect area from the edge to the inside until the segmentation of all defect location areas is completed.
[0031] The product image reconstruction module 40 is used to segment the product defect location based on the defect location area segmentation result, reconstruct the segmented area, and obtain a reconstructed image of the segmented area. The product defect location is further segmented according to the defect location area segmentation result to obtain the specific position and shape of the defect. After obtaining the segmented area of the defect, the image reconstruction technology is used to reconstruct this part of the defect area. Image reconstruction is a computer vision technology that can generate a high-resolution (HR) image from a low-resolution (LR) image, or restore the information of the original image from a damaged image. For example, super-resolution technology usually uses a deep learning model, such as a convolutional neural network (CNN) or a generative adversarial network (GAN). By learning the mapping relationship between a large number of high-resolution and low-resolution image pairs, a super-resolution model is trained. After the model training is completed, the low-resolution image is input into the model to obtain the output of the super-resolution model to predict and generate a high-resolution image. The image reconstruction of the segmented area is to restore the original state of the defect area and finally obtain a reconstructed image of the segmented area.
[0032] The reconstruction and repair strategy acquisition module 50 is used to evaluate the smoothness of the splicing according to the reconstructed image of the segmented area, and to adaptively reconstruct the splicing smoothness evaluation result using the constraint coefficient until the constraint coefficient is satisfied, and to obtain the reconstruction and repair strategy for feedback. After the image is reconstructed, the reconstructed image of the segmented area needs to be spliced with the original image or other reconstructed images to form a complete image. The smoothness evaluation is mainly performed by observing and analyzing the edge of the spliced image to check whether there is obvious discontinuity, dislocation or blur. If the smoothness evaluation result shows that the smoothness of the spliced image does not meet the requirements (i.e., does not meet the set constraint coefficient), the constraint coefficient is used to adaptively reconstruct the spliced image, i.e., adjust the image reconstruction parameters according to the result of the smoothness evaluation, reconstruct and splice the image, and repeat until the smoothness of the spliced image meets the set constraint coefficient. The reconstruction and repair strategy is generated and feedback is given, which may include a product repair plan and marking and reminding products that cannot be repaired or have low repair reliability.
[0033] The specific configuration of the reconstruction and repair strategy acquisition module 50 will be described in detail below. The reconstruction and repair strategy acquisition module 50 may further include: according to the product defect location, obtaining a defect edge connection image as a sample target image. The product defect location is processed and analyzed more finely, and a defect edge connection image is obtained as a sample target image. Specifically, since the extracted edges may be broken or discontinuous due to the influence of factors such as noise and light in the actual detection process, these broken edges are connected to form a complete and continuous defect edge contour. Finally, according to the connected defect edge contour, the position and shape of the defect are marked in the original image, and an image containing a complete defect edge is generated. Based on the positional relationship between the segmented area and the sample target image, an adversarial image relationship is determined, and the adversarial image relationship includes a sample target image and a corresponding reconstructed image. The adversarial image relationship refers to a set of image pairs, including a sample target image (i.e., an original image containing a defect) and a corresponding reconstructed image (i.e., an image that attempts to simulate or repair a defect after processing or transformation). According to the adversarial image relationship, the peak signal-to-noise ratio, structural similarity, and integrity evaluation are performed on the sample target image and the reconstructed image respectively. According to the adversarial image relationship, the peak signal-to-noise ratio, structural similarity and integrity evaluation of the sample target image and the reconstructed image are performed, that is, the quality of the two images is evaluated. Specifically, the peak signal-to-noise ratio calculates the ratio between the maximum signal power and the destructive noise power that affects its representation accuracy, which is used to quantify the difference between the sample target image (original image) and the reconstructed image. A higher peak signal-to-noise ratio value indicates that the difference between the two images is smaller, that is, the quality of the reconstructed image is higher; the structural similarity is calculated based on the mean, variance and covariance of the sample, reflecting the structural similarity of the image, and is used to evaluate the structural similarity of the sample target image and the reconstructed image. A higher structural similarity indicates that the two images are more similar in structure, that is, the reconstructed image retains the structural information of the original image; the integrity evaluation is a comparison of the defective areas in the sample target image and the reconstructed image to evaluate whether the reconstructed image successfully restores the defective areas in the original image, for example, by calculating the pixel difference or structural difference of the defective area. The evaluation weights are configured, and based on the evaluation weights, the peak signal-to-noise ratio, structural similarity and integrity evaluation value are calculated to obtain the splicing smoothness evaluation result.A weight is configured for the peak signal-to-noise ratio, structural similarity, and integrity evaluation value respectively, representing the importance of each indicator in the comprehensive evaluation. The configured weights are used to perform weighted operations on the peak signal-to-noise ratio, structural similarity, and integrity evaluation value. For example, if the weight of the peak signal-to-noise ratio is 0.3, the weight of the structural similarity is 0.5, and the weight of the integrity evaluation is 0.2, the comprehensive evaluation result can be calculated by the following formula: Comprehensive evaluation result = 0.3×peak signal-to-noise ratio value+0.5×structural similarity value+0.2×integrity evaluation value. The comprehensive evaluation result obtained is the stitching smoothness evaluation result, which reflects the overall quality of the stitched image in multiple aspects.
[0034] The specific configuration of the reconstruction and repair strategy acquisition module 50 will be described in detail below. The reconstruction and repair strategy acquisition module 50 may further include: the calculation formula of the splicing smoothness evaluation result is:
[0035] ;
[0036] in, are the evaluation weights of peak signal-to-noise ratio, structural similarity, and integrity evaluation value, respectively. The sum is 1, is the maximum pixel value, is the pixel of the sample target image, and The pixels of the reconstructed image at the corresponding position, is the pixel average of the sample target image, is the pixel average of the reconstructed image, is the pixel variance of the sample target image, is the pixel variance of the reconstructed image, is the covariance, , To avoid a constant with a denominator of zero, n is the total number of pixels and m is the number of pixel pairs to be stitched.
[0037] Although the present application makes various references to certain modules in the system according to the embodiments of the present application, any number of different modules may be used and run on the user terminal and / or server, and the various units and modules included are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be achieved; in addition, the specific names of the functional units are only for the convenience of distinguishing each other, and are not used to limit the scope of protection of the present invention.
[0038] The above specific implementations do not constitute a limitation on the protection scope of this application. It should be understood by those skilled in the art that various modifications, combinations and substitutions can be made according to design requirements and other factors. Any modifications, equivalent substitutions and improvements made within the spirit and principles of this application should be included in the protection scope of this application.
Claims
1. Product repair system based on image reconstruction technology, characterized in that: The system comprises: A product defect recognition module, which is used to collect product image information, perform defect recognition, and obtain product defect location and defect characteristics; A defect evaluation information acquisition module, which is used to perform defect evaluation according to the defect location and defect characteristics of the product, and obtain defect evaluation information, including defect impact and defect area reconstruction accuracy; A defect location area segmentation module, the defect location area segmentation module is used to set a constraint coefficient according to the defect influence and perform defect location area segmentation according to the defect area reconstruction accuracy; A product image reconstruction module, the product image reconstruction module is used to segment the product defect location based on the defect location area segmentation result, perform image reconstruction on the segmented area, and obtain a reconstructed image of the segmented area; A reconstruction and repair strategy acquisition module, wherein the reconstruction and repair strategy acquisition module is used to evaluate the splicing smoothness according to the reconstructed image of the segmented area, and to perform adaptive reconstruction control on the splicing smoothness evaluation result by using the constraint coefficient until the constraint coefficient is satisfied, thereby obtaining the reconstruction and repair strategy for feedback; The steps performed by the reconstruction and repair strategy acquisition module include: According to the product defect positioning, a defect edge connection image is obtained as a sample target image; Determining an adversarial image relationship based on a positional relationship between the segmented area and the sample target image, the adversarial image relationship including the sample target image and a corresponding reconstructed image; According to the adversarial image relationship, the peak signal-to-noise ratio, structural similarity and integrity evaluation are performed on the sample target image and the reconstructed image respectively; Configure evaluation weights, and based on the evaluation weights, calculate the peak signal-to-noise ratio, the structural similarity, and the integrity evaluation value to obtain the splicing smoothness evaluation result; The steps performed by the reconstruction and repair strategy acquisition module include: By formula: , calculate and obtain the splicing smoothness evaluation result, where, are the evaluation weights of peak signal-to-noise ratio, structural similarity, and integrity evaluation value, respectively. The sum is 1, is the maximum pixel value, is the pixel of the sample target image, and The pixels of the reconstructed image at the corresponding position, is the pixel average of the sample target image, is the pixel average of the reconstructed image, is the pixel variance of the sample target image, is the pixel variance of the reconstructed image, is the covariance, , To avoid a constant with a denominator of zero, n is the total number of pixels and m is the number of pixel pairs to be stitched.
2. The product repair system based on image reconstruction technology according to claim 1, characterized in that: The steps performed by the product defect identification module include: Obtain product standard image features; Perform feature segmentation according to the product standard image features and construct a feature segmentation positioning set; Segment the product image information accordingly based on the feature segmentation positioning set, and construct a convolution kernel based on the regional segmentation features in the feature segmentation positioning set; Using the convolution kernel to perform feature traversal on the segmentation results of the product image information respectively to obtain abnormal feature recognition results; The product defect is segmented and located in an area according to the abnormal feature recognition result, and defect features are obtained. The defect features include difference information between the abnormal feature recognition result and the area segmentation feature.
3. The product repair system based on image reconstruction technology according to claim 2, characterized in that: The steps performed by the product defect identification module include: Determine whether the product has a standardized quality inspection feature, and if so, obtain the standardized quality inspection feature as the product standard image feature; If it does not exist, obtain binary data of product image information; Cluster segmentation is performed based on the binary data, and a binary threshold of each cluster segmentation area is determined as the product standard image feature.
4. The product repair system based on image reconstruction technology according to claim 1, characterized in that: The defect assessment information obtaining module performs the following steps: Obtain the functional and aesthetic requirements of the product; Analyze the functional and aesthetic requirements of the product, match them with the product appearance structure, and establish a mapping relationship between the product structure and the target requirements; According to the mapping relationship, respectively analyze the influence of the product appearance structure and the target demand, and the defect characteristics and the target demand, and construct a fuzzy evaluation list, wherein the fuzzy evaluation list includes product structure partitions, defect characteristics and corresponding influences; According to the product defect location and defect characteristics, influence configuration is performed through the fuzzy evaluation list to obtain the defect influence; Obtain historical reconstruction cases, and perform fitting based on the historical reconstruction cases, taking the defect area size as an independent variable and the reconstruction accuracy as a dependent variable to determine a defect area reconstruction evaluation function; The defect area reconstruction evaluation function is used to evaluate the accuracy of the area of the product defect location to obtain the defect area reconstruction accuracy.
5. The product repair system based on image reconstruction technology according to claim 4, characterized in that: The defect location area segmentation module performs the following steps: According to the historical reconstruction cases, screening is performed according to the reconstruction accuracy to obtain an area parameter set, which includes the minimum segmentation area and the corresponding accuracy; When the defect area reconstruction accuracy meets a preset threshold, the defect location area segmentation step is skipped; When the defect area reconstruction accuracy does not meet a preset threshold, starting a defect location area segmentation step; Based on matching the preset threshold with the accuracy of the area parameter set, obtaining the minimum segmentation area; According to the minimum segmentation area, the defect location area is segmented by maximizing the location edge.
6. The product repair system based on image reconstruction technology according to claim 5, characterized in that: The defect location area segmentation module performs the following steps: Obtaining the edge length of the defect location area; Segmenting the edge length using the minimum side length of the segmented minimum area to obtain an edge segmentation result; According to the edge segmentation result, obtaining the remaining defect area; The remaining defect area is segmented from the edge to the inside using the minimum segmentation area until the segmentation of all defect location areas is completed.
