Method, device and system for detecting perforation defect of side plate
Through the top view and side view image detection of the edge plate, the burrs, size and angle of the edge plate holes are automatically identified, solving the problem of missed inspection by manual inspection and improving detection efficiency and accuracy.
Patent Information
- Application Number
- CN202411287470.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-13
- Publication Date
- 2024-11-12
- Estimated Expiration
- 2044-09-13
AI Technical Summary
In the prior art, manual inspection of edge plate perforation defects is prone to missed inspection, and the production efficiency is low, so it is impossible to effectively detect whether the burrs, size and angle of edge plate perforation comply with the rules.
By obtaining the top and side view images of the edge plate, detecting whether there are burrs, height and diameter of the edge plate holes are qualified, and using image processing technology to automatically identify defects to determine whether there are defects in the edge plate.
No manual inspection is required, and automated inspection can accurately identify defects in edge plate holes, improving detection efficiency and accuracy, and avoiding missed inspection problems.
Smart Images

Figure CN118937341A_ABST
Abstract
Description
Technical Field
[0001] The present invention relates to the technical field of image recognition defect detection, and in particular to a detection method, device, computer program product and defect detection system for edge plate perforation defects. Background Art
[0002] The side plates at both ends of the air conditioner evaporator and condenser have flanged holes on them to fix copper tubes. However, during the manufacturing process of the side plate sheet metal, burrs are easily generated around the holes. If the size of the holes, the flange height and angle, and the spacing between the holes do not meet the rules, the copper tubes will be scratched or even directly broken during the insertion and assembly process. If the scratched or damaged copper tubes are assembled into the evaporator and condenser, the air conditioner's cooling and heating will not be able to proceed normally, causing the air conditioner to be scrapped. The existing solutions are all to improve the manufacturing performance of sheet metal side plates in the stamping process. There is no better solution for the actual detection of the flanged holes of the side plates, and manual sampling is used to judge the quality of the side plates. Manual sampling detection will inevitably lead to missed detection or even false detection, and consume a lot of manpower and time, and its production efficiency is low. Summary of the invention
[0003] The main purpose of the present application is to provide a method, device, computer program product and defect detection system for detecting perforation defects of edge plates, so as to at least solve the problem of missed detection in manual inspection of perforation defects of edge plates in the prior art.
[0004] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a method for detecting perforation defects of a side plate is provided, wherein the side plate includes a plurality of side plate holes, and the method includes: obtaining a top view image and a side view image of the side plate, wherein the side plate includes a side plate of an evaporator and a side plate of a condenser, wherein the top view image is an image taken along a perforation direction, and the side view image is an image taken along a side direction, wherein the side direction is perpendicular to the perforation direction; detecting whether there are burrs on each of the side plate holes of the side plate according to the top view image; detecting whether the height and diameter of each of the side plate holes of the side plate are qualified according to the side view image, wherein the height is the height difference between the top and bottom of a protrusion formed by the perforation of the side plate hole; determining that there is a defect in the side plate hole when any one of the following is true: there is a burr on the side plate hole, the height of the side plate hole is unqualified, and the diameter of the side plate hole is unqualified; determining that there is a defect in the side plate when at least one of the side plate holes is defective.
[0005] Optionally, detecting whether there are burrs on each of the side plate holes of the side plate based on the top view image includes: extracting the contour of each of the side plate holes in the top view image to obtain a plurality of side plate hole contours; subtracting a standard side plate hole contour from the plurality of side plate hole contours to obtain a plurality of difference contours, wherein the standard side plate hole contour is the contour of the side plate hole without burrs; and determining whether the side plate holes having scattered spots on the difference contours have burrs.
[0006] Optionally, detecting whether the height and diameter of each side plate hole of the side plate are qualified according to the side view image includes: extracting an endpoint combination contour map of each side plate hole according to the side view image, the endpoint combination contour map is a contour map formed by sequentially connecting multiple endpoints of the side plate hole, the endpoints including two top plate endpoints at the top of the side plate hole and two bottom endpoints at the bottom of the side plate hole in the side view image; calculating the distance between one top plate endpoint and the bottom straight line in each endpoint combination contour map to obtain a first height of each side plate hole, calculating the distance between another top plate endpoint and the bottom straight line in each endpoint combination contour map to obtain a second height of each side plate hole, the bottom straight line being a line connecting the two bottom endpoints of the bottom of the side plate hole; determining that the height of the side plate hole whose first height and / or second height is not equal to the predetermined height is unqualified.
[0007] Optionally, detecting whether the height and diameter of each side plate hole of the side plate are qualified according to the side view image includes: extracting an endpoint combination contour map of each side plate hole according to the side view image, the endpoint combination contour map is a contour map formed by sequentially connecting multiple endpoints of the side plate hole, the endpoints including two top plate endpoints at the top of the side plate hole and two bottom endpoints at the bottom of the side plate hole in the side view image; calculating the distance between the two top plate endpoints in each endpoint combination contour map to obtain the diameter of each side plate hole; determining that the diameter of the side plate hole is not equal to the predetermined diameter is unqualified.
[0008] Optionally, the method also includes: extracting an endpoint combination contour map of each of the side plate holes according to the side view image, the endpoint combination contour map is a contour map formed by sequentially connecting multiple endpoints of the side plate holes, and the endpoints include two top plate endpoints at the top of the side plate hole and two bottom endpoints at the bottom of the side plate hole in the side view image; calculating the distance between the first top plate endpoint and the bottom straight line in the endpoint combination contour map to obtain a first height of the side plate hole, calculating the distance between the second top plate endpoint and the bottom straight line in the endpoint combination contour map to obtain a second height of the side plate hole, the bottom straight line being a line connecting the two bottom endpoints at the bottom of the side plate hole, and the two top plate endpoints include the first a top plate endpoint and a second top plate endpoint; calculating the length of the first oblique line in the endpoint combination contour diagram to obtain a first length, calculating the length of the second oblique line in the endpoint combination contour diagram to obtain a second length, the first oblique line is a contour line with the first top plate endpoint and one of the bottom endpoints as endpoints in the endpoint combination contour diagram, and the second oblique line is a contour line with the second top plate endpoint and one of the bottom endpoints as endpoints in the endpoint combination contour diagram; calculating a first slope based on the first height and the first length, and calculating a second slope based on the second height and the second length; determining that the side plate hole whose first slope and / or the second slope is not equal to the predetermined slope is defective.
[0009] Optionally, the method also includes: extracting an endpoint combined contour map of each of the side plate holes according to the side view image, the endpoint combined contour map is a contour map formed by sequentially connecting multiple endpoints of the side plate holes, the endpoints including two top plate endpoints at the top of the side plate holes and two bottom endpoints at the bottom of the side plate holes in the side view image; calculating the minimum distance between two adjacent combined contour maps to obtain multiple distances between perforations; and determining that the side plate has a defect when any distance between perforations is not equal to a predetermined distance.
[0010] Optionally, after determining that the side plate has a defect, the method further comprises: recording the serial number of the side plate hole corresponding to the defect.
[0011] According to another aspect of the present application, a device for detecting perforation defects of a side plate is provided, wherein the side plate includes a plurality of side plate holes, and the device includes: an acquisition unit, for acquiring a top view image and a side view image of the side plate, wherein the side plate includes a side plate of an evaporator and a side plate of a condenser, wherein the top view image is an image taken along a perforation direction, and the side view image is an image taken along a side direction, wherein the side direction is perpendicular to the perforation direction; a first detection unit, for detecting whether there are burrs on each of the side plate holes of the side plate according to the top view image; a second detection unit, for detecting whether the height and diameter of each of the side plate holes of the side plate are qualified according to the side view image, wherein the height is the height difference between the top and bottom of a protrusion formed by the perforation of the side plate hole; a first determination unit, for determining whether there are defects in the side plate holes when any one of the following is true: there are burrs on the side plate holes, the height of the side plate holes is unqualified, and the diameter of the side plate holes is unqualified; and a second determination unit, for determining whether there are defects in the side plate when at least one of the side plate holes is defective.
[0012] According to another aspect of the present application, a computer program product is provided, comprising a computer program, wherein when the computer program is executed by a processor, any one of the methods described above is implemented.
[0013] According to another aspect of the present application, a defect detection system is provided, comprising: a camera, one or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and the one or more programs include methods for executing any one of the described methods.
[0014] By applying the technical solution of the present application, in the detection of the above-mentioned side plate perforation defects, the method collects the top view image and the side view image of the side plate, detects whether there are burrs in each side plate hole of the side plate through the top view image, and detects whether the height, slope and diameter of each side plate hole of the side plate are qualified through the side view image, thereby determining whether there are defects in the side plate holes one by one, thereby determining whether there are defects in the side plate, without the need for manual inspection, which solves the problem of missed detection in manual inspection of side plate perforation defects in the prior art. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] Figure 1 A hardware structure block diagram of a mobile terminal for performing a method for detecting a perforation defect of an edge plate provided in an embodiment of the present application is shown;
[0016] Figure 2 A schematic flow chart of a method for detecting a perforation defect of an edge plate provided according to an embodiment of the present application is shown;
[0017] Figure 3A top view image of a defect-free edge plate provided according to an embodiment of the present application is shown;
[0018] Figure 4 A side view image of a defect-free edge panel provided according to an embodiment of the present application is shown;
[0019] Figure 5 A top view image of an edge plate with burrs provided according to an embodiment of the present application is shown;
[0020] Figure 6 An endpoint combination profile diagram provided according to an embodiment of the present application is shown;
[0021] Figure 7 A schematic flow chart of another method for detecting perforation defects of edge plates provided according to an embodiment of the present application is shown;
[0022] Figure 8 A structural block diagram of a device for detecting perforation defects of edge plates provided according to an embodiment of the present application is shown.
[0023] The above drawings include the following reference numerals:
[0024] 102, processor; 104, memory; 106, transmission device; 108, input and output devices. DETAILED DESCRIPTION
[0025] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0026] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0027] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the above-mentioned drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0028] As introduced in the background technology, manual inspection of edge plate perforation defects in the prior art is prone to missed detection. To solve this technical problem, the embodiments of the present application provide a method, device, computer program product and defect detection system for detecting edge plate perforation defects.
[0029] 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.
[0030] The method embodiments provided in the embodiments of the present application 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 for detecting a side plate perforation defect 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.
[0031] 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 display method of device information 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.
[0032] In this embodiment, a method for detecting perforation defects of a side plate is provided, which runs on a mobile terminal, a computer terminal or a similar computing device. The side plate includes a plurality of side plate holes. 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.
[0033] Figure 2 FIG. 1 is a flow chart of a method for detecting a perforation defect of a side plate according to an embodiment of the present application. Figure 2 As shown, the method comprises the following steps:
[0034] Step S201, obtaining a top view image and a side view image of a side plate, the side plates including the side plates of the evaporator and the condenser, the top view image is an image taken along the perforation direction, and the side view image is an image taken along the side direction, which is perpendicular to the perforation direction;
[0035] Step S202, detecting whether there are burrs on each side plate hole of the side plate according to the top view image;
[0036] Step S203, detecting whether the height and diameter of each side plate hole of the side plate are qualified according to the side view image, wherein the height is the height difference between the top and the bottom of the protrusion formed by the perforation of the side plate hole;
[0037] Step S204, determining that the side plate hole has a defect if any one of the following conditions holds: the side plate hole has a burr, the side plate hole has an unqualified height, and the side plate hole has an unqualified diameter;
[0038] Step S205: When at least one side plate hole has a defect, determine that the side plate has a defect.
[0039] In the detection of the above-mentioned side plate perforation defects, the method collects the top view image and the side view image of the side plate, detects whether there are burrs in each side plate hole of the side plate through the top view image, and detects whether the height, slope and diameter of each side plate hole of the side plate are qualified through the side view image, so as to determine whether there are defects in the side plate holes one by one, thereby determining whether there are defects in the side plate, without the need for manual inspection, which solves the problem of missed detection in manual inspection of side plate perforation defects in the prior art.
[0040] It should be noted that when obtaining the top view image and the side view image of the evaporator side plate and the condenser side plate, the side plate is placed horizontally. The side plate of the air conditioner evaporator and the condenser side plate are metal plates with two rows of perforations. The images of the evaporator side plate and the condenser side plate include the following: Figure 3 The top view image shown in the figure shows that the circular holes represent the perforations on the side plate. Normal perforations on the side plate are smooth circles when viewed from top. Take the front (side) view of the side plate: the side plate is placed horizontally. Take the side view of the circular holes on the side plate. Figure 4 The normal side view image is shown. It should be noted that in the actual perforation process, the metal plate will penetrate and extend. Figure 4 The HI, JK and other side contours are curves, not straight lines.
[0041] In order to detect burr defects, in an optional implementation manner, the above step S202 includes:
[0042] Step S2021, extracting the contour of each side plate hole in the top view image to obtain a plurality of side plate hole contours;
[0043] Step S2022, subtracting the standard side plate hole contour from the multiple side plate hole contours to obtain multiple difference contours, wherein the standard side plate hole contour is the contour of the side plate hole without burrs;
[0044] Step S2023, determining that there are scattered spots in the difference contour and that there are burrs in the side plate holes.
[0045] In the above implementation, if Figure 3As shown in the figure, in the manufacturing process of the edge plate, the qualified state is to form a smooth perforation. If the metal perforation process is immature or there is a problem with the metal material itself, there will be burrs or deformation caused by metal extension or perforation technology on the edge of the perforation, which is called a perforation burr defect. Based on the top view of the edge plate taken, the image of the edge plate is binarized and the image of the circular hole is extracted. Figure 5 As shown, the examples of points A and B in circle O are obvious burrs. When the extracted contour of circle O (side plate hole contour) is inconsistent with the standard side plate hole contour, the opening and closing operations of the image are used, that is, the standard side plate hole contour is subtracted from the multiple side plate hole contours. The resulting image is a non-pure color image with scattered spots, indicating the presence of burr defects.
[0046] In order to detect whether the height of the side plate hole is qualified, in an optional implementation manner, the above step S203 includes:
[0047] Step S2031, extracting an endpoint combination contour map of each side plate hole according to the side view image, wherein the endpoint combination contour map is a contour map formed by sequentially connecting multiple endpoints of the side plate hole, and the endpoints include two top plate endpoints at the top of the side plate hole in the side view image and two bottom endpoints at the bottom of the side plate hole;
[0048] Step S2032, calculating the distance between one top plate endpoint and the bottom straight line in each endpoint combination contour diagram to obtain the first height of each side plate hole, calculating the distance between another top plate endpoint and the bottom straight line in each endpoint combination contour diagram to obtain the second height of each side plate hole, the bottom straight line being the line connecting the two bottom endpoints of the bottom of the side plate hole;
[0049] Step S2033, determining that the height of the side plate hole whose first height and / or second height is not equal to the predetermined height is unqualified.
[0050] In the above implementation, if Figure 4 As shown in the figure, the edge contour of HI, JK and other perforations is arc-shaped, and the perforation itself has a certain height and width. In order to facilitate the detection of the above parameter indicators of the perforation, the front (side) view of the perforation of the side plate is processed as follows to obtain the contour diagram of the end point connection line, which is mainly to solve the problem that the side of the perforation of the side plate such as HI, JK is curved and not conducive to detection. In the actual detection, the perforation indicators that need to be paid attention to are as follows. Figure 4 Take the HIJKL contour of O1 as an example, and map it to Figure 6 The endpoints are connected to the corresponding endpoint combined contour HIJKL, that is, the curves HI and JK are converted into straight lines. The first height of the side plate hole is FI, which is the distance between the top plate endpoint I and the bottom straight line HK. Similarly, the distance between the top plate endpoint J and the bottom straight line HK can be calculated to get the second height. If the first height and the second height are equal to the predetermined height, the height of the side plate hole is qualified, otherwise it is unqualified.
[0051] In order to detect whether the diameter of the side plate hole is qualified, in an optional implementation manner, the above step S203 further includes:
[0052] Step S2034, extracting an endpoint combination contour map of each side plate hole according to the side view image, wherein the endpoint combination contour map is a contour map formed by sequentially connecting multiple endpoints of the side plate hole, and the endpoints include two top plate endpoints at the top of the side plate hole in the side view image and two bottom endpoints at the bottom of the side plate hole;
[0053] Step S2035, calculating the distance between the two top plate endpoints in each endpoint combination contour diagram to obtain the diameter of each side plate hole;
[0054] Step S2036, determining that the diameter of the side plate hole is not equal to the predetermined diameter is unqualified.
[0055] In the above implementation, the distance between the two top plate endpoints in each endpoint combination contour diagram is calculated, that is, Figure 6 The length of IJ is the diameter of the side plate hole. If the diameter of the side plate hole is equal to the predetermined diameter, the diameter of the side plate hole is qualified, otherwise it is unqualified.
[0056] In order to determine whether there is an angle defect in the side plate hole, in an optional implementation manner, the method further includes:
[0057] Step S301, extracting an endpoint combination contour map of each side plate hole according to the side view image, wherein the endpoint combination contour map is a contour map formed by sequentially connecting multiple endpoints of the side plate hole, and the endpoints include two top plate endpoints at the top of the side plate hole in the side view image and two bottom endpoints at the bottom of the side plate hole;
[0058] Step S302, calculating the distance between the first top plate endpoint and the bottom straight line in the endpoint combination contour diagram to obtain the first height of the side plate hole, calculating the distance between the second top plate endpoint and the bottom straight line in the endpoint combination contour diagram to obtain the second height of the side plate hole, the bottom straight line is a line connecting the two bottom endpoints of the bottom of the side plate hole, and the two top plate endpoints include the first top plate endpoint and the second top plate endpoint;
[0059] Step S303, calculating the length of the first oblique line in the endpoint combination contour map to obtain a first length, and calculating the length of the second oblique line in the endpoint combination contour map to obtain a second length, wherein the first oblique line is a contour line with a first top plate endpoint and a bottom endpoint as endpoints in the endpoint combination contour map, and the second oblique line is a contour line with a second top plate endpoint and a bottom endpoint as endpoints in the endpoint combination contour map;
[0060] Step S304, calculating a first slope according to the first height and the first length, and calculating a second slope according to the second height and the second length;
[0061] Step S305, determining that the side plate holes whose first slope and / or second slope is not equal to the predetermined slope are defective.
[0062] In the above implementation, for the HI and JK line segments, according to the Hough line detection, the slopes of the two types of lines are opposite to each other, the lengths are equal, and they meet the symmetric characteristics, that is, the length of the standard side straight line segment is set to l, and the slopes are the first slope k and the second slope -k. Specifically: for non-horizontal straight lines, with the slope k as the feature, a type of straight line is recorded as (ln, kn) (n = 1, 2, ..., N), where ln is the length of the straight line segment, kn is the slope of each straight line segment, and N is the number of perforations on the side plate; with the slope -k as the feature, a type of straight line is recorded as (lm, -km) (m = 1, 2, ..., N), where lm is the length of the straight line segment, -km is the slope of each straight line segment, and N is the number of perforations on the side plate. Ideally, there are only two types of slopes, that is, slope kn = |-km|. In actual manufacturing, when the manufactured perforations do not meet the standards, the length l and the slope k will not meet the default requirements. When the above (ln, kn) and (lm, -km) can simultaneously satisfy kn = |-km| = k, n = m, that is, the slope and number information meet the requirements, it means that the angle of the side plate hole meets the manufacturing process. If any one of the side plate holes does not meet the requirements, there is a defect.
[0063] In order to determine whether there is a defect in the spacing between the side plate holes, in an optional implementation manner, the method further includes:
[0064] Step S401, extracting an endpoint combination contour map of each side plate hole according to the side view image, wherein the endpoint combination contour map is a contour map formed by sequentially connecting multiple endpoints of the side plate hole, and the endpoints include two top plate endpoints at the top of the side plate hole in the side view image and two bottom endpoints at the bottom of the side plate hole;
[0065] Step S402, calculating the minimum distance between two adjacent combined contour images to obtain a plurality of perforation distances;
[0066] Step S403: When the distance between any of the perforations is not equal to the predetermined distance, it is determined that there is a defect in the side plate.
[0067] In the above implementation mode, Figure 4 The length information and y coordinate of KL are used as features, and the straight line segments with equal y coordinates are numbered in sequence, specifically: and when there are N perforations in the side plate, and the actual spacing is s, under normal circumstances, the above straight line segments are numbered [1,2,...,N-1], where N-1 represents the spacing between the N-1th perforation and the Nth perforation. When the length is not s (the actual operation can be set to near the threshold), it is determined that the side plate has a defect.
[0068] In order to locate the defect position, in an optional implementation manner, after determining that the side plate has a defect, the method further includes:
[0069] Step S501, recording the number of the side plate hole corresponding to the defect.
[0070] In the above implementation, the numbers of the side plate holes corresponding to the above defects are recorded. If there is a defect in the spacing between the side plate holes, the numbers of the two side plate holes corresponding to the spacing are recorded to locate the defect.
[0071] In order to enable those skilled in the art to more clearly understand the technical solution of the present application, the implementation process of the method for detecting perforation defects of edge plates of the present application will be described in detail below in combination with specific embodiments.
[0072] This embodiment relates to a specific method for detecting perforation defects in side plates, such as Figure 7 As shown, the following steps are included:
[0073] S1 takes images of the side panels of the two devices:
[0074] S11 takes a top view of the side panel: the side panel is placed horizontally. The side panels of the two air conditioners are metal plates with two rows of perforations. The images of the side panels of the two air conditioners include: Figure 1 The side plate is shown in the top view, and the circular holes in the figure represent the perforations on the side plate. Normal side plate perforations are smooth circles when viewed from top.
[0075] S12 takes the front (side) view of the side panel: The side panel is placed horizontally. The round hole of the side panel can be taken in the front (side) view direction. Figure 2 The normal front (side) view of the two side plates of the device is shown. It should be noted that in the actual perforation process, the metal plate will penetrate and extend. Figure 2 The HI, JK, and equilateral contours are curves, not straight lines.
[0076] S2 side plate perforation defect detection:
[0077] S21 side plate puncture burr detection:
[0078] like Figure 1 As shown, in the manufacturing process, the qualified state of the perforations of the two side plates is to form smooth perforations. If the metal perforation process is immature or there are problems with the material of the metal itself, there will be burrs or deformation caused by metal extension or perforation technology on the edge of the perforation, which is called a perforation burr defect.
[0079] According to the top view of the side plate, the side plate is subjected to image binarization and the image of the circular hole is extracted. Figure 3The examples of points A and B in the circle O in the figure are obvious burrs. When the extracted contour of the circle O is inconsistent with the standard edge plate perforation, the image is opened and closed, and the resulting image is a non-pure color image with scattered spots, which means that there is a burr defect.
[0080] Parameter performance test of S22 side plate perforation.
[0081] like Figure 4 As shown, according to the description in S12, the edge contours of perforations such as HI and JK are arc-shaped, and the perforations themselves have a certain height and width. In order to facilitate the detection of the above parameter indicators of the perforations, the front (side) view of the perforation of the side plate is processed as follows:
[0082] S221 obtains the contour of the lines connecting the endpoints of the test graph:
[0083] Obtaining the contour of the endpoint connection is mainly to solve the problem that the side of the HI, JK and other side plate perforations is curved and not conducive to detection. In actual detection, the perforation indicators that need to be paid attention to are Figure 2 Take the HIJKL contour of O1 as an example, and map it to Figure 4 The endpoints of the corresponding broken line profile HIJKL, that is, the curves HI and JK are converted into straight lines. These indicators are the width of the perforation IJ, the height of the perforation FI, and the spacing of the perforations KL. The height of the perforation FI reflects the angle information in the perforation manufacturing process. In the present invention, it is converted into a line segment HI and its slope problem. According to the length of the line segment HI and its straight line slope in the coordinate system, the size of FI is calculated, which reflects the manufacturing process performance and defects of the perforation.
[0084] S222 perforation process defect detection:
[0085] S2221 performs straight line segment numbering and detects the width of the perforation:
[0086] According to Hough straight line detection, it can be detected Figure 4 All the lines and their slope and length information in the IJ class are collected, and each line of each class is numbered. Specifically, when lines of the same class as IJ are detected, the line segments with the same y coordinates are numbered in sequence based on the length and y coordinate of IJ. And when there are N perforations with a radius of r in the side plate, under normal circumstances, the above line segments are numbered [1,2,...,N], and the length is r. If there is a situation in which the length is not r in the set of line segments of this class (the actual operation can be set near the threshold), the corresponding line number is output, that is, the position of the side hole that does not meet the requirements is output.
[0087] S2222 performs straight line numbering and detects the distance between perforations:
[0088] Same as in S2221, Figure 4 The length information and y coordinate of KL in the figure are used as features, and the straight line segments with equal y coordinates are numbered in sequence. Specifically, when there are N perforations in the side plate and the actual spacing is s, under normal circumstances, the straight line segments are numbered [1,2,...,N-1], where N-1 represents the spacing between the N-1th perforations and the Nth perforations. When the length is not s (the actual operation can be set to be near the threshold), the corresponding straight line number is output, that is, the position of the side hole spacing that does not meet the requirements is output.
[0089] S2223 performs straight line numbering and detects the height of perforations:
[0090] S22231 straight line segment number:
[0091] For the HI and JK line segments (which can reflect the height and angle information of the perforations according to S221), according to the Hough line detection, the slopes of the two types of lines are opposite to each other, and the lengths are equal, satisfying the symmetric characteristics, that is, the length of the standard side straight line segment is set to l, and the slopes are k and -k. Specifically: for non-horizontal straight lines, with the slope k as the feature, a type of straight line is recorded as (ln, kn) (n = 1, 2, ..., N), where ln is the length of the straight line segment, kn is the slope of each straight line segment, and N is the number of perforations on the side plate; with the slope -k as the feature, a type of straight line is recorded as (lm, -km) (m = 1, 2, ..., N), where lm is the length of the straight line segment, -km is the slope of each straight line segment, and N is the number of perforations on the side plate.
[0092] S22232 perforation height and angle detection:
[0093] In S22232, ideally, there are only two types of slopes, i.e., slope kn = |-km|, and there is one type of straight line length ln = lm. In actual manufacturing, when the manufactured perforations do not meet the standards, it will appear that the l length and the slope k do not meet the default requirements. When the above (ln, kn) and (lm, -km) can simultaneously meet ln = lm, kn = |-km| = k, n = m, that is, the slope, length and number information all meet the requirements, it means that the angle height of the perforation meets the manufacturing process. Otherwise, the corresponding n and m numbers are output, that is, the position that does not meet the standards.
[0094] S3 completes the side plate perforation detection:
[0095] According to the operations in S2, the width, spacing and perforation angle height of the side plate perforation are detected. According to various parameters and numbers, the side plate perforation detection is completed and the fault location is output at the same time. When all the indicators in S22 meet the requirements, it means that the manufacturing meets the standards.
[0096] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0097] The embodiment of the present application also provides a detection device for perforation defects of side plates. It should be noted that the detection device for perforation defects of side plates of the embodiment of the present application can be used to execute the detection method for perforation defects of side plates provided in the embodiment of the present application. The device is used to implement the above-mentioned embodiments and preferred implementation modes, and the descriptions that have been made will not be repeated. As used below, the term "module" can be a combination of software and / or hardware that implements a predetermined function. Although the device described in the following embodiments is preferably implemented in software, the implementation in hardware, or a combination of software and hardware, is also possible and conceivable.
[0098] The following is an introduction to a detection device for side plate perforation defects provided in an embodiment of the present application, wherein the side plate includes a plurality of side plate holes.
[0099] Figure 8 is a structural block diagram of a device for detecting perforation defects of side plates according to an embodiment of the present application. Figure 8 As shown, the device comprises:
[0100] An acquisition unit 10 is used to acquire a top view image and a side view image of a side plate, wherein the side plate includes a side plate of an evaporator and a side plate of a condenser, wherein the top view image is an image taken along a perforation direction, and the side view image is an image taken along a side direction, wherein the side direction is perpendicular to the perforation direction;
[0101] The first detection unit 20 is used to detect whether there are burrs on each side plate hole of the side plate according to the top view image;
[0102] The second detection unit 30 is used to detect whether the height and diameter of each side plate hole of the side plate are qualified according to the side view image, and the height is the height difference between the top and the bottom of the protrusion formed by the perforation of the side plate hole;
[0103] The first determination unit 40 is used to determine that the side plate hole has a defect when any one of the following conditions is met: the side plate hole has a burr, the height of the side plate hole is unqualified, and the diameter of the side plate hole is unqualified;
[0104] The second determining unit 50 is used to determine whether the side plate has a defect when at least one side plate hole has a defect.
[0105] In the above-mentioned device for detecting perforation defects of side plates, the device collects top view images and side view images of the side plates, detects whether there are burrs in each side plate hole of the side plate through the top view image, and detects whether the height, slope and diameter of each side plate hole of the side plate are qualified through the side view image, thereby determining whether there are defects in the side plate holes one by one, thereby determining whether there are defects in the side plate, without the need for manual inspection, which solves the problem of missed detection in manual inspection of perforation defects of side plates in the prior art.
[0106] In order to detect burr defects, in an optional implementation manner, the first detection unit includes:
[0107] The first detection module is used to extract the contour of each side plate hole in the top view image to obtain multiple side plate hole contours;
[0108] The second detection module is used to deduct the standard side plate hole contour from the multiple side plate hole contours to obtain multiple difference contours, wherein the standard side plate hole contour is the contour of the side plate hole without burrs;
[0109] The third detection module is used to determine whether there are burrs on the side plate holes where there are scattered spots on the difference contour.
[0110] In the above implementation mode, if Figure 3 As shown in the figure, in the manufacturing process of the edge plate, the qualified state is to form a smooth perforation. If the metal perforation process is immature or there is a problem with the metal material itself, there will be burrs or deformation caused by metal extension or perforation technology on the edge of the perforation, which is called a perforation burr defect. Based on the top view of the edge plate taken, the image of the edge plate is binarized and the image of the circular hole is extracted. Figure 5 As shown, the examples of points A and B in circle O are obvious burrs. When the extracted contour of circle O (side plate hole contour) is inconsistent with the standard side plate hole contour, the opening and closing operations of the image are used, that is, the standard side plate hole contour is subtracted from the multiple side plate hole contours. The resulting image is a non-pure color image with scattered spots, indicating the presence of burr defects.
[0111] In order to detect whether the height of the side plate hole is qualified, in an optional implementation manner, the second detection unit includes:
[0112] A fourth detection module is used to extract an endpoint combination contour map of each side plate hole according to the side view image, wherein the endpoint combination contour map is a contour map formed by sequentially connecting multiple endpoints of the side plate hole, and the endpoints include two top plate endpoints at the top of the side plate hole in the side view image and two bottom endpoints at the bottom of the side plate hole;
[0113] The fifth detection module is used to calculate the distance between a top plate endpoint and the bottom straight line in each endpoint combination contour map to obtain the first height of each side plate hole, and calculate the distance between another top plate endpoint and the bottom straight line in each endpoint combination contour map to obtain the second height of each side plate hole, where the bottom straight line is a line connecting the two bottom endpoints of the bottom of the side plate hole;
[0114] The sixth detection module is used to determine that the height of the side plate hole whose first height and / or second height is not equal to the predetermined height is unqualified.
[0115] In the above implementation, if Figure 4 As shown in the figure, the edge contour of HI, JK and other perforations is arc-shaped, and the perforation itself has a certain height and width. In order to facilitate the detection of the above parameter indicators of the perforation, the front (side) view of the perforation of the side plate is processed as follows to obtain the contour diagram of the end point connection line, which is mainly to solve the problem that the side of the perforation of the side plate such as HI, JK is curved and not conducive to detection. In the actual detection, the perforation indicators that need to be paid attention to are as follows. Figure 4 Take the HIJKL contour of O1 as an example, and map it to Figure 6 The endpoints are connected to the corresponding endpoint combined contour HIJKL, that is, the curves HI and JK are converted into straight lines. The first height of the side plate hole is FI, which is the distance between the top plate endpoint I and the bottom straight line HK. Similarly, the distance between the top plate endpoint J and the bottom straight line HK can be calculated to get the second height. If the first height and the second height are equal to the predetermined height, the height of the side plate hole is qualified, otherwise it is unqualified.
[0116] In order to detect whether the diameter of the side plate hole is qualified, in an optional implementation manner, the second detection unit further includes:
[0117] A seventh detection module is used to extract an endpoint combination contour map of each side plate hole according to the side view image, wherein the endpoint combination contour map is a contour map formed by sequentially connecting multiple endpoints of the side plate hole, and the endpoints include two top plate endpoints at the top of the side plate hole in the side view image and two bottom endpoints at the bottom of the side plate hole;
[0118] An eighth detection module is used to calculate the distance between the two top plate endpoints in each endpoint combination contour diagram to obtain the diameter of each side plate hole;
[0119] The ninth detection module is used to determine that the diameter of the side plate hole is not equal to the predetermined diameter and the side plate hole is unqualified.
[0120] In the above implementation, the distance between the two top plate endpoints in each endpoint combination contour diagram is calculated, that is, Figure 6 The length of IJ is the diameter of the side plate hole. If the diameter of the side plate hole is equal to the predetermined diameter, the diameter of the side plate hole is qualified, otherwise it is unqualified.
[0121] In order to determine whether there is an angle defect in the side plate hole, in an optional implementation, the device further includes:
[0122] A third detection unit is used to extract an endpoint combination contour map of each side plate hole according to the side view image, wherein the endpoint combination contour map is a contour map formed by sequentially connecting multiple endpoints of the side plate hole, and the endpoints include two top plate endpoints at the top of the side plate hole in the side view image and two bottom endpoints at the bottom of the side plate hole;
[0123] The fourth detection unit is used to calculate the distance between the first top plate endpoint and the bottom straight line in the endpoint combination contour diagram to obtain the first height of the side plate hole, and calculate the distance between the second top plate endpoint and the bottom straight line in the endpoint combination contour diagram to obtain the second height of the side plate hole, where the bottom straight line is a line connecting the two bottom endpoints of the bottom of the side plate hole, and the two top plate endpoints include the first top plate endpoint and the second top plate endpoint;
[0124] A fifth detection unit is used to calculate the length of a first oblique line in the endpoint combination contour map to obtain a first length, and calculate the length of a second oblique line in the endpoint combination contour map to obtain a second length, wherein the first oblique line is a contour line with a first top plate endpoint and a bottom endpoint as endpoints in the endpoint combination contour map, and the second oblique line is a contour line with a second top plate endpoint and a bottom endpoint as endpoints in the endpoint combination contour map;
[0125] A sixth detection unit, configured to calculate a first slope according to the first height and the first length, and to calculate a second slope according to the second height and the second length;
[0126] The seventh detection unit is used to determine whether a side plate hole whose first slope and / or second slope is not equal to a predetermined slope is defective.
[0127] In the above implementation, for the HI and JK line segments, according to the Hough line detection, the slopes of the two types of lines are opposite to each other, the lengths are equal, and they meet the symmetric characteristics, that is, the length of the standard side straight line segment is set to l, and the slopes are the first slope k and the second slope -k. Specifically: for non-horizontal straight lines, with the slope k as the feature, a type of straight line is recorded as (ln, kn) (n = 1, 2, ..., N), where ln is the length of the straight line segment, kn is the slope of each straight line segment, and N is the number of perforations on the side plate; with the slope -k as the feature, a type of straight line is recorded as (lm, -km) (m = 1, 2, ..., N), where lm is the length of the straight line segment, -km is the slope of each straight line segment, and N is the number of perforations on the side plate. Ideally, there are only two types of slopes, that is, slope kn = |-km|. In actual manufacturing, when the manufactured perforations do not meet the standards, the length l and the slope k will not meet the default requirements. When the above (ln, kn) and (lm, -km) can simultaneously satisfy kn = |-km| = k, n = m, that is, the slope and number information meet the requirements, it means that the angle of the side plate hole meets the manufacturing process. If any one of the side plate holes does not meet the requirements, there is a defect.
[0128] In order to determine whether the spacing between the side plate holes is defective, in an optional implementation, the device further includes:
[0129] an eighth detection unit, configured to extract an endpoint combination contour map of each side plate hole according to the side view image, wherein the endpoint combination contour map is a contour map formed by sequentially connecting multiple endpoints of the side plate hole, and the endpoints include two top plate endpoints at the top of the side plate hole and two bottom endpoints at the bottom of the side plate hole in the side view image;
[0130] A ninth detection unit, used for calculating the minimum distance between two adjacent combined contour images to obtain a plurality of perforation distances;
[0131] The tenth detection unit is used to determine that the side plate has a defect when the distance between any of the perforations is not equal to the predetermined distance.
[0132] In the above implementation mode, Figure 4 The length information and y coordinate of KL are used as features, and the straight line segments with equal y coordinates are numbered in sequence, specifically: and when there are N perforations in the side plate, and the actual spacing is s, under normal circumstances, the above straight line segments are numbered [1,2,...,N-1], where N-1 represents the spacing between the N-1th perforation and the Nth perforation. When the length is not s (the actual operation can be set to near the threshold), it is determined that the side plate has a defect.
[0133] In order to locate the defect position, in an optional implementation manner, the above device further includes:
[0134] The recording unit is used to record the number of the side plate hole corresponding to the defect after determining that the side plate has a defect.
[0135] In the above implementation, the numbers of the side plate holes corresponding to the above defects are recorded. If there is a defect in the spacing between the side plate holes, the numbers of the two side plate holes corresponding to the spacing are recorded to locate the defect.
[0136] The detection device for edge plate perforation defects includes a processor and a memory, wherein the acquisition unit, the first detection unit, the second detection unit, the first determination unit, and the second determination unit are all stored in the memory as program units, and the processor executes the program units stored in the memory to implement corresponding functions. The modules are all located in the same processor; or, the modules are located in different processors in any combination.
[0137] The processor includes a kernel, which retrieves the corresponding program unit from the memory. One or more kernels can be set, and the problem of missed detection in manual inspection of edge plate perforation defects in the prior art can be solved by adjusting kernel parameters.
[0138] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0139] An embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored program, wherein when the program is run, a device where the computer-readable storage medium is located is controlled to execute a method for detecting a perforation defect of an edge plate.
[0140] Specifically, the detection method of the edge plate perforation defect includes:
[0141] Step S201, obtaining a top view image and a side view image of a side plate, the side plates including the side plates of the evaporator and the condenser, the top view image is an image taken along the perforation direction, and the side view image is an image taken along the side direction, which is perpendicular to the perforation direction;
[0142] Step S202, detecting whether there are burrs on each side plate hole of the side plate according to the top view image;
[0143] Step S203, detecting whether the height and diameter of each side plate hole of the side plate are qualified according to the side view image, wherein the height is the height difference between the top and the bottom of the protrusion formed by the perforation of the side plate hole;
[0144] Step S204, determining that the side plate hole has a defect if any one of the following conditions holds: the side plate hole has a burr, the side plate hole has an unqualified height, and the side plate hole has an unqualified diameter;
[0145] Step S205: When at least one side plate hole has a defect, determine that the side plate has a defect.
[0146] An embodiment of the present invention provides a processor, which is used to run a program, wherein a method for detecting a perforation defect of an edge plate is executed when the program is run.
[0147] Specifically, the detection method of the edge plate perforation defect includes:
[0148] Step S201, obtaining a top view image and a side view image of a side plate, the side plates including the side plates of the evaporator and the condenser, the top view image is an image taken along the perforation direction, and the side view image is an image taken along the side direction, which is perpendicular to the perforation direction;
[0149] Step S202, detecting whether there are burrs on each side plate hole of the side plate according to the top view image;
[0150] Step S203, detecting whether the height and diameter of each side plate hole of the side plate are qualified according to the side view image, wherein the height is the height difference between the top and the bottom of the protrusion formed by the perforation of the side plate hole;
[0151] Step S204, determining that the side plate hole has a defect if any one of the following conditions holds: the side plate hole has a burr, the side plate hole has an unqualified height, and the side plate hole has an unqualified diameter;
[0152] Step S205: When at least one side plate hole has a defect, determine that the side plate has a defect.
[0153] An embodiment of the present invention provides a defect detection system, which includes a camera, a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, at least the following steps are implemented:
[0154] Step S201, obtaining a top view image and a side view image of a side plate, the side plates including the side plates of the evaporator and the condenser, the top view image is an image taken along the perforation direction, and the side view image is an image taken along the side direction, which is perpendicular to the perforation direction;
[0155] Step S202, detecting whether there are burrs on each side plate hole of the side plate according to the top view image;
[0156] Step S203, detecting whether the height and diameter of each side plate hole of the side plate are qualified according to the side view image, wherein the height is the height difference between the top and the bottom of the protrusion formed by the perforation of the side plate hole;
[0157] Step S204, determining that the side plate hole has a defect if any one of the following conditions holds: the side plate hole has a burr, the side plate hole has an unqualified height, and the side plate hole has an unqualified diameter;
[0158] Step S205: When at least one side plate hole has a defect, determine that the side plate has a defect.
[0159] The present application also provides a computer program product, which, when executed on a data processing device, is suitable for executing a program for initializing at least the following method steps:
[0160] Step S201, obtaining a top view image and a side view image of a side plate, the side plates including the side plates of the evaporator and the condenser, the top view image is an image taken along the perforation direction, and the side view image is an image taken along the side direction, which is perpendicular to the perforation direction;
[0161] Step S202, detecting whether there are burrs on each side plate hole of the side plate according to the top view image;
[0162] Step S203, detecting whether the height and diameter of each side plate hole of the side plate are qualified according to the side view image, wherein the height is the height difference between the top and the bottom of the protrusion formed by the perforation of the side plate hole;
[0163] Step S204, determining that the side plate hole has a defect if any one of the following conditions holds: the side plate hole has a burr, the side plate hole has an unqualified height, and the side plate hole has an unqualified diameter;
[0164] Step S205: When at least one side plate hole has a defect, determine that the side plate has a defect.
[0165] Obviously, those skilled in the art should understand that the above modules or steps of the present invention can be implemented by a general computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than here, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0166] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment in combination with software and hardware. Moreover, the present application may adopt the form of a computer program product implemented in one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) that include computer-usable program code.
[0167] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0168] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0169] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 A step that specifies a function in one or more boxes.
[0170] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0171] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0172] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0173] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0174] From the above description, it can be seen that the above embodiments of the present application achieve the following technical effects:
[0175] 1) In the detection of perforation defects of the side plates of the present application, the method collects the top view image and the side view image of the side plate, detects whether there are burrs in each side plate hole of the side plate through the top view image, and detects whether the height, slope and diameter of each side plate hole of the side plate are qualified through the side view image, so as to determine whether there are defects in the side plate holes one by one, thereby determining whether there are defects in the side plate, without manual inspection, which solves the problem of missed detection in manual inspection of perforation defects of the side plates in the prior art.
[0176] 2) In the device for detecting perforation defects of side plates of the present application, the device collects top view images and side view images of the side plates, detects whether there are burrs in each side plate hole of the side plate through the top view image, and detects whether the height, slope and diameter of each side plate hole of the side plate are qualified through the side view image, thereby determining whether there are defects in the side plate holes one by one, thereby determining whether there are defects in the side plates, without the need for manual inspection, which solves the problem of missed detection in manual inspection of perforation defects of side plates in the prior art.
[0177] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A method for detecting perforation defects in side plates, characterized in that: The side plate includes a plurality of side plate holes, and the method includes: Acquire a top view image and a side view image of the side plate, wherein the side plate includes a side plate of an evaporator and a side plate of a condenser, wherein the top view image is an image taken along a perforation direction, and the side view image is an image taken along a side direction, wherein the side direction is perpendicular to the perforation direction; Detecting whether each of the side plate holes of the side plate has burrs according to the top view image; Detecting whether the height and diameter of each of the side plate holes of the side plate are qualified according to the side view image, wherein the height is the height difference between the top and the bottom of the protrusion formed by the perforation of the side plate hole; In the case where any one of the following conditions holds true: there is a burr in the side plate hole, the height of the side plate hole is unqualified, and the diameter of the side plate hole is unqualified, it is determined that there is a defect in the side plate hole; In the event that at least one of the side plate holes is defective, it is determined that the side plate is defective.
2. The method according to claim 1, characterized in that Detecting whether each of the side plate holes of the side plate has burrs according to the top view image includes: Extracting the contour of each of the side plate holes in the top view image to obtain a plurality of side plate hole contours; Subtracting a standard side plate hole profile from the plurality of side plate hole profiles to obtain a plurality of difference profiles, wherein the standard side plate hole profile is a profile of the side plate hole without burrs; It is determined that the edge plate holes where there are scattered spots in the difference profile have burrs.
3. The method according to claim 1, characterized in that Detecting whether the height and diameter of each of the side plate holes of the side plate are qualified according to the side view image includes: Extracting an endpoint combination contour map of each of the side plate holes according to the side view image, wherein the endpoint combination contour map is a contour map formed by sequentially connecting multiple endpoints of the side plate holes, wherein the endpoints include two top plate endpoints at the top of the side plate holes in the side view image and two bottom endpoints at the bottom of the side plate holes; Calculate the distance between one of the top plate endpoints and the bottom straight line in each endpoint combination contour diagram to obtain the first height of each side plate hole; calculate the distance between another top plate endpoint and the bottom straight line in each endpoint combination contour diagram to obtain the second height of each side plate hole, wherein the bottom straight line is a line connecting the two bottom endpoints of the bottom of the side plate hole; It is determined that the height of the side plate hole whose first height and / or second height is not equal to the predetermined height is unqualified.
4. The method according to claim 1, characterized in that: Detecting whether the height and diameter of each of the side plate holes of the side plate are qualified according to the side view image includes: Extracting an endpoint combination contour map of each of the side plate holes according to the side view image, wherein the endpoint combination contour map is a contour map formed by sequentially connecting multiple endpoints of the side plate holes, wherein the endpoints include two top plate endpoints at the top of the side plate holes in the side view image and two bottom endpoints at the bottom of the side plate holes; Calculate the distance between the two top plate endpoints in each endpoint combination contour diagram to obtain the diameter of each side plate hole; It is determined that the diameter of the side plate hole is not equal to the predetermined diameter and the diameter of the side plate hole is unqualified.
5. The method according to any one of claims 1 to 4, characterized in that The method further comprises: Extracting an endpoint combination contour map of each of the side plate holes according to the side view image, wherein the endpoint combination contour map is a contour map formed by sequentially connecting multiple endpoints of the side plate holes, wherein the endpoints include two top plate endpoints at the top of the side plate holes in the side view image and two bottom endpoints at the bottom of the side plate holes; Calculate the distance between the first top plate endpoint and the bottom straight line in the endpoint combination contour diagram to obtain the first height of the side plate hole; calculate the distance between the second top plate endpoint and the bottom straight line in the endpoint combination contour diagram to obtain the second height of the side plate hole, wherein the bottom straight line is a line connecting the two bottom endpoints of the bottom of the side plate hole, and the two top plate endpoints include the first top plate endpoint and the second top plate endpoint; The length of a first oblique line in the endpoint combination contour map is calculated to obtain a first length, and the length of a second oblique line in the endpoint combination contour map is calculated to obtain a second length, wherein the first oblique line is a contour line in the endpoint combination contour map with the first top plate endpoint and one of the bottom endpoints as endpoints, and the second oblique line is a contour line in the endpoint combination contour map with the second top plate endpoint and one of the bottom endpoints as endpoints; A first slope is calculated according to the first height and the first length, and a second slope is calculated according to the second height and the second length; It is determined that the side plate hole in which the first slope and / or the second slope is not equal to a predetermined slope is defective.
6. The method according to any one of claims 1 to 4, characterized in that The method further comprises: Extracting an endpoint combination contour map of each of the side plate holes according to the side view image, wherein the endpoint combination contour map is a contour map formed by sequentially connecting multiple endpoints of the side plate holes, wherein the endpoints include two top plate endpoints at the top of the side plate holes in the side view image and two bottom endpoints at the bottom of the side plate holes; Calculating the minimum distance between two adjacent combined contour images to obtain a plurality of perforation distances; In the case where the distance between any of the perforations is not equal to the predetermined distance, it is determined that the side plate has a defect.
7. The method according to any one of claims 1 to 4, characterized in that After determining that the side plate has defects, the method further includes: Record the number of the side plate hole corresponding to the defect.
8. A device for detecting perforation defects of side plates, characterized in that: The side plate includes a plurality of side plate holes, and the device includes: an acquisition unit, configured to acquire a top view image and a side view image of the side plate, wherein the side plate includes a side plate of an evaporator and a side plate of a condenser, wherein the top view image is an image taken along a perforation direction, and the side view image is an image taken along a side direction, wherein the side direction is perpendicular to the perforation direction; A first detection unit, used for detecting whether there are burrs on each of the side plate holes of the side plate according to the top view image; A second detection unit is used to detect whether the height and diameter of each of the side plate holes of the side plate are qualified according to the side view image, wherein the height is the height difference between the top and the bottom of the protrusion formed by the perforation of the side plate hole; A first determination unit is used to determine that the side plate hole has a defect when any one of the following conditions is met: the side plate hole has a burr, the height of the side plate hole is unqualified, and the diameter of the side plate hole is unqualified; The second determining unit is used to determine whether the side plate has a defect when at least one of the side plate holes has a defect.
9. A computer program product, comprising a computer program, characterized in that When the computer program is executed by a processor, the method according to any one of claims 1 to 7 is implemented.
10. A defect detection system, characterized in that: include: A camera, one or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and the one or more programs include instructions for executing the method described in any one of claims 1 to 7.
Citation Information
Patent Citations
Intelligent detection device of defects of mobile phone outer shell based on machine vision
CN102218406A
Detection device for injector needle top burrs
CN103134812A
Five-jack socket panel defect intelligent detection method and system based on machine vision
CN114324350A
Distributing and positioning system for side plates of air conditioner condenser
CN115583501A
Filter screen detection method and device, computer readable storage medium and air conditioning system
CN116894823A
Cited By
Evaporator defect detection method and system based on deep learning
CN122265173A
A Deep Learning-Based Method and System for Evaporator Defect Detection
CN122265173B
