Assembly quality inspection method, device and system for fuse protection box

By acquiring and analyzing assembly images during the assembly process of the fuse protective box, extracting the profiles of the assembly components and the embedded components, combining image quality performance values, assembly density and assembly qualification rate, monitoring and recording the quality of each assembly link in real time, it solves the problem of difficult to timely discovering and correcting subtle errors or defects in the assembly process in the prior art, and achieves efficient assembly quality inspection and quality control.

CN119273680BActive Publication Date: 2025-03-07YUEQING HONGBEN ELECTRIC CO LTD
View PDF 1 Cites 0 Cited by

Patent Information

Application Number
CN202411785676.6
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-12-06
Publication Date
2025-03-07
Estimated Expiration
2044-12-06

AI Technical Summary

Technical Problem

The prior art is difficult to timely discover and correct subtle errors or defects in the assembly process during the safety piece protection box assembly process, resulting in the accumulation of problems, increasing the difficulty of solving problems, and making it difficult to locate specific assembly links.

Method used

By obtaining the assembly image after each assembly component is assembled, the outlines of the assembly component and the embedded component are extracted, and combining image quality performance values, assembly density and assembly qualification rate, the quality of each assembly link is monitored and recorded in real time, and problems in the assembly process are promptly discovered and corrected.

Benefits of technology

Real-time monitoring and quality analysis of the assembly process of the safety piece protective box is realized, and poor assembly or mismatch can be discovered in a timely manner, avoiding the product's performance and reliability due to improper assembly, and improving the accuracy of the quality inspection results of the assembly components.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119273680B_ABST
    Figure CN119273680B_ABST
Patent Text Reader

Abstract

The present application relates to the field of image processing technology, and specifically to an assembly quality inspection method, device and system for a fuse protection box, the method comprising: extracting the outline of the assembly component and the outline of the embedded component from the assembly image according to the assembly order of the fuse protection box; obtaining the quality performance value according to the grayscale features and gradient features in each assembly image; obtaining the assembly tightness according to the distance between the outline of the assembly component and the outline of the embedded component and the shape features of the enclosed figure; obtaining the assembly qualification rate of each assembly component according to the distance between the assembly components and the distance between the embedded components in each assembly image; and obtaining the quality inspection results of each assembly component of the fuse protection box. The present application aims to perform quality inspection on each assembly component during the assembly process of the fuse protection box, and timely discover and correct problems in the assembly process.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application relates to the field of image processing technology, and in particular to an assembly quality inspection method, device and system for a fuse protection box. Background Art

[0002] As a key safety protection device, the fuse protection box is widely used to protect electronic components and instruments, ensuring that they are not damaged during transportation and storage. With the increasing popularity and growing demand for electronic equipment, the production volume of fuse protection boxes has increased significantly, and its assembly quality is directly related to the reliability and safety of the final product. Therefore, it is particularly important to conduct efficient quality inspection of the fuse protection box assembly process.

[0003] When assembling a fuse protection box in the prior art, quality inspection is usually performed on it after all the assembly components are assembled. Since the quality inspection is performed after all the assemblies are completed, slight errors or defects that may occur in the assembly process are not discovered in time, resulting in the accumulation of problems, which increases the difficulty of problem solving and makes it difficult to locate the specific assembly link. Problems in the assembly process cannot be discovered and corrected in time, resulting in an extension of the production cycle and an increase in costs. Summary of the invention

[0004] In view of the above, it is necessary to provide an assembly quality inspection method, device and system for a fuse protection box to solve the above problems.

[0005] According to one aspect of the present application, a method for assembling a fuse protection box is provided, the method comprising:

[0006] Acquire an assembly image of each assembly component after assembly according to the assembly sequence of the fuse protection box, and extract the outline of the assembly component and the outline of the embedded component from the assembly image;

[0007] According to the discrete degree of the grayscale values ​​of all pixels in each assembly image, combined with the difference characteristics of the grayscale distribution of pixels on the edge line and the distribution of the grayscale gradient of all pixels, the quality performance value of each assembly image is obtained;

[0008] Obtaining a figure formed by the outline of the assembly component and the outline of the embedded component corresponding to each assembly image, combining the distance between the outline of the assembly component and the outline of the embedded component and the quality performance value to obtain the assembly tightness of each assembly component;

