Method and device for detecting defects of air conditioner fins
By using Hough ellipse detection and linear analysis technology, the defect location of air conditioner fins can be automatically identified, solving the problem of low efficiency of manual inspection in the stamping process of air conditioner fins, and realizing rapid and economical defect tracing and fault location.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- GREE ELECTRIC APPLIANCE INC OF ZHUHAI
- Filing Date
- 2024-09-13
- Publication Date
- 2026-04-28
AI Technical Summary
In the existing technology, the stamping process of air conditioner fins relies on manual inspection, which cannot achieve automated defect detection, resulting in low efficiency. Furthermore, replacing or improving the stamping mold is costly and time-consuming.
The top view image of the air conditioner fins is analyzed using the Hough ellipse detection method. The defect location is determined by dividing the ellipse region and the minor axis length. Combined with the Hough line detection and the rectangular coordinate system, the stamping perforation defect is automatically identified.
It has enabled automated detection of defects in air conditioner fins, improved detection efficiency, reduced the cost and cycle of mold improvement, and quickly located the problem points.
Smart Images

Figure CN119147543B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of image processing technology, and more specifically, to a method and apparatus for detecting defects in air conditioner fins. Background Technology
[0002] Air conditioner evaporators are made up of layers of stacked fins. During manufacturing, the sheet metal fins are formed by stamping and piercing with a die. If the stamping die is worn and the penetration speed and force are uneven, the fins will spring back, causing the fins to not be able to be stacked properly. This results in the need for manual piercing to clear the holes during subsequent copper tube assembly. In severe cases, the copper tubes may be scratched or assembly may not be possible. Currently, fin performance testing relies on manual visual inspection by quality inspectors, which is labor-intensive and cannot automatically trace defects in stamped fins. The only solutions are to improve the entire stamping process or replace the die, resulting in high material costs and long development cycles.
[0003] There is currently no effective solution to the above problems. Summary of the Invention
[0004] This invention provides a method and apparatus for detecting defects in air conditioner fins, thereby at least solving the technical problem in the related art where the air conditioner fin stamping process can only rely on quality inspectors to detect fin performance, and cannot automatically detect it, resulting in low efficiency.
[0005] According to one aspect of the present invention, a method for detecting defects in air conditioner fins is provided, comprising: acquiring a fin image of the air conditioner fins after a stamping and piercing operation is performed, wherein the fin image is a top view of the air conditioner fins; performing Hough ellipse detection on the fin image to obtain all ellipses in the fin image; dividing all ellipses into regions according to the direction of the major axis of each of the ellipses to obtain multiple elliptical regions; determining the location of stamping and piercing defects in the multiple elliptical regions according to the length of the minor axis of each ellipse in each of the multiple elliptical regions; and determining all stamping and piercing defect locations of the air conditioner fins according to the locations of each stamping and piercing defect.
[0006] Optionally, acquiring the fin image of the air conditioner fins includes: generating an image acquisition command after determining that the air conditioner fins have completed the stamping and piercing operation; sending the image acquisition command to an image acquisition component to acquire the fin image of the air conditioner fins using the image acquisition component.
[0007] Optionally, the ellipses are divided into multiple elliptical regions based on the direction of their major axes. This includes: extracting major axis information for each ellipse to determine its major axis; performing Hough line detection on the major axis of each ellipse to obtain its slope; determining the slope difference between the slopes of the major axes of each ellipse; comparing each slope difference with a slope difference threshold to obtain a comparison result; and grouping ellipses with slope differences less than the slope difference threshold into the same region to obtain the multiple elliptical regions.
[0008] Optionally, the defect detection method for air conditioner fins further includes: establishing a rectangular coordinate system where the fin image is located, and labeling all the ellipses in the rectangular coordinate system; detecting the position information of all the ellipses in the rectangular coordinate system; detecting whether there is a normal circle in each adjacent graphic of all the ellipses according to the position information, and obtaining a detection result; when the detection result indicates that there is a normal circle, then marking the graphic as a normal circle; using all the normal circles as interval boundaries to separate the perforated image of the fin image that has been subjected to punching springback from the perforated image that has not been subjected to punching springback.
[0009] Optionally, determining the location of the stamping perforation defect in the plurality of elliptical regions based on the minor axis length of each ellipse in each region includes: determining the minor axis of each ellipse in each region of the plurality of elliptical regions; performing length detection on each minor axis to obtain the minor axis length of each minor axis; determining a plurality of target minor axes whose length is less than a minor axis length threshold among the minor axis lengths; and determining the location of the stamping perforation defect in the plurality of elliptical regions based on the plurality of target minor axes.
[0010] Optionally, determining the location of the punching puncture defect in the plurality of elliptical regions based on the plurality of target minor axes includes: determining a plurality of target ellipses corresponding to the plurality of target minor axes; when determining that there are multiple defect elliptical regions with more than one target ellipse in the plurality of elliptical regions based on the elliptical regions where the plurality of target ellipses are located, determining the positional relationship between the target ellipses in the multiple defect elliptical regions; determining the location of the punching puncture defect in the multiple defect elliptical regions based on the positional relationship; and determining the location of the punching puncture defect in the non-multiple defect elliptical regions based on the position of the target ellipse in the non-multiple defect elliptical regions of the plurality of elliptical regions.
[0011] Optionally, determining the location of the punching puncture defect in the multi-defect elliptical region based on the positional relationship includes: when the target ellipse in the multi-defect elliptical region is determined to be an adjacent ellipse based on the positional relationship, determining the location of the target ellipse with the shortest minor axis among all the target ellipses in the multi-defect elliptical region as the location of the punching puncture defect in the multi-defect elliptical region; when the target ellipse in the multi-defect elliptical region is determined to be a non-adjacent ellipse based on the positional relationship, determining the locations of all the target ellipses in the multi-defect elliptical region as the location of the punching puncture defect in the multi-defect elliptical region.
[0012] According to another aspect of the present invention, a defect detection device for air conditioner fins is also provided, comprising: a data acquisition module, configured to acquire a fin image of the air conditioner fin after the air conditioner fin has undergone a stamping and piercing operation, wherein the fin image is a top view of the air conditioner fin; a first detection module, configured to perform Hough ellipse detection on the fin image to obtain all ellipses in the fin image; a division module, configured to divide all ellipses into regions according to the direction of the major axis of each of the ellipses, to obtain multiple elliptical regions; a first determination module, configured to determine the location of stamping and piercing defects in the multiple elliptical regions according to the length of the minor axis of each ellipse in each region; and a second determination module, configured to determine the locations of all stamping and piercing defects in the air conditioner fin according to the locations of each stamping and piercing defect.
[0013] Optionally, the acquisition module includes: a generation unit, configured to generate an image acquisition command after determining that the air conditioner fins have completed the stamping and piercing operation; and an acquisition unit, configured to send the image acquisition command to an image acquisition component, so as to acquire the fin image of the air conditioner fins using the image acquisition component.
[0014] Optionally, the segmentation module includes: an extraction unit for extracting major axis information for each of all ellipses to determine the major axis of each of all ellipses; a first detection unit for performing Hough line detection on the major axis of each of all ellipses to obtain the slope of the major axis of each of all ellipses; a first determination unit for determining the slope difference between the slopes of the major axes of each of all ellipses; a comparison unit for comparing each slope difference with a slope difference threshold to obtain a comparison result; and an acquisition unit for dividing the ellipses whose slope difference is less than the slope difference threshold in the comparison result into the same region to obtain the plurality of elliptical regions.
[0015] Optionally, the defect detection device for air conditioner fins further includes: a processing module for establishing a rectangular coordinate system where the fin image is located and labeling all the ellipses in the rectangular coordinate system; a second detection module for detecting the position information of all the ellipses in the rectangular coordinate system; a third detection module for detecting whether there is a normal circle in each of the adjacent graphics of all the ellipses according to the position information, and obtaining a detection result; a marking module for marking the graphics as normal circles when the detection result indicates the presence of normal circles; and a segmentation module for using all the normal circles as interval boundaries to separate the perforated images in the fin image that have been subjected to punching springback from the perforated images that have not been subjected to punching springback.
[0016] Optionally, the first determining module includes: a second determining unit, configured to determine the minor axis of each ellipse in each of the plurality of elliptical regions; a second detecting unit, configured to perform length detection on each minor axis to obtain the minor axis length of each minor axis; a third determining unit, configured to determine a plurality of target minor axes whose length is less than a minor axis length threshold among the minor axis lengths; and a fourth determining unit, configured to determine the location of the punching perforation defect in the plurality of elliptical regions based on the plurality of target minor axes.
[0017] Optionally, the fourth determining unit includes: a first determining subunit, used to determine multiple target ellipses corresponding to the multiple target minor axes; a second determining subunit, used to determine the positional relationship between the target ellipses within the multiple defect elliptical regions when multiple defect elliptical regions containing more than one target ellipse are determined based on the elliptical regions where the multiple target ellipses are located; a third determining subunit, used to determine the position of the stamping perforation defect in the multiple defect elliptical regions based on the positional relationship; and a fourth determining subunit, used to determine the position of the stamping perforation defect in the non-multi-defect elliptical regions based on the position of the target ellipse in the non-multi-defect elliptical regions of the multiple elliptical regions.
[0018] Optionally, the third determining subunit includes: when the fifth determining subunit determines that the target ellipse in the multi-defect elliptical region is an adjacent ellipse according to the positional relationship, the position corresponding to the target ellipse with the shortest minor axis among all the target ellipses in the multi-defect elliptical region is the position of the stamping puncture defect in the multi-defect elliptical region; when the sixth determining subunit determines that the target ellipse in the multi-defect elliptical region is a non-adjacent ellipse according to the positional relationship, the positions of all the target ellipses in the multi-defect elliptical region are the positions of the stamping puncture defect in the multi-defect elliptical region.
[0019] According to another aspect of the present invention, a computer-readable storage medium is also provided, the computer-readable storage medium including a stored program, wherein the program executes the defect detection method for air conditioner fins described in any one of the above embodiments.
[0020] According to another aspect of the present invention, a processor is also provided, the processor being configured to run a program, wherein the program, when running, executes the defect detection method for air conditioner fins as described in any one of the above embodiments.
[0021] According to another aspect of the present invention, a computer program product is also provided, including computer instructions, which, when executed by a processor, perform the defect detection method for air conditioner fins described in any one of the above embodiments.
[0022] In this embodiment of the invention, after the air conditioner fins have undergone the stamping and piercing operation, an image of the air conditioner fins is acquired, wherein the fin image is a top view of the air conditioner fins; Hough ellipse detection is performed on the fin image to obtain all ellipses in the fin image; all ellipses are divided into regions according to the direction of the major axis of each of the ellipses, resulting in multiple elliptical regions; the location of the stamping and piercing defects in the multiple elliptical regions is determined according to the length of the minor axis of each ellipse in each of the multiple elliptical regions; and the location of all stamping and piercing defects in the air conditioner fins is determined according to the location of each stamping and piercing defect. Through the technical solution provided by this invention, the purpose of determining the location of stamping and piercing defects in air conditioner fins based on image processing, Hough ellipse recognition, and the distribution characteristics of the air conditioner fin holes, using the information of the major and minor axes of the ellipses, is achieved. This improves the defect detection efficiency of air conditioner fins and solves the technical problem in related technologies where the air conditioner fin stamping process can only rely on quality inspectors to inspect the fin performance, and cannot automatically detect it, resulting in low efficiency. Attached Figure Description
[0023] The accompanying drawings, which are included to provide a further understanding of the invention and form part of this application, illustrate exemplary embodiments of the invention and, together with their description, serve to explain the invention and do not constitute an undue limitation thereof. In the drawings:
[0024] Figure 1 This is a hardware structure block diagram of a mobile terminal for a defect detection method for air conditioner fins according to an embodiment of the present invention.
[0025] Figure 2 This is a flowchart of a defect detection method for air conditioner fins according to an embodiment of the present invention;
[0026] Figure 3 This is a flowchart of an optional defect detection method for air conditioner fins according to an embodiment of the present invention;
[0027] Figure 4 This is a schematic diagram of the spring-loaded perforation of air conditioner fins according to an embodiment of the present invention;
[0028] Figure 5 This is a schematic diagram of the segmentation of the springback area of an air conditioner fin according to an embodiment of the present invention;
[0029] Figure 6 This is a schematic diagram of an air conditioner fin defect detection device according to an embodiment of the present invention. Detailed Implementation
[0030] To enable those skilled in the art to better understand the present invention, the technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings of the embodiments of the present invention. Obviously, the described embodiments are only some embodiments of the present invention, and not all embodiments. Based on the embodiments of the present invention, all other embodiments obtained by those skilled in the art without creative effort should fall within the scope of protection of the present invention.
[0031] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this invention are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate so that the embodiments of the invention described herein can be implemented in orders other than those illustrated or described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover a non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0032] As described in the background section, the air conditioner fin stamping process in related technologies relies solely on quality inspectors to test the fin performance, making automated testing impossible and resulting in low efficiency. To address these shortcomings, embodiments of the present invention provide a method and apparatus for detecting defects in air conditioner fins, a computer-readable storage medium, a processor, and a computer program product.
[0033] The technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.
[0034] The methods and embodiments provided in this invention can be executed on a mobile terminal, a computer terminal, or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 This is a hardware structure block diagram of a mobile terminal for a defect detection method for air conditioner fins according to an embodiment of the present invention. Figure 1 As shown, a mobile terminal may include one or more ( Figure 1 Only one is shown in the diagram. A processor 102 (which may include, but is not limited to, a microprocessor MCU or a programmable logic device FPGA, etc.) and a memory 104 for storing data are also shown. The mobile terminal may further include a transmission device 106 for communication functions and an input / output device 108. Those skilled in the art will understand that... Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the mobile terminal described above. For example, the mobile terminal may also include components that are more... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown.
[0035] The memory 104 can be used to store computer programs, such as application software programs and modules, like the computer program corresponding to the defect detection method for air conditioner fins in this embodiment of the invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, thereby implementing the above-described method. The memory 104 may include high-speed random access memory and non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to the mobile terminal via a network. Examples of the aforementioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. The transmission device 106 is used to receive or send data via a network. Specific examples of the aforementioned networks may include wireless networks provided by the mobile terminal's communication provider. In one example, the transmission device 106 includes a network interface controller (NIC), which can be connected to other network devices via a base station to communicate with the Internet. In one example, the transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0036] According to an embodiment of the present invention, a method embodiment for defect detection of air conditioner fins is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0037] Figure 2 This is a flowchart of a defect detection method for air conditioner fins according to an embodiment of the present invention, as shown below. Figure 2 As shown, the defect detection method for the air conditioner fins includes the following steps:
[0038] Step S202: After the air conditioner fins have completed the stamping and piercing operation, an image of the air conditioner fins is acquired, wherein the fin image is a top view of the air conditioner fins.
[0039] Optionally, the aforementioned air conditioner fins are an internal component of the air conditioner, typically located on the evaporator of the indoor unit. Their function is to increase the surface area of the evaporator for more efficient heat dissipation and cooling. They are usually made of aluminum or copper and have multiple tiny fins, shaped like a honeycomb, designed to increase surface area and allow heat to be transferred to the air more quickly. Through the design of the air conditioner fins, air can flow more effectively through the evaporator, thereby improving the efficiency and performance of the air conditioner.
[0040] Step S204: Perform Hough ellipse detection on the fin image to obtain all ellipses in the fin image.
[0041] Figure 3 This is a flowchart of an optional defect detection method for air conditioner fins according to an embodiment of the present invention, such as... Figure 3 As shown, all ellipses in the fin image can be detected using Hough ellipse detection. That is, after capturing the image of the fins after stamping and perforation, the perforations in the air conditioner fins are normally circular. However, due to uneven stamping pressure and wear of the stamping mold caused by the stamping process, the fins become uneven after springback, resulting in a top-view appearance as shown in the image. Figure 4 ( Figure 4 As shown in the schematic diagram of the air conditioner fin stamping springback perforation according to an embodiment of the present invention, the top view of the fin perforation is elliptical. Based on Hough ellipse detection in image processing, all ellipses in the captured top view are identified.
[0042] Step S206: Divide all ellipses into regions based on the direction of their major axes to obtain multiple elliptical regions.
[0043] In this embodiment, the major axis information of all the identified ellipses can be extracted, such as... Figure 4 As shown, the major axes of ellipses AB, CD, EF, etc. can be used to divide all ellipses into regions based on the direction of the major axes, thus obtaining multiple elliptical regions.
[0044] Step S208: Determine the location of the punching perforation defect in the multiple elliptical regions based on the minor axis length of each ellipse in each region.
[0045] In this embodiment, the location of the punching perforation defect in the multiple elliptical regions can be determined based on the minor axis length of each ellipse in each region.
[0046] Step S210: Determine the locations of all stamping perforation defects in the air conditioner fins based on the locations of each stamping perforation defect.
[0047] As described above, after the air conditioner fins have undergone the stamping and piercing operation, an image of the air conditioner fins is acquired, which is a top view of the air conditioner fins. Hough ellipse detection is performed on the fin image to obtain all ellipses in the fin image. All ellipses are divided into regions based on the direction of their major axis, resulting in multiple elliptical regions. The location of the stamping and piercing defects in the multiple elliptical regions is determined based on the length of the minor axis of each ellipse within each region. Finally, the location of all stamping and piercing defects in the air conditioner fins is determined based on the location of each stamping and piercing defect. This process achieves the goal of determining the location of stamping and piercing defects in the air conditioner fins based on image processing, Hough ellipse recognition, and the distribution characteristics of the air conditioner fin holes, using the information of the major and minor axes of the ellipses. This improves the defect detection efficiency of the air conditioner fins.
[0048] Therefore, the technical solution provided by the above embodiments of the present invention solves the technical problem in the related art that the air conditioner fin stamping process can only rely on quality inspectors to test the fin performance, and cannot automatically test it, resulting in low efficiency.
[0049] According to the above embodiments of the present invention, acquiring fin images of air conditioner fins includes: generating an image acquisition command after determining that the air conditioner fins have completed the stamping and piercing operation; and sending the image acquisition command to an image acquisition component to acquire fin images of the air conditioner fins using the image acquisition component.
[0050] In this embodiment, after the air conditioner fins have completed the stamping and piercing operation, the image acquisition component will be triggered to acquire the fin image of the air conditioner fins in order to perform defect detection of the air conditioner fins.
[0051] According to the above embodiments of the present invention, dividing all ellipses into regions based on the direction of the major axis of each ellipse to obtain multiple elliptical regions may include: extracting major axis information for each ellipse to determine the major axis of each ellipse; performing Hough line detection on the major axis of each ellipse to obtain the slope of the major axis of each ellipse; determining the slope difference between the slopes of the major axes of each ellipse; comparing each slope difference with a slope difference threshold to obtain a comparison result; and grouping ellipses whose slope difference is less than the slope difference threshold into the same region to obtain multiple elliptical regions.
[0052] In this embodiment, such as Figure 3As shown, according to the Hough line detection of the image, the slope of each major axis is detected, such as kAB, kCD, kUV, which represent the slopes of the straight line segments of the major axes of the ellipses AB, CD, and UV. By extracting the slopes of all the major axes of the ellipses, all the major axis slopes such as kAB, kCD, kEF, etc. can be extracted. A slope difference threshold is set, that is, the ellipses with close slopes are divided into one region. For example, if kAB - kCD < k, where k is the slope threshold, then the above region is divided into Figure 4 Region 1, Region 2, and Region 3 in
[0053] According to the above embodiments of the present invention, the method for detecting defects of the air conditioner fins may further include: establishing a rectangular coordinate system where the fin image is located, and marking all the ellipses in the rectangular coordinate system; detecting the position information of all the ellipses in the rectangular coordinate system; detecting whether there are normal circles in the figures adjacent to each of all the ellipses according to the position information to obtain a detection result; when the detection result indicates the existence of a normal circle, marking the figure as a normal circle; using all the normal circles as interval boundaries to separate the perforation images affected by stamping springback in the fin image from the perforation images not affected by stamping springback.
[0054] In this embodiment, it can be recorded that within a certain threshold of the major axis direction, there are normal circular intervals, then these ellipses cannot be divided into one region, that is, separated by normal circles.
[0055] For example, the circles adjacent to the ellipses can be detected as interval boundaries. A rectangular coordinate system is established for the overall captured image. For each ellipse, such as the major axis GH of the ellipse with a slope of kGH, detect the row and column where the ellipse is located, and whether there is a normal circle in the figure adjacent to the ellipse. If so, mark the normal circle, such as Figure 5 ( Figure 5 is a schematic diagram of the segmentation of the stamping springback region of the air conditioner fins according to the embodiments of the present invention), all the blackened circles are normal circles adjacent to the ellipses, and these are all interval boundaries to separate the perforation images affected by stamping springback.
[0056] In addition, the ellipses can be divided into corresponding regions. Specifically, the elliptical perforations have been separated from the normal perforations. Since the perforations of the air conditioner fins are punched by different stamping dies during the stamping process, the wear degree and force uniformity of the dies may cause different springback effects of each perforation after stamping, resulting in different directions of the major axes of the ellipses in the top view of the perforations. Based on the direction of the major axis of the ellipse image, the perforations with the same springback factors can be classified, that is, the Figure 5 ellipses in are classified. The slope of the major axis of the ellipse can better reflect the influence of the force on the ellipse. According to the interval boundaries in the above, Figure 5The ellipse has been divided into the areas of the 1st - 4th rows and 1st - 4th columns, as well as the areas of the 6th - 8th rows and 2nd - 4th columns. At this time, no detailed division has been carried out. The specific division is as follows: Extract the slopes of all the major axes of the ellipses, and all the major axis slopes such as kAB, kCD, kEF,... can be extracted. Set the slope difference threshold, that is, the ellipses with close slopes are divided into one area. For example, if kAB - kCD < k, where k is the slope threshold, then all the ellipse areas corresponding to the fin image are divided into Figure 4 and Figure 5 Region 1, Region 2, and Region 3 in
[0057] According to the above embodiments of the present invention, determining the stamping and perforation defect positions in multiple elliptical regions based on the minor axis lengths of the ellipses in each of the multiple elliptical regions includes: determining the minor axes of the ellipses in each of the multiple elliptical regions; performing length detection on each minor axis to obtain the minor axis lengths of each minor axis; determining multiple target minor axes with lengths less than the minor axis length threshold among the minor axis lengths; and determining the stamping and perforation defect positions in the multiple elliptical regions based on the multiple target minor axes.
[0058] In Region 1, Region 2, and Region 3 divided by the above embodiments, detect the minor axes of the ellipses in each individual region. The shorter the minor axis, the greater the problems such as the force and speed here, and the more serious the distortion and springback. According to the Hough line detection, the length of each minor axis can be detected. According to the minor axes, the shortest minor axis line segments ij, ef, uv are detected, and the corresponding ellipses are located, so that the stamping and perforation defect positions in the multiple elliptical regions can be obtained.
[0059] According to the above embodiments of the present invention, determining the stamping and perforation defect positions in multiple elliptical regions based on the multiple target minor axes includes: determining multiple target ellipses corresponding to the multiple target minor axes; when determining a multi - defect elliptical region with more than one target ellipse in the multiple elliptical regions according to the elliptical regions where the multiple target ellipses are located, determining the positional relationship between the target ellipses in the multi - defect elliptical region; determining the stamping and perforation defect positions in the multi - defect elliptical region according to the positional relationship; and determining the stamping and perforation defect positions in the non - multi - defect elliptical regions according to the positions of the target ellipses in the non - multi - defect elliptical regions of the multiple elliptical regions.
[0060] In this embodiment, in actual process production, since there are more than two problem positions in a certain region, when two problem points act on different positions in a certain region, there will be two ellipses with the shortest minor axes at a certain distance.
[0061] According to the above embodiments of the present invention, determining the stamping perforation defect position in the multi-defect elliptical region according to the positional relationship includes: when it is determined that the inner target ellipse in the multi-defect elliptical region is an adjacent ellipse according to the positional relationship, determining the position corresponding to the target ellipse with the shortest minor axis among all the target ellipses in the multi-defect elliptical region as the stamping perforation defect position of the multi-defect elliptical region; when it is determined that the inner target ellipse in the multi-defect elliptical region is a non-adjacent ellipse according to the positional relationship, determining the positions of all the target ellipses in the multi-defect elliptical region as the stamping perforation defect positions of the multi-defect elliptical region.
[0062] In this embodiment, during actual operation, two ellipses with the shortest minor axes are detected. When the two ellipses are adjacent and enclosed ellipses, one ellipse with the shortest minor axis is retained, and the ellipse position is output, that is, one problem point is output, and this ellipse point is a process problem point; when the two ellipses are non-adjacent ellipses, two ellipses with the shortest minor axes are retained, and the positions of the two ellipses are output, and these two ellipse points are process problem points.
[0063] For example, in Figure 5 region 2, when ef and cd are the shortest, and ef < cd, then the ellipse with the shortest minor axis is retained, that is, the ellipse corresponding to ef is retained, and its process problem point is output; when ef and ab are the shortest, then the ellipses corresponding to ab and ef are retained simultaneously, and these two ellipses are output as process problem points.
[0064] As can be seen from the above, in the embodiments of the present invention, by identifying the ellipses in the fin perforation view, the stamping performance of the fin perforation is detected. Here, the detection can detect the circles adjacent to the ellipses as the interval boundaries to divide the ellipses into corresponding regions; then locate the problem positions in the stamping industry; finally, complete the detection of the stamping process problems, that is, according to the analysis of each ellipse graph, locate the performance points of the process stamping and complete the performance detection of the stamping process springback.
[0065] It should be noted that the solution provided in the above technical solution of the present invention is not limited to the springback of the air conditioner fin stamping, and is also applicable to the springback of other sheet metal stamping materials.
[0066] Therefore, in the embodiments of the present invention, based on the Hough ellipse recognition of image processing, all the ellipses in the air conditioner fin can be recognized, and according to the distribution characteristics of the air conditioner fin holes, the defect regions caused by springback of the fin are preliminarily divided. Then, by using the Hough line detection and the rectangular coordinate system rules, the preliminary defect regions are carefully divided. Then, based on the minor axis of the ellipse, the specific defect positions are recognized.
[0067] The technical solutions provided by the above embodiments of the present invention solve the following technical problems: 1) The air conditioner fin stamping process cannot automatically trace the source of defects; 2) The manufacturing improvement of the air conditioner fin stamping process is costly and time-consuming. Simultaneously, it has the following beneficial effects: 1) Based on image processing and Hough ellipse recognition, according to the distribution characteristics of the air conditioner fin holes, the defect area is initially divided with normal circular holes as intervals, and further subdivided according to the slope of the major axis of the ellipse in the coordinate system. Then, based on the minor axis of the ellipse and the adjacent minor axes, the specific defect location is identified, solving the problem of automatic defect detection and tracing in the stamping process; 2) Based on the automated detection of air conditioner fin stamping defects, the source tracing and fault location of stamping defects are realized. The location of the problem point can be quickly determined, facilitating the discovery and improvement of mold and stamping process problems by technicians, avoiding the need for complete stamping mold improvements or even stamping industrial design, thus solving the problems of high manufacturing costs and long cycles.
[0068] As described above, this method utilizes Hough ellipse recognition based on image processing to identify all ellipses within the air conditioner fin projection image. Based on the distribution characteristics of the fin holes, and using normal, undeformed circular holes as intervals, it initially divides the defective areas caused by springback. Then, applying Hough line detection and Cartesian coordinate system rules, it classifies the slope of the ellipse's major axis in the coordinate system, completing a detailed division of the initial defective areas, i.e., achieving subdivision of different stamping springback areas. Finally, using the ellipse's minor axis as a basis, and judging whether the minor axes are adjacent, it identifies the specific defect location, achieving defect detection of air conditioner fin stamping springback. In other words, based on image processing, Hough ellipse recognition, the distribution characteristics of the air conditioner fin holes, and the analysis of the major and minor axis characteristics of the ellipse, it identifies the specific defect location, achieving automatic traceability of fin stamping defects, improving the efficiency of process improvement, and saving production costs.
[0069] It should be noted that, for the sake of simplicity, the foregoing method embodiments are all described as a series of actions. However, those skilled in the art should understand that this application is not limited to the described order of actions, as some steps may be performed in other orders or simultaneously according to this application. Furthermore, those skilled in the art should also understand that the embodiments described in the specification are preferred embodiments, and the actions and modules involved are not necessarily essential to this application.
[0070] Through the above description of the embodiments, those skilled in the art can clearly understand that the methods according to the above embodiments can be implemented by means of software plus necessary general-purpose hardware platforms. Of course, they can also be implemented by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk) and includes several instructions to cause a terminal device (which may be a mobile phone, computer, server, or network device, etc.) to execute the methods described in the various embodiments of this application.
[0071] According to embodiments of the present invention, an air conditioner fin defect detection device is also provided for implementing the above-described air conditioner fin defect detection method. Figure 6 This is a schematic diagram of an air conditioner fin defect detection device according to an embodiment of the present invention, as shown below. Figure 6 As shown, the device includes: a data acquisition module 601, a first detection module 603, a division module 605, a first determination module 607, and a second determination module 609. The defect detection device for the air conditioner fins will be described below.
[0072] The acquisition module 601 is used to acquire fin images of the air conditioner fins after the stamping and piercing operation is completed, wherein the fin images are top views of the air conditioner fins.
[0073] The first detection module 603 is used to perform Hough ellipse detection on the fin image to obtain all ellipses in the fin image.
[0074] The partitioning module 605 is used to partition all ellipses into regions based on the direction of the major axis of each ellipse, resulting in multiple elliptical regions.
[0075] The first determining module 607 is used to determine the location of the punching perforation defect in the multiple elliptical regions based on the minor axis length of each ellipse in each region.
[0076] The second determining module 609 is used to determine the location of all stamping perforation defects in the air conditioner fins based on the location of each stamping perforation defect.
[0077] It should be noted that the above-mentioned acquisition module 601, first detection module 603, division module 605, first determination module 607 and second determination module 609 correspond to steps S202 to S210 in the above embodiments. The five modules and the corresponding steps implement the same instances and application scenarios, but are not limited to the content disclosed in the above embodiments.
[0078] As can be seen from the above, in the scheme described in the above embodiments of the present invention, the acquisition module can acquire the fin image of the air conditioner fin after the stamping and piercing operation is completed, wherein the fin image is a top view of the air conditioner fin; the first detection module performs Hough ellipse detection on the fin image to obtain all ellipses in the fin image; the division module divides all ellipses into regions according to the direction of the major axis of each of the ellipses, obtaining multiple elliptical regions; the first determination module determines the stamping and piercing defect position in the multiple elliptical regions according to the minor axis length of each ellipse in each region; the second determination module determines the position of all stamping and piercing defects of the air conditioner fin according to the position of each stamping and piercing defect, thereby achieving the purpose of determining the stamping and piercing defect position of the air conditioner fin based on image processing, Hough ellipse recognition, and the distribution characteristics of the air conditioner fin holes, based on the information of the major and minor axes of the ellipses, thus improving the defect detection efficiency of the air conditioner fin.
[0079] Therefore, the technical solution provided by the above embodiments of the present invention solves the technical problem in the related art that the air conditioner fin stamping process can only rely on quality inspectors to test the fin performance, and cannot automatically test it, resulting in low efficiency.
[0080] Optionally, the acquisition module includes: a generation unit, used to generate an image acquisition command after determining that the air conditioner fins have completed the stamping and piercing operation; and an acquisition unit, used to send the image acquisition command to an image acquisition component, so as to acquire the fin image of the air conditioner fins using the image acquisition component.
[0081] Optionally, the segmentation module includes: an extraction unit for extracting major axis information for each of all ellipses to determine the major axis of each of all ellipses; a first detection unit for performing Hough line detection on the major axis of each of all ellipses to obtain the slope of the major axis of each of all ellipses; a first determination unit for determining the slope difference between the slopes of the major axes of each of all ellipses; a comparison unit for comparing each slope difference with a slope difference threshold to obtain a comparison result; and an acquisition unit for dividing the ellipses whose slope difference is less than the slope difference threshold in the comparison result into the same region to obtain multiple elliptical regions.
[0082] Optionally, the defect detection device for air conditioner fins further includes: a processing module for establishing a rectangular coordinate system where the fin image is located and labeling all ellipses in the rectangular coordinate system; a second detection module for detecting the position information of all ellipses in the rectangular coordinate system; a third detection module for detecting whether there is a normal circle in each adjacent graphic of all ellipses based on the position information, and obtaining the detection result; a marking module for marking the graphic as a normal circle when the detection result indicates the presence of a normal circle; and a segmentation module for using all normal circles as interval boundaries to separate the perforated images in the fin image that have been subjected to punching springback from the perforated images that have not been subjected to punching springback.
[0083] Optionally, the first determining module includes: a second determining unit for determining the minor axis of each ellipse in each of the multiple elliptical regions; a second detection unit for performing length detection on each minor axis to obtain the minor axis length; a third determining unit for determining multiple target minor axes whose lengths are less than a minor axis length threshold; and a fourth determining unit for determining the location of the punching perforation defect in the multiple elliptical regions based on the multiple target minor axes.
[0084] Optionally, the fourth determining unit includes: a first determining subunit, used to determine multiple target ellipses corresponding to multiple target minor axes; a second determining subunit, used to determine the positional relationship between target ellipses within the multiple defect elliptical regions when multiple defect elliptical regions contain more than one target ellipse, based on the elliptical regions where multiple target ellipses are located; a third determining subunit, used to determine the location of a stamping perforation defect in the multiple defect elliptical regions based on the positional relationship; and a fourth determining subunit, used to determine the location of a stamping perforation defect in a non-multiple defect elliptical region based on the location of the target ellipse in a non-multiple defect elliptical region within the multiple elliptical regions.
[0085] Optionally, the third determining subunit includes: when the fifth determining subunit determines that the inner target ellipse in the multi-defect elliptical region is an adjacent ellipse based on the positional relationship, the position corresponding to the target ellipse with the shortest minor axis among all target ellipses in the multi-defect elliptical region is the position of the stamping puncture defect in the multi-defect elliptical region; when the sixth determining subunit determines that the inner target ellipse in the multi-defect elliptical region is a non-adjacent ellipse based on the positional relationship, the positions of all target ellipses in the multi-defect elliptical region are the positions of the stamping puncture defect in the multi-defect elliptical region.
[0086] According to another aspect of the present invention, a processor is also provided, which is used to run a program, wherein the program executes the air conditioner fin defect detection method described above.
[0087] According to another aspect of the present invention, a computer program product is also provided, including computer instructions, which, when executed by a processor, perform any of the above-described methods for detecting defects in air conditioner fins.
[0088] According to another aspect of the present invention, a computer-readable storage medium is also provided, the computer-readable storage medium including a stored program, wherein the program executes the air conditioner fin defect detection method of any of the above.
[0089] Optionally, in this embodiment, the computer-readable storage medium may be located in any computer terminal in a group of computer terminals in a computer network, or in any communication device in a group of communication devices.
[0090] Optionally, in this embodiment, the computer-readable storage medium is configured to store program code for performing the following steps: after the air conditioner fins have completed the stamping and piercing operation, acquiring a fin image of the air conditioner fins, wherein the fin image is a top view of the air conditioner fins; performing Hough ellipse detection on the fin image to obtain all ellipses in the fin image; dividing all ellipses into regions according to the direction of the major axis of each of all ellipses to obtain multiple elliptical regions; determining the stamping and piercing defect positions in the multiple elliptical regions according to the minor axis length of each ellipse in each of the multiple elliptical regions; and determining all stamping and piercing defect positions of the air conditioner fins according to the stamping and piercing defect positions.
[0091] Optionally, in this embodiment, the computer-readable storage medium is configured to store program code for performing the following steps: after determining that the air conditioner fins have completed the stamping and piercing operation, generating an image acquisition command; sending the image acquisition command to the image acquisition component to acquire fin images of the air conditioner fins using the image acquisition component.
[0092] Optionally, in this embodiment, the computer-readable storage medium is configured to store program code for performing the following steps: extracting major axis information for each of all ellipses to determine the major axis of each of all ellipses; performing Hough line detection on the major axis of each of all ellipses to obtain the slope of the major axis of each of all ellipses; determining the slope difference between the slopes of the major axes of all ellipses; comparing each slope difference with a slope difference threshold to obtain a comparison result; dividing the ellipses whose slope difference is less than the slope difference threshold in the comparison result into the same region to obtain multiple elliptical regions.
[0093] Optionally, in this embodiment, the computer-readable storage medium is configured to store program code for performing the following steps: establishing a rectangular coordinate system in which the fin image is located, and labeling all ellipses in the rectangular coordinate system; detecting the position information of all ellipses in the rectangular coordinate system; detecting whether there is a normal circle in each of the adjacent graphics of all ellipses according to the position information, and obtaining a detection result; when the detection result indicates that there is a normal circle, then marking the graphic as a normal circle; using all normal circles as interval boundaries to separate the perforated image in the fin image that has been subjected to punching springback from the perforated image that has not been subjected to punching springback.
[0094] Optionally, in this embodiment, the computer-readable storage medium is configured to store program code for performing the following steps: determining the minor axis of each ellipse in each of the plurality of elliptical regions; performing length detection on each minor axis to obtain the minor axis length of each minor axis; determining a plurality of target minor axes whose length is less than a minor axis length threshold among the minor axis lengths; and determining the location of the punching perforation defect in the plurality of elliptical regions based on the plurality of target minor axes.
[0095] Optionally, in this embodiment, the computer-readable storage medium is configured to store program code for performing the following steps: determining multiple target ellipses corresponding to multiple target minor axes; when determining a multi-defect elliptical region in multiple elliptical regions where there is more than one target ellipse based on the elliptical regions where the multiple target ellipses are located, determining the positional relationship between the target ellipses in the multi-defect elliptical regions; determining the position of the punching puncture defect in the multi-defect elliptical region based on the positional relationship; and determining the position of the punching puncture defect in the non-multi-defect elliptical region based on the position of the target ellipse in the non-multi-defect elliptical region in the multiple elliptical regions.
[0096] Optionally, in this embodiment, the computer-readable storage medium is configured to store program code for performing the following steps: when determining that the inner target ellipse in the multi-defect elliptical region is an adjacent ellipse based on the positional relationship, the position corresponding to the target ellipse with the shortest minor axis among all target ellipses in the multi-defect elliptical region is determined as the stamping puncture defect position in the multi-defect elliptical region; when determining that the inner target ellipse in the multi-defect elliptical region is a non-adjacent ellipse based on the positional relationship, the positions of all target ellipses in the multi-defect elliptical region are determined as the stamping puncture defect positions in the multi-defect elliptical region.
[0097] The sequence numbers of the above embodiments of the present invention are for descriptive purposes only and do not represent the superiority or inferiority of the embodiments.
[0098] In the above embodiments of the present invention, the descriptions of each embodiment have different focuses. For parts not described in detail in a certain embodiment, please refer to the relevant descriptions of other embodiments.
[0099] In the several embodiments provided in this application, it should be understood that the disclosed technical content can be implemented in other ways. The device embodiments described above are merely illustrative; for example, the division of units can be a logical functional division, and in actual implementation, there may be other division methods. For instance, multiple units or components may be combined or integrated into another system, or some features may be ignored or not executed. Furthermore, the displayed or discussed mutual coupling, direct coupling, or communication connection may be through some interfaces; the indirect coupling or communication connection between units or modules may be electrical or other forms.
[0100] The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple units. Some or all of the units can be selected to achieve the purpose of this embodiment according to actual needs.
[0101] Furthermore, the functional units in the various embodiments of the present invention can be integrated into one processing unit, or each unit can exist physically separately, or two or more units can be integrated into one unit. The integrated unit can be implemented in hardware or as a software functional unit.
[0102] If the integrated unit is implemented as a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, read-only memory (ROM), random access memory (RAM), portable hard drives, magnetic disks, or optical disks.
[0103] The above description is only a preferred embodiment of the present invention. It should be noted that for those skilled in the art, several improvements and modifications can be made without departing from the principle of the present invention, and these improvements and modifications should also be considered within the scope of protection of the present invention.
Claims
1. A method for detecting defects in air conditioner fins, characterized in that, include: After the air conditioner fins have undergone the stamping and piercing operation, an image of the air conditioner fins is acquired, wherein the fin image is a top view of the air conditioner fins. Perform Hough ellipse detection on the fin image to obtain all ellipses in the fin image; Based on the direction of the major axis of each of the ellipses, the ellipses are divided into regions to obtain multiple elliptical regions; The location of the punching perforation defect in the plurality of elliptical regions is determined based on the minor axis length of each ellipse in each of the plurality of elliptical regions. The locations of all stamping perforation defects in the air conditioner fins are determined based on the locations of each of the aforementioned stamping perforation defects. Specifically, the process involves dividing all ellipses into multiple elliptical regions based on the direction of their major axes. This includes: extracting major axis information for each ellipse to determine its major axis; performing Hough line detection on the major axis of each ellipse to obtain its slope; determining the slope difference between the slopes of the major axes of all ellipses; comparing each slope difference with a slope difference threshold to obtain a comparison result; and grouping ellipses with slope differences less than the slope difference threshold into the same region to obtain the multiple elliptical regions.
2. The method for detecting defects in air conditioner fins according to claim 1, characterized in that, Acquiring images of the air conditioner fins, including: After confirming that the air conditioner fins have completed the stamping and piercing operation, an image acquisition command is generated; The image acquisition command is sent to the image acquisition component to acquire the fin image of the air conditioner fin using the image acquisition component.
3. The method for detecting defects in air conditioner fins according to claim 1, characterized in that, Also includes: Establish a rectangular coordinate system containing the fin image, and label all the ellipses in the rectangular coordinate system; Detect the position information of all the ellipses in the rectangular coordinate system; Based on the location information, detect whether there is a normal circle in each of the adjacent shapes of all the ellipses, and obtain the detection result; If the detection result indicates the presence of a normal circle, then the graphic is marked as a normal circle; All the normal circles are used as interval boundaries to separate the perforated images of the fins that have undergone stamping springback from those that have not.
4. The method for detecting defects in air conditioner fins according to claim 1, characterized in that, The location of the punching perforation defect in the plurality of elliptical regions is determined based on the minor axis length of each ellipse in each of the plurality of elliptical regions, including: Determine the minor axis of each ellipse within each of the plurality of elliptical regions; The length of each of the short axes is measured to obtain the length of each of the short axes; Identify multiple target minor axes whose lengths are less than a minor axis length threshold among the aforementioned minor axis lengths; The location of the punching perforation defect in the plurality of elliptical regions is determined based on the plurality of target minor axes.
5. The method for detecting defects in air conditioner fins according to claim 4, characterized in that, Determining the location of punching defects in the plurality of elliptical regions based on the plurality of target minor axes includes: Determine the multiple target ellipses corresponding to the multiple target minor axes; When determining that there is a multi-defect elliptical region containing more than one target ellipse in the elliptical region where the multiple target ellipses are located, the positional relationship between the target ellipses in the multi-defect elliptical region is determined; The location of the punching perforation defect in the multi-defect elliptical region is determined based on the positional relationship; The location of the punching perforation defect in the non-multi-defect elliptical region is determined based on the position of the target ellipse in the non-multi-defect elliptical region of the multiple elliptical regions.
6. The method for detecting defects in air conditioner fins according to claim 5, characterized in that, Determining the location of the punching perforation defect in the multi-defect elliptical region based on the positional relationship includes: When the target ellipse in the multi-defect elliptical region is determined to be an adjacent ellipse based on the positional relationship, the position corresponding to the target ellipse with the shortest minor axis among all the target ellipses in the multi-defect elliptical region is determined as the position of the stamping perforation defect in the multi-defect elliptical region. When the target ellipse within the multi-defect elliptical region is determined to be a non-adjacent ellipse based on the positional relationship, the positions of all the target ellipses within the multi-defect elliptical region are determined as the positions of the stamping perforation defects within the multi-defect elliptical region.
7. A defect detection device for air conditioner fins, characterized in that, include: The acquisition module is used to acquire fin images of the air conditioner fins after the stamping and piercing operation is completed, wherein the fin images are top views of the air conditioner fins. The first detection module is used to perform Hough ellipse detection on the fin image to obtain all ellipses in the fin image; The partitioning module is used to partition all the ellipses into regions based on the direction of the major axis of each of the ellipses, thereby obtaining multiple elliptical regions; The first determining module is used to determine the location of the punching perforation defect in the plurality of elliptical regions based on the minor axis length of each ellipse in each region of the plurality of elliptical regions. The second determining module is used to determine the locations of all stamping perforation defects in the air conditioner fins based on the locations of each stamping perforation defect. The segmentation module includes: an extraction unit for extracting major axis information for each of the ellipses to determine the major axis of each of the ellipses; a first detection unit for performing Hough line detection on the major axis of each of the ellipses to obtain the slope of the major axis of each of the ellipses; a first determination unit for determining the slope difference between the slopes of the major axes of each of the ellipses; a comparison unit for comparing each slope difference with a slope difference threshold to obtain a comparison result; and an acquisition unit for dividing the ellipses whose slope difference is less than the slope difference threshold in the comparison result into the same region to obtain the multiple elliptical regions.
8. A computer-readable storage medium, characterized in that, The computer-readable storage medium includes a stored program, wherein the program executes the defect detection method for air conditioner fins according to any one of claims 1 to 6.
9. A computer program product comprising computer instructions, characterized in that, When the computer instructions are executed by the processor, the defect detection method for air conditioner fins according to any one of claims 1 to 6 is performed.
Citation Information
Patent Citations
Method and device for discriminating surface defects of measured target object, and computer readable medium
CN111292290A
Defect analysis system
EP0048568A2