Defect detection method and device for fins of air conditioner
By performing Hough elliptical detection and area division on the top view image of the air conditioner fins, the position of punching and punching defects is automatically identified, which solves the problem that fin defects cannot be automatically detected in the air conditioner fin stamping process, improves detection efficiency and reduces Production cost.
Patent Information
- Application Number
- CN202411287490.8
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-13
- Publication Date
- 2024-12-17
- Estimated Expiration
- 2044-09-13
AI Technical Summary
The air conditioner fin defects cannot be automatically detected in the stamping process, resulting in inefficiency. The existing methods rely on manual quality inspection and cannot automatically trace the defects of the stamped fins, resulting in high material costs and long cycles.
After performing the punching operation on the air conditioner fin, it collects its top view image, performs Hough ellipse detection, divides the ellipse region, and determines the short axis length of the ellipse to identify the punching hole defect position, and realizes automatic defect detection.
It improves the efficiency of air conditioner fin defect detection, realizes automatic defect traceability in the stamping process, reduces production costs and cycles, and avoids the necessity of a complete set of process improvements.
Smart Images

Figure CN119147543A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of image processing, and in particular to a method and device for detecting defects of air conditioner fins. Background Art
[0002] The air conditioner evaporator is made of fins stacked layer by layer. In the production and manufacturing of fins, the fin sheet metal is punched and formed by die. If the punching and punching die is worn, and the speed and force of penetration are uneven, the fin will rebound, resulting in the inability to stack the holes when the fins are stacked, which will cause the subsequent copper tube assembly to require manual use of additional tools for perforation and conduction. In severe cases, the copper tube will be scratched or even unable to be assembled. The existing fin performance testing relies on manual visual inspection by quality inspectors, which is labor-intensive and cannot automatically trace defects of stamped fins. The only way is to improve the stamping process or replace the die, which has high material costs and a long cycle.
[0003] To address the above-mentioned problems, no effective solution has been proposed yet. Summary of the invention
[0004] The embodiments of the present invention provide a method and device for defect detection of air conditioner fins, so as to at least solve the technical problem in the related art that the air conditioner fin stamping process can only rely on quality inspectors to detect the fin performance, and cannot perform automatic detection, resulting in low efficiency.
[0005] According to one aspect of an embodiment of the present invention, a defect detection method for an air conditioner fin is provided, comprising: collecting a fin image of the air conditioner fin after the air conditioner fin performs a stamping and perforation operation, wherein the fin image is a top view of the air conditioner fin; performing Hough ellipse detection on the fin image to obtain all ellipses in the fin image; dividing all the ellipses into regions according to the direction of the major axis of each of the ellipses to obtain a plurality of elliptical regions; determining a stamping and perforation defect position in the plurality of elliptical regions according to the minor axis length of each ellipse in each of the plurality of elliptical regions; and determining all stamping and perforation defect positions of the air conditioner fin according to each of the stamping and perforation defect positions.
[0006] Optionally, capturing the fin image of the air conditioner fin includes: generating an image capture instruction after determining that the air conditioner fin has completed the stamping and punching operation; and sending the image capture instruction to an image capture component to capture the fin image of the air conditioner fin using the image capture component.
[0007] Optionally, all the ellipses are divided into regions according to the direction of the major axis of each of the ellipses to obtain a plurality of elliptical regions, including: extracting major axis information of each of the ellipses to determine the major axis of each of the ellipses; 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; determining the slope difference between the slopes of the major axes of each of the ellipses; comparing each of the slope differences with a slope difference threshold to obtain a comparison result; and dividing the ellipses whose slope differences in the comparison results are less than the slope difference threshold into the same region to obtain the plurality of elliptical regions.
[0008] Optionally, the defect detection method for air conditioner fins also includes: establishing a rectangular coordinate system where the fin image is located, and marking all the ellipses in the rectangular coordinate system; detecting position information of all the ellipses in the rectangular coordinate system; detecting whether there is a normal circle in the graphics adjacent to each of all the ellipses based on the position information, and obtaining a detection result; when the detection result indicates that a normal circle exists, marking the graphics as a normal circle; using all the normal circles as interval boundaries to separate the perforation images in the fin image that are subject to stamping rebound from the perforation images that are not subject to stamping rebound.
[0009] Optionally, the locations of stamping and perforation defects in the multiple elliptical areas are determined based on the short axis length of each ellipse in each of the multiple elliptical areas, including: determining the short axis of each ellipse in each of the multiple elliptical areas; performing length detection on each short axis to obtain the short axis length of each short axis; determining multiple target short axes whose lengths are less than a short axis length threshold among the short axis lengths; and determining the locations of stamping and perforation defects in the multiple elliptical areas based on the multiple target short axes.
[0010] Optionally, determining the locations of stamping and perforation defects in the multiple elliptical areas based on the multiple target minor axes includes: determining multiple target ellipses corresponding to the multiple target minor axes; when a multi-defect elliptical area is determined to exist in the multiple elliptical areas according to the elliptical areas where the multiple target ellipses are located, determining the positional relationship between the target ellipses in the multi-defect elliptical area; determining the location of the stamping and perforation defects in the multi-defect elliptical area based on the positional relationship; and determining the location of the stamping and perforation defects in the non-multi-defect elliptical area according to the position of the target ellipse in the non-multi-defect elliptical area among the multiple elliptical areas.
[0011] Optionally, the position of the stamping and perforation defect in the multi-defect elliptical area is determined according to the positional relationship, including: when the target ellipse in the multi-defect elliptical area is determined to be an adjacent ellipse according to the positional relationship, the position corresponding to the target ellipse with the shortest short axis among all the target ellipses in the multi-defect elliptical area is determined as the stamping and perforation defect position in the multi-defect elliptical area; when the target ellipse in the multi-defect elliptical area is determined to be a non-adjacent ellipse according to the positional relationship, the position of all the target ellipses in the multi-defect elliptical area is determined as the stamping and perforation defect position in the multi-defect elliptical area.
[0012] According to another aspect of an embodiment of the present invention, a defect detection device for an air conditioner fin is provided, comprising: an acquisition module, for acquiring a fin image of the air conditioner fin after the air conditioner fin performs a stamping and punching operation, wherein the fin image is a top view of the air conditioner fin; a first detection module, for performing Hough ellipse detection on the fin image to obtain all ellipses in the fin image; a division module, for performing region division on all the ellipses according to the direction of the major axis of each of the ellipses to obtain a plurality of elliptical regions; a first determination module, for determining a stamping and punching defect position in the plurality of elliptical regions according to the minor axis length of each ellipse in each of the plurality of elliptical regions; and a second determination module, for determining all stamping and punching defect positions of the air conditioner fin according to each of the stamping and punching defect positions.
[0013] Optionally, the acquisition module includes: a generation unit, used to generate an image acquisition instruction after determining that the air conditioner fin has completed the stamping and punching operation; an acquisition unit, used to send the image acquisition instruction to an image acquisition component, so as to use the image acquisition component to acquire the fin image of the air conditioner fin.
[0014] Optionally, the division module includes: an extraction unit, used to extract the major axis information of each of the ellipses to determine the major axis of each of the ellipses; a first detection unit, used to perform 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, used to determine the slope difference between the slopes of the major axes of each of the ellipses; a comparison unit, used to compare each of the slope differences with a slope difference threshold to obtain a comparison result; and an acquisition unit, used to divide the ellipses whose slope differences in the comparison results are less than the slope difference threshold into the same area to obtain the multiple elliptical areas.
[0015] Optionally, the defect detection device for the air conditioner fin also includes: a processing module, used to establish a rectangular coordinate system where the fin image is located, and mark all the ellipses in the rectangular coordinate system; a second detection module, used to detect the position information of all the ellipses in the rectangular coordinate system; a third detection module, used to detect whether there is a normal circle in the graphics adjacent to each of all the ellipses according to the position information, and obtain a detection result; a marking module, used to mark the graphics as a normal circle when the detection result indicates that a normal circle exists; a segmentation module, used to use all the normal circles as interval boundaries to separate the perforation images that are subjected to stamping rebound from the perforation images that are not subjected to stamping rebound in the fin image.
[0016] Optionally, the first determination module includes: a second determination unit, used to determine the minor axis of each of the multiple elliptical areas in each area; a second detection unit, used to perform length detection on each of the minor axes to obtain the minor axis length of each of the minor axes; a third determination unit, used to determine multiple target minor axes whose lengths are less than a minor axis length threshold among the minor axis lengths; and a fourth determination unit, used to determine the locations of stamping and perforation defects in the multiple elliptical areas based on the multiple target minor axes.
[0017] Optionally, the fourth determination unit includes: a first determination subunit, used to determine multiple target ellipses corresponding to the multiple target short axes; a second determination subunit, used to determine the positional relationship between the target ellipses in the multiple defect elliptical area when a multiple defect elliptical area is determined according to the elliptical area where the multiple target ellipses are located and there is more than one target ellipse in the multiple elliptical areas; a third determination subunit, used to determine the position of the stamping and perforation defects in the multiple defect elliptical area according to the positional relationship; and a fourth determination subunit, used to determine the position of the stamping and perforation defects in the non-multi-defect elliptical area according to the position of the target ellipse in the non-multi-defect elliptical area among the multiple elliptical areas.
[0018] Optionally, the third determination subunit includes: when the fifth determination subunit determines that the target ellipse in the multi-defect ellipse area is an adjacent ellipse according to the positional relationship, the position corresponding to the target ellipse with the shortest short axis among all the target ellipses in the multi-defect ellipse area is the stamping and perforation defect position of the multi-defect ellipse area; when the sixth determination subunit determines that the target ellipse in the multi-defect ellipse area is a non-adjacent ellipse according to the positional relationship, the position of all the target ellipses in the multi-defect ellipse area is the stamping and perforation defect position of the multi-defect ellipse area.
[0019] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, wherein the computer-readable storage medium includes a stored program, wherein the program executes any one of the above-mentioned methods for detecting defects in air conditioner fins.
[0020] According to another aspect of an embodiment of the present invention, a processor is further provided, the processor being used to run a program, wherein the program, when running, executes any one of the above-mentioned methods for detecting defects in air conditioner fins.
[0021] According to another aspect of an embodiment of the present invention, there is further provided a computer program product, comprising computer instructions, wherein when the computer instructions are executed by a processor, any one of the above-mentioned methods for detecting defects in air conditioner fins is executed.
[0022] In an embodiment of the present invention, after the air conditioner fin performs the stamping and perforation operation, a fin image of the air conditioner fin is collected, wherein the fin image is a top view of the air conditioner fin; the fin image is subjected to Hough ellipse detection to obtain all ellipses in the fin image; all ellipses are divided into regions according to the major axis direction of each of the ellipses to obtain multiple ellipse regions; the locations of the stamping and perforation defects in the multiple ellipse regions are determined according to the minor axis length of each ellipse in each of the multiple ellipse regions; and all the locations of the stamping and perforation defects of the air conditioner fin are determined according to the locations of the stamping and perforation defects. The technical solution provided by the present invention achieves the purpose of determining the locations of the stamping and perforation defects of the air conditioner fins according to the major axis and minor axis information of the ellipse based on image processing, Hough ellipse recognition, and the distribution characteristics of the air conditioner fin holes, thereby improving the defect detection efficiency of the air conditioner fins, thereby solving the technical problem in the related art that the air conditioner fin stamping process can only rely on quality inspectors to detect the fin performance, and cannot automatically detect it, resulting in low efficiency. BRIEF DESCRIPTION OF THE DRAWINGS
[0023] The drawings described herein are used to provide a further understanding of the present invention and constitute a part of this application. The exemplary embodiments of the present invention and their descriptions are used to explain the present invention and do not constitute an improper limitation of the present invention. In the drawings:
[0024] Figure 1 It is a hardware structure block diagram of a mobile terminal of a method for detecting defects of air conditioner fins according to an embodiment of the present invention;
[0025] Figure 2 is a flow chart of a defect detection method for air conditioner fins according to an embodiment of the present invention;
[0026] Figure 3 is a flow chart of an optional air conditioner fin defect detection method according to an embodiment of the present invention;
[0027] Figure 4 is a schematic diagram of punching and rebounding perforation of air conditioner fins according to an embodiment of the present invention;
[0028] Figure 5 is a schematic diagram of segmentation of stamping springback regions of air conditioner fins according to an embodiment of the present invention;
[0029] Figure 6 Schematic diagram of a defect detection device for air conditioner fins according to an embodiment of the present invention. DETAILED DESCRIPTION
[0030] In order to enable those skilled in the art to better understand the scheme of the present invention, the technical scheme in the embodiments of the present invention will be clearly and completely described below in conjunction with the drawings in the embodiments of the present invention. Obviously, the described embodiments are only part of the embodiments of the present invention, not all of the embodiments. Based on the embodiments of the present invention, all other embodiments obtained by ordinary technicians in this field without creative work 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 and claims of the present invention and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequence. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present invention described herein can be implemented in an order other than those illustrated or described herein. In addition, the terms "including" and "having" and any variations thereof are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device that includes a series of steps or units is not necessarily limited to those steps or units that are clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0032] As introduced in the background technology, in the related art, the air conditioner fin stamping process can only rely on quality inspectors to detect the fin performance, and cannot automatically detect it, which is inefficient. In view of the above defects, an air conditioner fin defect detection method and device, a computer readable storage medium, a processor and a computer program product are provided in the embodiments of the present invention.
[0033] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention.
[0034] The method embodiments provided in the embodiments of the present invention can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 FIG. 1 is a hardware structure block diagram of a mobile terminal of a method for detecting defects in air conditioner fins according to an embodiment of the present invention. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is only for illustration and does not limit the structure of the mobile terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations are shown.
[0035] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the defect detection method of the air conditioner fin in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, the above method is implemented. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories can be connected to the mobile terminal via a network. Examples of the above-mentioned network include but are not limited to the Internet, an intranet, a local area network, a mobile communication network, and a combination thereof. The transmission device 106 is used to receive or send data via a network. The above-mentioned specific examples of the network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as 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 of a defect detection method for air conditioner fins is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0037] Figure 2 FIG. 1 is a flow chart of a defect detection method for an air conditioner fin according to an embodiment of the present invention. Figure 2 As shown, the defect detection method of the air conditioner fin includes the following steps:
[0038] Step S202, after the air conditioner fins are punched and perforated, a fin image of the air conditioner fins is collected, wherein the fin image is a top view of the air conditioner fins.
[0039] Optionally, the air conditioner fin is a component inside the air conditioner, usually located on the evaporator of the indoor unit. Its function is to increase the surface area of the evaporator so that heat and temperature can be dissipated more effectively. It is usually made of aluminum or copper and has multiple tiny fins, shaped like a honeycomb, which are used to increase the surface area so that heat can be transferred to the air faster. Through the design of the air conditioner fin, the air can flow better 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 FIG. 1 is a flow chart of an optional air conditioner fin defect detection method according to an embodiment of the present invention, Figure 3 As shown in the figure, all ellipses in the fin image can be detected by the Hough ellipse. That is, after taking the fin image after the fin is punched, the air conditioner fin perforation is normally circular. When the punching force is uneven and the punching mold is worn due to the influence of the punching process, the fin rebounds after punching and the overall flatness is not smooth. The top view effect is as follows: Figure 4 ( Figure 4 1 is a schematic diagram of punching and rebounding holes of air conditioner fins according to an embodiment of the present invention, and the top view of the fin punching hole is an ellipse. Based on the Hough ellipse detection of image processing, all ellipses in the top view are identified.
[0042] Step S206, dividing all ellipses into regions according to the direction of the major axis of each of the ellipses to obtain a plurality of elliptical regions.
[0043] In this embodiment, for all the ellipses identified above, their major axis information can be extracted, such as Figure 4 As shown, the major axes of ellipses such as AB, CD, EF, etc. are divided into regions according to the directions of the major axes, thereby obtaining multiple elliptical regions.
[0044] Step S208, determining the punching perforation defect position in the multiple elliptical areas according to the minor axis length of each ellipse in each of the multiple elliptical areas.
[0045] In this embodiment, the punching and perforation defect positions in the multiple elliptical areas may be determined according to the short axis length of each ellipse in each of the multiple elliptical areas.
[0046] Step S210, determining all the stamping and perforation defect positions of the air conditioner fins according to the stamping and perforation defect positions.
[0047] From the above, it can be seen that after the air conditioner fins complete the stamping and perforation operations, a fin image of the air conditioner fins is collected, 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 major axis direction of each of the ellipses to obtain a plurality of elliptical regions; the stamping and perforation defect positions in the plurality of elliptical regions are determined according to the minor axis length of each ellipse in each of the plurality of elliptical regions; all stamping and perforation defect positions of the air conditioner fins are determined according to each stamping and perforation defect position, thereby achieving the purpose of determining the stamping and perforation defect positions of the air conditioner fins based on image processing, Hough ellipse recognition, and the distribution characteristics of the air conditioner fin holes according to the major and minor axis information of the ellipse, thereby improving the defect detection efficiency of the air conditioner fins.
[0048] Therefore, the technical solution provided by the above-mentioned embodiment 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 perform automatic testing, resulting in low efficiency.
[0049] According to the above embodiment of the present invention, collecting the fin image of the air conditioner fin includes: generating an image collection instruction after determining that the air conditioner fin has completed the stamping and punching operation; sending the image collection instruction to the image collection component to use the image collection component to collect the fin image of the air conditioner fin.
[0050] In this embodiment, after the air conditioner fins have completed the punching and perforating operations, the image acquisition component is triggered to acquire the fin image of the air conditioner fins to perform defect detection on the air conditioner fins.
[0051] According to the above embodiment of the present invention, all ellipses are divided into regions according to the direction of the major axis of each of all ellipses to obtain multiple elliptical regions, which may include: extracting major axis information of 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 axis of each of all ellipses; comparing each slope difference with a slope difference threshold to obtain a comparison result; and dividing the ellipses whose slope differences in the comparison results are less than the slope difference threshold into the same region to obtain multiple elliptical regions.
[0052] In this embodiment, if 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 AB, CD, and UV ellipses. By extracting the slopes of all the major axes of the ellipses, all the major axis slopes such as kAB, kCD, kEF,... can be extracted. A slope difference threshold is set, that is, the ellipses with similar 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, then marking the figure as a normal circle; using all the normal circles as interval boundaries to separate the perforation images affected by stamping springback from the perforation images not affected by stamping springback in the fin image.
[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, with normal circles as intervals.
[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 there is, then 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 perforations of the ellipses 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 of the dies and the uniformity of the force 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 above, Figure 5The ellipse has been divided into areas in the 1st - 4th rows and 1st - 4th columns, and areas in 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 a 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 Regions 1, 2, and 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 whose lengths are less than the minor axis length threshold among the lengths of each minor axis; and determining the stamping and perforation defect positions in the multiple elliptical regions based on the multiple target minor axes.
[0058] In Regions 1, 2, and 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 suffered 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 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 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 among the multiple elliptical regions.
[0060] In this embodiment, in actual process production, since there are more than two problem positions in a certain area, when two problem points act on different positions in a certain area, there will be two ellipses with the shortest minor axes and a certain distance between them.
[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 determining 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 determining 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, the 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 the problem positions of the stamping industry are located; finally, the stamping process problem detection is completed, that is, according to the analysis of each ellipse graph, the performance points of the process stamping are located, and the performance detection of the stamping process springback is completed.
[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 the 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, and then, based on the minor axis of the ellipse, the specific defect positions are recognized.
[0067] The technical solution provided by the above embodiment of the present invention solves the following technical problems: 1) The air conditioner fin stamping process cannot automatically trace defects; 2) The air conditioner fin stamping process has high manufacturing improvement costs and a long cycle. At the same time, it has the following beneficial effects: 1) Based on image processing, according to 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 the preliminary defect area is finely divided according to the slope classification of the major axis of the ellipse in the coordinate system, and then the minor axis of the ellipse is used as the basis, and the specific defect position is identified according to the adjacent basis of the minor axis of the ellipse, solving the problem of automatic detection and tracing of defects in the stamping process; 2) Based on the automated detection of air conditioner fin stamping defects, stamping defect tracing and fault location are realized, and the location of the problem point can be quickly determined, which is convenient for technicians to discover and improve problems in molds and stamping processes, avoid the situation of a full set of stamping mold improvements or even stamping industrial design, and solve the problem of high-level manufacturing costs and long cycles.
[0068] From the above description, it can be known that here, based on the Hough ellipse recognition of image processing, the image of the air-conditioning fin can be projected to identify all the ellipses in the air-conditioning fin. According to the distribution characteristics of the air-conditioning fin holes, the normal undeformed circular holes are used as intervals to preliminarily divide the defective areas of the fins due to springback. Then, using the Hough straight line detection and rectangular coordinate system rules, the slope of the major axis of the ellipse in the coordinate system is classified to complete the detailed division of the preliminary defective area, that is, to achieve the subdivision of different stamping springback areas, and then continue to use the minor axis of the ellipse as the basis, according to the judgment standard of whether the minor axes of the ellipse are adjacent, identify the specific defect location, and realize the defect detection of stamping springback of the air-conditioning fin. That is, based on image processing, according to the Hough ellipse recognition, according to the distribution characteristics of the air-conditioning fin holes, according to the analysis of the major and minor axis characteristics of the ellipse, the specific defect location is identified, and the automatic traceability of the fin stamping defects is realized, which improves the efficiency of process improvement and saves the cost of production and manufacturing.
[0069] It should be noted that, for the aforementioned method embodiments, for the sake of simplicity, they are all expressed as a series of action combinations, but those skilled in the art should be aware that the present application is not limited by the described order of actions, because according to the present application, certain steps can be performed in other orders or simultaneously. Secondly, those skilled in the art should also be aware that the embodiments described in the specification are all preferred embodiments, and the actions and modules involved are not necessarily required by the present application.
[0070] Through the description of the above implementation methods, those skilled in the art can clearly understand that the method according to the above embodiment can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on this understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a software product, which is stored in a storage medium (such as ROM / RAM, magnetic disk, optical disk), and includes a number of instructions for a terminal device (which can be a mobile phone, computer, server, or network device, etc.) to execute the methods described in each embodiment of the present application.
[0071] According to an embodiment of the present invention, there is also provided an air conditioner fin defect detection device for implementing the above-mentioned air conditioner fin defect detection method. Figure 6 Schematic diagram of a defect detection device for air conditioner fins according to an embodiment of the present invention. Figure 6 As shown, the device includes: a collection 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 air conditioner fins is described below.
[0072] The acquisition module 601 is used to acquire a fin image of the air conditioner fin after the stamping and punching operation is performed on the air conditioner fin, wherein the fin image is a top view of the air conditioner fin.
[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 division module 605 is used to divide all ellipses into regions according to the direction of the major axis of each of the ellipses to obtain multiple elliptical regions.
[0075] The first determination module 607 is used to determine the punching perforation defect position in the multiple elliptical areas according to the minor axis length of each ellipse in each of the multiple elliptical areas.
[0076] The second determination module 609 is used to determine all the stamping and perforation defect positions of the air conditioner fins according to the stamping and perforation defect positions.
[0077] It should be noted here that the above-mentioned acquisition module 601, the first detection module 603, the division module 605, the first determination module 607 and the second determination module 609 correspond to steps S202 to S210 in the above-mentioned embodiments, and the five modules are the same as the instances and application scenarios implemented by the corresponding steps, but are not limited to the contents disclosed in the above-mentioned embodiments.
[0078] As can be seen from the above, in the scheme recorded in the above-mentioned embodiment of the present invention, the acquisition module can be used to collect the fin image of the air conditioner fin after the air conditioner fin performs the stamping and punching operation, wherein the fin image is a top view of the air conditioner fin; the first detection module is used to perform Hough ellipse detection on the fin image to obtain all ellipses in the fin image; the division module is used to divide all ellipses into regions according to the direction of the major axis of each of all ellipses to obtain multiple elliptical regions; the first determination module is used to determine the stamping and punching defect positions in multiple elliptical regions according to the minor axis length of each ellipse in each of the multiple elliptical regions; the second determination module is used to determine all stamping and punching defect positions of the air conditioner fin according to each stamping and punching defect position, thereby achieving the purpose of determining the stamping and punching defect positions of the air conditioner fin based on image processing, Hough ellipse recognition, and the distribution characteristics of the air conditioner fin holes according to the major axis and minor axis information of the ellipse, thereby improving the defect detection efficiency of the air conditioner fin.
[0079] Therefore, the technical solution provided by the above-mentioned embodiment 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 perform automatic testing, resulting in low efficiency.
[0080] Optionally, the acquisition module includes: a generation unit, which is used to generate an image acquisition instruction after determining that the air conditioner fin has completed the stamping and punching operation; and an acquisition unit, which is used to send the image acquisition instruction to the image acquisition component to use the image acquisition component to acquire the fin image of the air conditioner fin.
[0081] Optionally, the division module includes: an extraction unit, used to extract the major axis information of each of all the ellipses to determine the major axis of each of all the ellipses; a first detection unit, used to perform Hough line detection on the major axis of each of all the ellipses to obtain the slope of the major axis of each of all the ellipses; a first determination unit, used to determine the slope difference between the slopes of the major axes of each of all the ellipses; a comparison unit, used to compare each slope difference with a slope difference threshold to obtain a comparison result; and an acquisition unit, used to divide the ellipses whose slope differences in the comparison results are less than the slope difference threshold into the same area to obtain multiple elliptical areas.
[0082] Optionally, the defect detection device for the air conditioner fin also includes: a processing module, which is used to establish a rectangular coordinate system where the fin image is located, and mark all ellipses in the rectangular coordinate system; a second detection module, which is used to detect the position information of all ellipses in the rectangular coordinate system; a third detection module, which is used to detect whether there is a normal circle in the graphics adjacent to each of all ellipses based on the position information, and obtain a detection result; a marking module, which is used to mark the graphics as a normal circle when the detection result indicates that a normal circle exists; a segmentation module, which is used to use all normal circles as interval boundaries to separate the perforation images in the fin image that are subjected to stamping rebound from the perforation images that are not subjected to stamping rebound.
[0083] Optionally, the first determination module includes: a second determination unit, used to determine the minor axis of each ellipse in each of the multiple elliptical areas; a second detection unit, used to perform length detection on each minor axis to obtain the minor axis length of each minor axis; a third determination unit, used to determine multiple target minor axes whose lengths are less than a minor axis length threshold among the minor axis lengths; and a fourth determination unit, used to determine the locations of stamping and perforation defects in the multiple elliptical areas based on the multiple target minor axes.
[0084] Optionally, the fourth determination unit includes: a first determination subunit, used to determine multiple target ellipses corresponding to multiple target short axes; a second determination subunit, used to determine the positional relationship between the target ellipses in the multiple defect elliptical area when a multiple defect elliptical area in which more than one target ellipse is present is determined based on the elliptical area where the multiple target ellipses are located; a third determination subunit, used to determine the position of the stamping and perforation defects in the multiple defect elliptical area based on the positional relationship; and a fourth determination subunit, used to determine the position of the stamping and perforation defects in the non-multi-defect elliptical area based on the position of the target ellipse in the non-multi-defect elliptical area among the multiple elliptical areas.
[0085] Optionally, the third determination subunit includes: when the fifth determination subunit determines that the inner target ellipse in the multi-defect ellipse area is an adjacent ellipse based on the position relationship, the position corresponding to the target ellipse with the shortest short axis among all the target ellipses in the multi-defect ellipse area is the stamping and perforation defect position of the multi-defect ellipse area; when the sixth determination subunit determines that the inner target ellipse in the multi-defect ellipse area is a non-adjacent ellipse based on the position relationship, the position of all the target ellipses in the multi-defect ellipse area is the stamping and perforation defect position of the multi-defect ellipse area.
[0086] According to another aspect of an embodiment of the present invention, a processor is further provided, and the processor is used to run a program, wherein when the program is run, any one of the above-mentioned methods for detecting defects in air conditioner fins is executed.
[0087] According to another aspect of an embodiment of the present invention, there is further provided a computer program product, comprising computer instructions, which, when executed by a processor, execute any one of the above-mentioned methods for detecting defects in air conditioner fins.
[0088] According to another aspect of an embodiment of the present invention, a computer-readable storage medium is provided, the computer-readable storage medium including a stored program, wherein the program executes any one of the above-mentioned methods for detecting defects in air conditioner fins.
[0089] Optionally, in this embodiment, the computer-readable storage medium may be located in any one of the computer terminals in a computer terminal group in a computer network, or in any one of the communication devices in a communication device group.
[0090] Optionally, in this embodiment, the computer-readable storage medium is configured to store program codes for executing the following steps: after the air conditioner fins complete the stamping and perforation operations, collecting 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 the ellipses to obtain a plurality of elliptical regions; determining the locations of stamping and perforation defects in the plurality of elliptical regions according to the length of the minor axis of each ellipse in each of the plurality of elliptical regions; and determining all stamping and perforation defect locations of the air conditioner fins according to the locations of the stamping and perforation defects.
[0091] Optionally, in this embodiment, the computer-readable storage medium is configured to store program codes for executing the following steps: after determining that the air conditioner fin has completed the stamping and perforation operation, generating an image acquisition instruction; sending the image acquisition instruction to the image acquisition component to use the image acquisition component to capture the fin image of the air conditioner fin.
[0092] Optionally, in this embodiment, the computer-readable storage medium is configured to store program codes for executing 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 axis of each of all ellipses; comparing each slope difference with a slope difference threshold to obtain a comparison result; dividing the ellipses in the comparison result whose slope difference is less than the slope difference threshold into the same area to obtain multiple elliptical areas.
[0093] Optionally, in this embodiment, the computer-readable storage medium is configured to store program codes for executing the following steps: establishing a rectangular coordinate system where the fin image is located, and marking all ellipses in the rectangular coordinate system; detecting position information of all ellipses in the rectangular coordinate system; detecting whether there is a normal circle in the graphics adjacent to each of all ellipses based on the position information, and obtaining a detection result; when the detection result indicates that a normal circle exists, marking the graphic as a normal circle; using all normal circles as interval boundaries to separate the perforation images in the fin image that are subject to stamping rebound from the perforation images that are not subject to stamping rebound.
[0094] Optionally, in this embodiment, the computer-readable storage medium is configured to store program codes for performing the following steps: determining the minor axis of each ellipse in each of a plurality of elliptical areas; 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 lengths are less than a minor axis length threshold among the minor axis lengths; and determining the locations of stamping and perforation defects in a plurality of elliptical areas based on the plurality of target minor axes.
[0095] Optionally, in this embodiment, the computer-readable storage medium is configured to store program codes for performing the following steps: determining multiple target ellipses corresponding to multiple target short axes; when a multi-defect elliptical area in which more than one target ellipse is determined based on the elliptical area where the multiple target ellipses are located, determining the positional relationship between the target ellipses in the multi-defect elliptical area; determining the position of the stamping and perforation defects in the multi-defect elliptical area based on the positional relationship; determining the position of the stamping and perforation defects in the non-multi-defect elliptical area based on the position of the target ellipse in the non-multi-defect elliptical area among the multiple elliptical areas.
[0096] Optionally, in this embodiment, the computer-readable storage medium is configured to store program codes for executing the following steps: when the inner target ellipse in the multi-defect ellipse area is determined to be an adjacent ellipse based on the positional relationship, the position corresponding to the target ellipse with the shortest short axis among all the target ellipses in the multi-defect ellipse area is determined as the stamping and perforation defect position of the multi-defect ellipse area; when the inner target ellipse in the multi-defect ellipse area is determined to be a non-adjacent ellipse based on the positional relationship, the positions of all the target ellipses in the multi-defect ellipse area are determined as the stamping and perforation defect position of the multi-defect ellipse area.
[0097] The serial numbers of the above embodiments of the present invention are only for description and do not represent the advantages or disadvantages of the embodiments.
[0098] In the above embodiments of the present invention, the description of each embodiment has its own emphasis. For parts that are not described in detail in a certain embodiment, reference can be made 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. Among them, the device embodiments described above are only schematic. For example, the division of the units can be a logical function division. There may be other division methods in actual implementation. For example, multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of units or modules, which can be electrical or other forms.
[0100] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple units. Some or all of the units may be selected according to actual needs to achieve the purpose of the present embodiment.
[0101] In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, or each unit may exist physically separately, or two or more units may be integrated into one unit. The above-mentioned integrated unit may be implemented in the form of hardware or in the form of software functional units.
[0102] If the integrated unit is implemented in the form of 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, and the computer software product is stored in a storage medium, including a number of instructions for a computer device (which can be a personal computer, a server or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present invention. The aforementioned storage medium includes: U disk, read-only memory (ROM, Read-Only Memory), random access memory (RAM, Random Access Memory), mobile hard disk, magnetic disk or optical disk and other media that can store program codes.
[0103] The above is only a preferred embodiment of the present invention. It should be pointed out that for ordinary technicians in this technical field, several improvements and modifications can be made without departing from the principle of the present invention. These improvements and modifications should also be regarded as the scope of protection of the present invention.
Claims
1. A defect detection method for air conditioner fins, characterized in that: include: After the air conditioner fins are punched and perforated, a fin image of the air conditioner fins is collected, 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 the ellipses into regions according to the direction of the major axis of each of the ellipses to obtain a plurality of elliptical regions; Determine the punching and perforation defect position in the plurality of elliptical regions according to the minor axis length of each ellipse in each of the plurality of elliptical regions; All the stamping and perforation defect positions of the air conditioner fins are determined according to each of the stamping and perforation defect positions.
2. The defect detection method for air conditioner fins according to claim 1, characterized in that: Acquiring a fin image of the air conditioner fin, comprising: After determining that the air conditioner fin has completed the punching and perforating operation, generating an image acquisition instruction; The image acquisition instruction is sent to an image acquisition component, so that the image acquisition component is used to acquire the fin image of the air conditioner fin.
3. The defect detection method for air conditioner fins according to claim 1, characterized in that: Dividing all the ellipses into regions according to the major axis directions of each of the ellipses to obtain a plurality of elliptical regions, including: Extracting major axis information of each of the ellipses to determine the major axis of each of the ellipses; Performing Hough straight line detection on the major axis of each of the ellipses to obtain the slope of the major axis of each of the ellipses; determining a slope difference between the slopes of the major axes of each of said all ellipses; Comparing each of the slope difference values with a slope difference threshold value to obtain a comparison result; The ellipses whose slope difference in the comparison result is less than the slope difference threshold are divided into the same area to obtain the multiple ellipse areas.
4. The defect detection method for air conditioner fins according to claim 1, characterized in that: Also includes: Establishing a rectangular coordinate system where the fin image is located, and marking all the ellipses in the rectangular coordinate system; Detecting position information of all the ellipses in the rectangular coordinate system; Detecting whether there is a normal circle in the graphics adjacent to each of all the ellipses according to the position information, and obtaining a detection result; When the detection result indicates that a normal circle exists, marking the figure as a normal circle; All the normal circles are used as interval boundaries to separate the perforation images that are subjected to stamping springback from the perforation images that are not subjected to stamping springback in the fin image.
5. The defect detection method for air conditioner fins according to claim 1, characterized in that: Determining the punching and perforation defect positions in the plurality of elliptical regions according to the minor axis length of each ellipse in each of the plurality of elliptical regions comprises: Determine the minor axis of each of the ellipses in each of the plurality of elliptical regions; Performing length detection on each of the short axes to obtain the short axis length of each of the short axes; Determine a plurality of target short axes whose lengths are less than a short axis length threshold among the short axis lengths; The punching perforation defect locations in the multiple elliptical areas are determined according to the multiple target short axes.
6. The defect detection method for air conditioner fins according to claim 5, characterized in that: Determining the punching and perforation defect positions in the plurality of elliptical regions according to the plurality of target short axes comprises: Determine a plurality of target ellipses corresponding to the plurality of target minor axes; When it is determined that there is a multi-defect elliptical region in the multiple elliptical regions where more than one of the target ellipses exists 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 punching and perforation defect positions in the multi-defect elliptical area according to the positional relationship; The punching and perforation defect position in the non-multi-defect elliptical area is determined according to the position of the target ellipse in the non-multi-defect elliptical area among the multiple elliptical areas.
7. The defect detection method for air conditioner fins according to claim 6, characterized in that: Determining the punching and perforation defect positions in the multi-defect elliptical area according to the position relationship includes: When the target ellipse in the multi-defect ellipse area is determined to be an adjacent ellipse according to the position relationship, the position corresponding to the target ellipse with the shortest minor axis among all the target ellipses in the multi-defect ellipse area is determined as the punching perforation defect position of the multi-defect ellipse area; When it is determined that the target ellipses in the multi-defect ellipse area are non-adjacent ellipses according to the positional relationship, the positions of all the target ellipses in the multi-defect ellipse area are determined as the punching and perforation defect positions of the multi-defect ellipse area.
8. A defect detection device for air conditioner fins, characterized in that: include: A collection module, used for collecting a fin image of the air conditioner fin after the air conditioner fin performs a punching operation, wherein the fin image is a top view of the air conditioner fin; A first detection module is used to perform Hough ellipse detection on the fin image to obtain all ellipses in the fin image; A division module, used for dividing all the ellipses into regions according to the major axis direction of each of the ellipses to obtain a plurality of ellipse regions; A first determination module is used to determine the punching and perforation defect position in the multiple elliptical areas according to the short axis length of each ellipse in each of the multiple elliptical areas; The second determination module is used to determine all the stamping and perforation defect positions of the air conditioner fin according to each of the stamping and perforation defect positions.
9. 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 the air conditioner fin according to any one of claims 1 to 7.
10. A computer program product comprising computer instructions, characterized in that: When the computer instructions are executed by the processor, the defect detection method for the air conditioner fin according to any one of claims 1 to 7 is performed.
Citation Information
Patent Citations
Method and device for discriminating surface defects of measured target object, and computer readable medium
CN111292290A
Scratch defect detection method and device, computing equipment and storage medium
CN111444921A
Defect detection method and device, computer equipment and air conditioner
CN117036315A
Defect analysis system
EP0048568A2
Ellipse detection method and ellipse detection device
JP2002183739A
Cited By
Air cooler fin production quality detection method and system
CN119850597A
A method and system for detecting the production quality of finned tubes of an air cooler
CN119850597B