[0009] The distance between the assembly components and the distance between the embedded components in each assembly image is combined with the assembly tightness to obtain the assembly qualification rate of each assembly component; based on the assembly qualification rate, the quality inspection result of each assembly component of the fuse protection box is obtained.

[0010] The step of extracting the outline of the assembly component and the outline of the embedded component from the assembly image is as follows:

[0011] The edge detection result of each assembly image is compared with the edge detection result of the assembly image corresponding to the assembly component assembled the previous time, and the outer contour of the newly added area of ​​the edge detection result is used as the contour of the assembly component corresponding to each assembly image;

[0012] According to the shape features of the embedded components corresponding to each assembly component on the design drawing, the outline of the embedded components corresponding to each assembly component is extracted using the template matching method.

[0013] The quality performance value of each assembly image is obtained as follows:

[0014] Calculate the variance of the grayscale values ​​of all pixels in each assembly image; obtain the grayscale mean of all pixels on each edge line in each assembly image, and calculate the absolute value of the difference between the grayscale means of any two edge lines; average the absolute values ​​of the difference of all pairwise combinations of edge lines; and take the product of the average, the grayscale mean, and the variance as the quality performance value of each assembly image.

[0015] The obtaining of the assembly tightness of each assembly component is specifically as follows:

[0016] According to the difference between the graphic area enclosed by the outline of the assembly component corresponding to each assembly image and the graphic area enclosed by the outline of the embedded component, combined with the quality performance value, the assembly matching degree of each assembly component is obtained;

[0017] The average value of the minimum distances between all outline pixel points of the assembly component and the outline pixel points of the embedded component is calculated and recorded as the distance mean; the assembly tightness of each assembly component is obtained according to the negative correlation mapping of the distance mean and the assembly matching degree.

[0018] The assembly matching degree of each assembly component is obtained as follows:

[0019] The number of pixels within the outline of the embedded component in each assembly image is obtained, which is recorded as a first area; the number of pixels within the outline of the assembly component in each assembly image is obtained, which is recorded as a second area;

[0020] recording the difference between the first area and the second area as the area difference;

[0021] Based on the area difference and in combination with the quality performance value, the assembly matching degree of each assembly component is obtained; wherein the assembly matching degree is negatively correlated with the area difference and positively correlated with the quality performance value.

[0022] The assembly matching degree is specifically the ratio of the quality performance value to the area difference.

[0023] The process of obtaining the assembly qualification rate of each assembly component includes:

[0024] The centroid position of the image formed by the outline of the corresponding assembly component in each assembly image is recorded as the first centroid; the centroid position of the image formed by the outline of the corresponding embedded component in each assembly image is recorded as the second centroid;

[0025] The centroid position of the image formed by the outline of the assembly component corresponding to the previous assembly image of each assembly image is recorded as the third centroid; the centroid position of the image formed by the outline of the embedded component corresponding to the previous assembly image of each assembly image is recorded as the fourth centroid;

[0026] Calculate the distance between the first centroid and the third centroid, recorded as the first distance; obtain the distance between the second centroid and the fourth centroid, recorded as the second distance;

[0027] A negative correlation mapping result of the absolute value of the difference between the first distance and the second distance is calculated, and multiplied by the assembly tightness of each assembly component to obtain the assembly qualification rate of each assembly component.

[0028] Wherein, obtaining the quality inspection result of each assembly component of the fuse protection box includes:

[0029] Normalize the quality inspection pass rate of each assembly component;

[0030] When the normalized value of the quality inspection pass rate is greater than the preset quality inspection threshold, the quality inspection is passed; otherwise, the quality inspection is unqualified.

[0031] According to another aspect of the present application, an assembly quality inspection device for a fuse protection box is provided, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor implements the steps of any one of the above methods when executing the computer program.

[0032] According to another aspect of the present application, an assembly quality inspection system for a fuse protection box is provided, wherein a computer program is stored in the system, and when the computer program is executed by a processor, any one of the above-mentioned assembly quality inspection methods is implemented.

[0033] This application has at least the following beneficial effects:

[0034] Since the assembly of the fuse protection box is sequential, the present application obtains the assembly image of each assembly component after assembly according to the assembly sequence of the fuse protection box, and extracts the outline of the assembly component and the outline of the embedded component from the assembly image; this helps to monitor and record the quality of each assembly link in real time, and provides a basis for the subsequent assembly quality analysis of each assembly component; since the image quality will also affect the subsequent evaluation of the assembly quality of the assembly component, each assembly image is analyzed to obtain the quality performance value of each assembly image, evaluate the clarity of the assembly image, and quantify the image quality; obtain the outline of the assembly component and the figure enclosed by the outline of the embedded component corresponding to each assembly image, combine the distance between the outline of the assembly component and the outline of the embedded component, and combine the quality performance value to obtain the assembly tightness of each assembly component, which has the beneficial effect of being able to It is able to accurately obtain the gap information between each assembly component and its corresponding embedded component, so as to quantify the assembly quality of the component; by analyzing the size of the gap, it is possible to monitor in real time whether there is a deviation in the assembly process, promptly discover possible poor assembly or mismatch, and avoid the product from affecting performance and reliability due to improper assembly; further, for the distance between the assembly components and the distance between the embedded components in each assembly image, combined with the assembly tightness, the assembly qualification rate of each assembly component is obtained, and based on the assembly qualification rate, the quality inspection result of each assembly component of the fuse protection box is obtained, which has the beneficial effect that the assembly qualification rate further measures the possibility of mechanical interference between adjacently installed assembly components, more accurately reflects the assembly quality of the assembly components, improves the accuracy of the quality inspection result of each assembly component, and promptly discovers and corrects problems in the assembly process. BRIEF DESCRIPTION OF THE DRAWINGS

[0035] Figure 1 A flowchart of the steps of the assembly quality inspection method for the fuse protection box provided in the present application;

[0036] Figure 2 Schematic diagram of obtaining the quality inspection results of the assembly components provided in this application. DETAILED DESCRIPTION

[0037] In the description of the embodiments of the present application, words such as "exemplary", "or", "for example" and the like are used to indicate examples, illustrations or descriptions. Any embodiment or design described as "exemplary" or "for example" in the embodiments of the present application should not be interpreted as being more preferred or more advantageous than other embodiments or designs. Specifically, the use of words such as "exemplary", "or", "for example" and the like is intended to present related concepts in a concrete manner.

[0038] Unless otherwise defined, all technical and scientific terms used herein have the same meaning as those commonly understood by those skilled in the art in the present application. The terms used in the specification of the present application are only for the purpose of describing specific embodiments and are not intended to limit the present application.

[0039] It should also be noted that the terms "first" and "second" in this application and the accompanying drawings are used to distinguish similar objects, rather than to describe a specific order or sequence. The method disclosed in the embodiments of the present application or the method shown in the flowchart includes one or more steps for implementing the method. Without departing from the scope of the present application, the execution order of multiple steps can be interchanged with each other, and some steps can also be deleted.

[0040] See also Figure 1 , which shows a flowchart of the steps of an assembly quality inspection method for a fuse protection box provided by an embodiment of the present application, the method comprising the following steps:

[0041] Step 1: Obtain an assembly image of each assembly component after assembly according to the assembly sequence of the fuse protection box, and extract the contour of the assembly component and the contour of the embedded component from the assembly image.

[0042] During the assembly process of the fuse protection box, it is usually necessary to follow a specific order to ensure the accurate assembly of each component. In order to ensure the smooth progress of the assembly process, the present application performs assembly in a predetermined assembly order. However, due to external factors or slight displacement of the protection box during the assembly process, the assembly components may be misaligned with the embedded components, thereby affecting the assembly quality. In order to solve this problem, the present application performs quality inspection by assembling cameras at multiple angles after each component is assembled.

[0043] In the process of assembly quality inspection of the fuse plate protection box, quality inspection is performed on individual assembly components after assembly to ensure that each part in the assembly process can achieve a high assembly quality, so as to ensure the safety and reliability of the entire protection box. The present application obtains assembly images through the camera directly above the fuse plate protection box to ensure the subsequent analysis of the accurate docking of each component and the compliance of the assembly quality. Since high-quality images provide accurate data support for the subsequent assembly quality inspection of the fuse plate protection box, the reliability of the protection box in practical applications can also be improved through the test results. Therefore, the present application performs a Laplace transform on the acquired image to improve the image quality; the implementer can select a suitable image enhancement algorithm to process the image, and the present application does not impose any restrictions on this.

[0044] Perform edge detection on the assembly image and assembly gap image after each assembly component is assembled; compare the edge detection result of each assembly image with the edge detection result of the assembly image corresponding to the assembly component assembled the previous time, and use the outer contour of the newly added area in the edge detection result as the contour of each assembly component; according to the shape features of the embedded components corresponding to each assembly component on the design drawing, use the template matching method to extract the contour of the embedded components corresponding to each assembly component. In this embodiment, the Sum of Squared Differences (SSD) matching algorithm is used, which is a well-known technology and will not be described in detail in this application.

[0045] It should be noted that during the assembly process of the fuse plate protection box, the position of the fuse plate protection box is fixed, the camera for collecting the assembly image is fixed, and the size of the collected image is also fixed; therefore, each time an assembly component is assembled, only the area of ​​the newly assembled assembly component changes in the edge detection result; the assembly area of ​​the first assembly component is obtained by comparing with the image of the fuse plate protection box obtained before the assembly of the first assembly component.

[0046] Based on this, each assembly image has an assembly component corresponding to the serial number of the assembly image and an embedded component corresponding to the assembly component; in addition, each assembly image also has assembly components and embedded components corresponding to all assembly images before the assembly serial number.

[0047] Step 2: According to the discrete degree of the grayscale values ​​of all pixels in each assembly image, combined with the difference characteristics of the grayscale distribution of pixels on the edge line and the distribution of the grayscale gradient of all pixels, the quality performance value of each assembly image is obtained.

[0048] During the quality inspection of the assembly of the fuse protection box, evaluating the quality of the collected images is a crucial step. The Sobel operator is used to obtain the grayscale gradient of the pixel points in each assembly image; in this embodiment, the degree of discreteness is obtained in the form of variance; the quality performance value is specifically: calculating the variance of the grayscale values ​​of all pixels in each assembly image; obtaining the grayscale mean of all pixels on each edge line in each assembly image, and calculating the absolute value of the difference between the grayscale means of any two edge lines; averaging the absolute values ​​of the difference of all the edge lines in pairs; and taking the product of the average value, the grayscale mean, and the variance as the quality performance value of each assembly image.

[0049] The higher the quality performance value of the assembly image, the greater the variance of the pixel grayscale in the image and the larger the average gradient of the image. A clear image usually has a stronger gradient and a more dispersed grayscale distribution, showing a clear contrast between light and dark. In addition, the grayscale difference between edge lines is large, which indicates that the details of the image are clear and the edges are sharper. Therefore, when the quality performance value of the image is large, it means that the clarity of the assembly image is high, and the details are clearer and more recognizable.

[0050] Step 3: Obtain the figure enclosed by the outline of the assembly component and the outline of the embedded component corresponding to each assembly image, combine the distance between the outline of the assembly component and the outline of the embedded component, and combine the quality performance value to obtain the assembly tightness of each assembly component.

[0051] The quality performance value of the assembly image can reflect the clarity of the image, and the clarity of the image may cause a certain deviation in the assembly quality inspection results. In order to ensure that the assembly components can be firmly fixed in the protective box, in addition to testing the overall quality of the assembly, it is also necessary to further analyze the fit between the assembly components and the embedded components.

[0052] The number of pixels in the image enclosed by the outline of the embedded component in each assembly image is obtained, which is recorded as the first area; the number of pixels in the image enclosed by the outline of the assembly component in each assembly image is obtained, which is recorded as the second area; the difference between the first area and the second area is recorded as the area difference; based on the area difference and in combination with the quality performance value, the assembly matching degree of each assembly component is obtained; wherein the assembly matching degree is negatively correlated with the area difference and positively correlated with the quality performance value.

[0053] It should be noted that a positive correlation indicates that as one variable increases, another variable also increases; a negative correlation indicates that as one variable increases, another variable also decreases; in addition, the number of pixels in the image surrounded by the contour includes the number of pixels in the contour and the number of pixels through which the contour passes.

[0054] In this embodiment, a difference is used to measure the difference between the two areas, and the ratio of the quality performance value to the area difference is used as the assembly matching degree. It should be noted that if the image area enclosed by the outline of the embedded component in each assembly image is less than or equal to the image area enclosed by the outline of the assembly component, the assembly matching degree is 0.

[0055] The greater the assembly matching degree, the better the image quality is and the smaller the difference between the size of the embedded component and the size of the assembly component is after the assembly component is assembled, and the better the matching degree between the assembly component and the embedded component is during the assembly process.

[0056] Since the assembly component needs to be embedded in the embedded component, the size of the part must be smaller than the size of the embedded component. In this case, the distance between the edge contour of the embedded component and the edge contour of the assembly component should be evenly arranged. Therefore, according to the distance distribution of the contour between each assembly component and the corresponding embedded component, combined with the assembly matching degree, the assembly tightness of each assembly component is obtained: the average value of the minimum distance between all contour pixel points of the assembly component and the contour pixel points of the embedded component is calculated, recorded as the distance mean; according to the negative correlation mapping of the distance mean, combined with the assembly matching degree, the assembly tightness of each assembly component is obtained.

[0057] In this embodiment, the distance between pixels is measured by Euclidean distance; the assembly tightness is specifically the ratio of the assembly matching degree to the distance mean.

[0058] Among them, the smaller the mean distance between all contour pixel points of the assembly component and the corresponding contour pixel points of the embedded component, the more likely it is that the assembly component is embedded in the embedded component or placed in the center of the embedded component, which also means that the matching reliability of the assembly component is higher, which means that the higher the assembly tightness of the assembly component during the protective box assembly process, which also means that the possibility of good assembly quality of the part is higher; conversely, the larger the mean distance between all contour pixel points of the assembly component and the corresponding embedded component contour pixel points, it means that in the assembly image of the assembly component, the gap between the assembly component and the embedded component of the protective box may be larger. This situation may be caused by the difference in assembly components, or it may be caused by poor assembly quality, which makes the assembly tightness lower.

[0059] Step 4: for each assembly image, the distance between the assembly components and the distance between the embedded components are combined with the assembly tightness to obtain the assembly qualification rate of each assembly component; based on the assembly qualification rate, the quality inspection result of each assembly component of the fuse protection box is obtained.

[0060] During the assembly of the fuse protection box, testing the assembly quality can effectively improve the efficiency of the assembly process and the quality of the protection box, ensuring that there will be no excessive impact in the subsequent assembly process. Therefore, it is necessary to conduct quality inspections on each assembly step to find and correct problems in advance and ensure the consistency of the fuse protection and assembly process.

[0061] According to the distances between assembly components and the distances between embedded components in each assembly image, combined with the assembly tightness, the assembly qualified rate of each assembly component is obtained: the centroid position of the image formed by the outline of the corresponding assembly component in each assembly image is recorded as the first centroid; the centroid position of the image formed by the outline of the corresponding embedded component in each assembly image is recorded as the second centroid; the centroid position of the image formed by the outline of the corresponding assembly component in the previous assembly image of each assembly image is recorded as the third centroid; the centroid position of the image formed by the outline of the corresponding embedded component in the previous assembly image of each assembly image is recorded as the fourth centroid; the distance between the first centroid and the third centroid is calculated, recorded as the first distance; the distance between the second centroid and the fourth centroid is obtained, recorded as the second distance; the negative correlation mapping result of the absolute value of the difference between the first distance and the second distance is calculated, and multiplied by the assembly tightness of each assembly component to obtain the assembly qualified rate of each assembly component.

[0062] It should be noted that the assembly qualification rate of the first assembly component is equal to its assembly tightness.

[0063] In this embodiment, the distance between the centroids is Euclidean distance, and the negative correlation mapping result of a variable is measured by the reciprocal of the variable, that is, the assembly qualification rate is specifically: the reciprocal of the absolute value of the difference between the first distance and the second distance is calculated, and the product of the reciprocal and the assembly tightness is used as the assembly qualification rate. It should be noted that in order to avoid the situation where the denominator is zero, a preset value needs to be added to the denominator, and the preset value is 0.1 in the embodiment.

[0064] The difference between the first distance and the second distance can measure the mechanical interference of the assembly component. The smaller the difference is, it means that during the assembly process in sequence, the distance between the assembly component and the previous assembly component meets the requirements of quality inspection and will not cause mechanical interference between parts. The higher the assembly qualification rate is, it means that the assembly quality of the assembly component is good and the quality inspection result meets the standard.

[0065] According to the quality inspection pass rate of each assembly component, the quality inspection result of each assembly component of the fuse protection box is obtained: the quality inspection pass rate of each assembly component is normalized. This embodiment uses the sigmoid function as the normalization function, which can be determined by the implementer according to the actual situation; when the normalized value of the quality inspection pass rate is greater than the preset quality inspection threshold, the corresponding assembly component is judged to meet the assembly standard and pass the quality inspection, and the next assembly operation can be performed; otherwise, the corresponding assembly component is judged to not meet the assembly standard and fail the quality inspection. In this embodiment, the quality inspection threshold is 0.8, which can be adjusted by the implementer according to the actual situation.

[0066] During the assembly of the protective box, establishing a standardized inspection process for each assembly component helps accumulate and summarize operational experience. In addition, the quality inspection data records of individual parts can provide detailed basis for problem tracing and analysis, supporting subsequent quality improvement measures. By promptly discovering and correcting problems in the early stages of assembly, rework and scrap can be effectively reduced, and material and labor costs can be reduced, thereby ensuring the consistency and reliability of the overall product performance.

[0067] Among them, the schematic diagram of obtaining the quality inspection results of the assembly components is as follows: Figure 2 shown.

[0068] Based on the same concept as the method embodiment of the present application, an assembly quality inspection device for a fuse protection box is provided, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, wherein the processor implements the steps of any one of the above methods when executing the computer program.

[0069] Based on the same concept as the method embodiment of the present application, an assembly quality inspection system for a fuse protection box is provided, wherein a computer program is stored in the system, and when the computer program is executed by a processor, any one of the above-mentioned assembly quality inspection methods is implemented.

[0070] In summary, since the assembly of the fuse protection box is sequential, the present application obtains the assembly image of each assembly component after assembly according to the assembly sequence of the fuse protection box, and extracts the outline of the assembly component and the outline of the embedded component from the assembly image; this helps to monitor and record the quality of each assembly link in real time, and provides a basis for the subsequent assembly quality analysis of each assembly component; since the image quality will also affect the subsequent evaluation of the assembly quality of the assembly component, each assembly image is analyzed to obtain the quality performance value of each assembly image, evaluate the clarity of the assembly image, and quantify the quality of the image; obtain the outline of the assembly component and the figure enclosed by the outline of the embedded component corresponding to each assembly image, combine the distance between the outline of the assembly component and the outline of the embedded component, and combine the quality performance value to obtain the assembly tightness of each assembly component, which has beneficial effects. The purpose is to accurately obtain the gap information between each assembly component and its corresponding embedded component, so as to quantify the assembly quality of the component; by analyzing the size of the gap, it is possible to monitor in real time whether there is a deviation in the assembly process, and promptly discover possible poor assembly or mismatch, so as to avoid the product from affecting performance and reliability due to improper assembly; further, for the distance between the assembly components and the distance between the embedded components in each assembly image, combined with the assembly tightness, the assembly qualification rate of each assembly component is obtained, and based on the assembly qualification rate, the quality inspection result of each assembly component of the fuse protection box is obtained, which has the beneficial effect that the assembly qualification rate further measures the possibility of mechanical interference between adjacent installed assembly components, more accurately reflects the assembly quality of the assembly components, improves the accuracy of the quality inspection result of each assembly component, and promptly discovers and corrects problems in the assembly process.

[0071] It should be noted that the flowcharts and block diagrams in the accompanying drawings show the possible architecture, functions and operations of the system, method and computer program product according to the embodiments of the present application. In this regard, each box in the flowchart or block diagram can represent a module, a program segment or a part of a code, and the module, a program segment or a part of a code contains one or more executable instructions for realizing the specified logical function. In some alternative implementations, the functions marked in the box can also occur in an order different from that marked in the accompanying drawings. For example, two consecutive boxes can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. In the description corresponding to the flowchart and block diagram in the accompanying drawings, the operations or steps corresponding to different boxes can also occur in an order different from that disclosed in the description, and sometimes there is no specific order between different operations or steps. For example, two consecutive operations or steps can actually be executed substantially in parallel, and they can sometimes be executed in the opposite order, which can depend on the functions involved. Each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, may be implemented by a dedicated hardware-based system that performs the specified functions or actions, or may be implemented by a combination of dedicated hardware and computer instructions.

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

Claims

1. The assembly quality inspection method for the fuse protection box is characterized by: The method comprises the following steps: Acquire an assembly image of each assembly component after assembly according to the assembly sequence of the fuse protection box, and extract the contour of the assembly component and the contour of the embedded component from the assembly image; According to the discrete degree of the grayscale values ​​of all pixels in each assembly image, combined with the difference characteristics of the grayscale distribution of pixels on the edge line and the distribution of the grayscale gradient of all pixels, the quality performance value of each assembly image is obtained; Obtaining a figure formed by the outline of the assembly component and the outline of the embedded component corresponding to each assembly image, combining the distance between the outline of the assembly component and the outline of the embedded component and the quality performance value to obtain the assembly tightness of each assembly component; According to the distance between the assembly components and the distance between the embedded components in each assembly image, combined with the assembly tightness, the assembly qualification rate of each assembly component is obtained; based on the assembly qualification rate, the quality inspection result of each assembly component of the fuse protection box is obtained; The assembly matching degree of each assembly component is obtained as follows: The number of pixels within the outline of the embedded component in each assembly image is obtained, which is recorded as a first area; the number of pixels within the outline of the assembly component in each assembly image is obtained, which is recorded as a second area; recording the difference between the first area and the second area as the area difference; Based on the area difference and in combination with the quality performance value, the assembly matching degree of each assembly component is obtained; wherein the assembly matching degree is negatively correlated with the area difference and positively correlated with the quality performance value; The assembly matching degree is specifically a ratio of the quality performance value to the area difference.

2. The assembly quality inspection method for the fuse protection box according to claim 1, characterized in that: The step of extracting the outline of the assembly component and the outline of the embedded component from the assembly image is specifically as follows: The edge detection result of each assembly image is compared with the edge detection result of the assembly image corresponding to the assembly component assembled the previous time, and the outer contour of the newly added area of ​​the edge detection result is used as the contour of the assembly component corresponding to each assembly image; According to the shape features of the embedded components corresponding to each assembly component on the design drawing, the outline of the embedded components corresponding to each assembly component is extracted using the template matching method.

3. The assembly quality inspection method for the fuse protection box according to claim 1, characterized in that: The quality performance value of each assembly image is obtained as follows: Calculate the variance of the grayscale values ​​of all pixels in each assembly image; obtain the grayscale mean of all pixels on each edge line in each assembly image, and calculate the absolute value of the difference between the grayscale means of any two edge lines; average the absolute values ​​of the difference of all pairwise combinations of edge lines; and take the product of the average, the grayscale mean, and the variance as the quality performance value of each assembly image.

4. The assembly quality inspection method for the fuse protection box according to claim 1, characterized in that: The assembly tightness of each assembly component is obtained as follows: According to the difference between the graphic area enclosed by the outline of the assembly component corresponding to each assembly image and the graphic area enclosed by the outline of the embedded component, combined with the quality performance value, the assembly matching degree of each assembly component is obtained; The average value of the minimum distances between all outline pixel points of the assembly component and the outline pixel points of the embedded component is calculated, which is recorded as the distance mean; according to the negative correlation mapping of the distance mean and the assembly matching degree, the assembly tightness of each assembly component is obtained.

5. The assembly quality inspection method for the fuse protection box according to claim 1, characterized in that: The process of obtaining the assembly qualification rate of each assembly component comprises: The centroid position of the image formed by the outline of the corresponding assembly component in each assembly image is recorded as the first centroid; the centroid position of the image formed by the outline of the corresponding embedded component in each assembly image is recorded as the second centroid; The centroid position of the image formed by the outline of the assembly component corresponding to the previous assembly image of each assembly image is recorded as the third centroid; the centroid position of the image formed by the outline of the embedded component corresponding to the previous assembly image of each assembly image is recorded as the fourth centroid; Calculate the distance between the first centroid and the third centroid, recorded as the first distance; obtain the distance between the second centroid and the fourth centroid, recorded as the second distance; A negative correlation mapping result of the absolute value of the difference between the first distance and the second distance is calculated, and multiplied by the assembly tightness of each assembly component to obtain the assembly qualification rate of each assembly component.

6. The assembly quality inspection method for the fuse protection box according to claim 1, characterized in that: The quality inspection results of each assembly component of the fuse protection box are obtained, including: Normalize the quality inspection pass rate of each assembly component; When the normalized value of the quality inspection pass rate is greater than the preset quality inspection threshold, the quality inspection is passed; otherwise, the quality inspection is unqualified.

7. An assembly quality inspection device for a fuse protection box, comprising a memory, a processor, and a computer program stored in the memory and running on the processor, characterized in that: When the processor executes the computer program, the steps of the method according to any one of claims 1 to 6 are implemented.

8. An assembly quality inspection system for a fuse protection box, wherein a computer program is stored in the system, characterized in that: When the computer program is executed by a processor, the assembly quality inspection method according to any one of claims 1 to 6 is implemented.

Citation Information

Patent Citations

  • Assembly detection method and device and storage medium

    CN117422714A