Methods, devices, and defect detection systems for air guide vanes
By establishing concentric circles on the image of the air guide turntable and obtaining the intersection points, the defects of the air guide turntable are automatically detected using the intersection point features. This solves the problem that the injection molding quality of the air guide turntable cannot be automatically inspected in the existing technology, and achieves efficient defect detection.
Patent Information
- Application Number
- CN202411244005.9
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-09-05
- Publication Date
- 2025-10-28
- Estimated Expiration
- 2044-09-05
AI Technical Summary
Existing technologies cannot automatically inspect the injection molding quality of air guide turntables, leading to false positives and false negatives, which pose quality problems and safety hazards.
By creating multiple concentric circles on the image of the air guide turntable, the intersection points of the concentric circles and the skeleton are obtained. The adjacent distance, pixel value variance, and offset angle of the intersection points are used to determine whether there are defects in the air guide turntable.
The system enables automated defect detection of air guide turntables, avoiding false positives and false negatives that can occur during manual inspection, thus ensuring product quality and safety.
Smart Images

Figure CN118914210B_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of defect detection technology, and more specifically, to a method, apparatus, computer program product, and defect detection system for detecting defects in a wind deflector. Background Technology
[0002] In the manufacturing process of desktop fans, an air guide disc is installed. This disc serves two purposes: firstly, it protects the fan blades from damage due to impact; secondly, it ensures a gentler airflow, avoiding the discomfort of direct airflow. The quality of the air guide disc's injection molding determines its performance. When the injection-molded air guide disc is substandard, the disc's center of gravity becomes unstable, causing abnormal noises during operation, posing safety hazards, and impacting the user experience. Currently, most air guide discs are manually selected after injection molding, lacking effective testing processes. This lack of effective judgment regarding assembly quality leads to false positives and false negatives, resulting in substandard products entering the market and posing significant quality problems and safety hazards. Summary of the Invention
[0003] The main objective of this application is to provide a method, apparatus, computer program product, and defect detection system for detecting defects in air guide turntables, so as to at least solve the problem that the injection molding quality of air guide turntables cannot be automatically inspected in the prior art.
[0004] To achieve the above objectives, according to one aspect of this application, a method for detecting defects in a deflector disc is provided, comprising: acquiring an image of the deflector disc to be detected, thereby obtaining a target image; establishing multiple concentric circles on the target image, wherein the centers of the concentric circles are the same as the centers of the deflector disc to be detected, and the radii of the concentric circles are smaller than the radius of the deflector disc to be detected; acquiring the intersection points of each concentric circle with the skeleton of the deflector disc to be detected, thereby obtaining multiple intersection point sets, wherein each intersection point set corresponds one-to-one with a concentric circle, and the intersection point set includes a... The concentric circles intersect with all the skeletons; if any one of the following conditions is not met, the air guide turntable is determined to have a defect: all adjacent intersection points in the target intersection point set are equidistant, the variance of the pixel values of each intersection point in the target intersection point set is less than the variance threshold, and the offset angle of each intersection point in the target intersection point set is equal. The target intersection point set is any set of intersection points, the distance between adjacent intersection points is the distance between two adjacent intersection points, and the offset angle is the angle between the tangent of the skeleton at the intersection point and the radial direction of the intersection point.
[0005] Optionally, obtaining the intersection points of each concentric circle with the frame of the air guide vane to be tested, resulting in multiple intersection point sets, includes: an acquisition step, where, in the case that the intersection of each concentric circle with each frame is an arc, the arcs intersecting the target concentric circle with each frame are acquired, resulting in multiple intersecting arcs, wherein the target concentric circle is any one of the concentric circles; a determination step, where the midpoint of each intersecting arc is determined as the intersection point of the intersection point set corresponding to the target concentric circle, resulting in the intersection point set corresponding to the target concentric circle; the acquisition step and the determination step are repeated at least once until all the intersection point sets are obtained.
[0006] Optionally, if any one of the following conditions is not met—that all adjacent intersection points in the target intersection point set are equidistant, that the variance of the pixel values of each intersection point in the target intersection point set is less than a variance threshold, and that the offset angles of each intersection point in the target intersection point set are equidistant—it is determined that the air guide turntable has a defect. This includes: a first calculation step, calculating the distance between all two adjacent intersection points in the target intersection point set to obtain multiple adjacent intersection point distances; if any two adjacent intersection point distances are unequal, determining that the skeleton distribution of the air guide turntable to be tested is uneven; if all adjacent intersection point distances are equidistant, repeating the first calculation step at least once until there are two adjacent intersection point distances that are unequal, determining that the skeleton distribution of the air guide turntable to be tested is uneven, or until there are no two adjacent intersection point distances that are unequal in all intersection point sets, determining that the skeleton distribution of the air guide turntable to be tested is uniform.
[0007] Optionally, if any one of the following conditions is not met—that all adjacent intersections in the target intersection set are equidistant, that the variance of the pixel values of each intersection in the target intersection set is less than a variance threshold, and that the offset angles of each intersection in the target intersection set are equal—a defect is determined to exist in the air guide turntable. This includes: a second calculation step, obtaining the pixel values of each intersection in the target intersection set to obtain multiple pixel values, calculating the variance of all pixel values to obtain the variance corresponding to the target intersection set; if the variance is greater than or equal to the variance threshold, determining that the frame thickness of the air guide turntable to be tested is inconsistent; if the variance is less than the variance threshold, repeating the second calculation step at least once until there exists a variance corresponding to an intersection set that is greater than or equal to the variance threshold, determining that the frame thickness of the air guide turntable to be tested is inconsistent, or until the variances corresponding to all intersection sets are less than the variance threshold, determining that the frame thickness of the air guide turntable to be tested is consistent.
[0008] Optionally, after determining that the frame thickness of the air guide vane to be tested is inconsistent, the method further includes: calculating the average value of all the pixel values corresponding to the target intersection set to obtain the average pixel value corresponding to the target intersection set; if the absolute value of the difference between the pixel value of any intersection point in the target intersection set and the average pixel value is greater than a pixel threshold, determining that the frame corresponding to the intersection point is too thick or too thin.
[0009] Optionally, if any one of the following conditions is not met—that all adjacent intersections in the target intersection set are equidistant, that the variance of the pixel values of each intersection in the target intersection set is less than a variance threshold, and that the offset angles of each intersection in the target intersection set are all equal—then a defect is determined to exist in the air guide turntable. This includes: a setup step, whereby tangents to the skeleton at each intersection in the target intersection set are established to obtain multiple tangents; and radial rays passing through each intersection in the target intersection set are established to obtain multiple rays. The tangents correspond one-to-one with the intersections, and the rays correspond one-to-one with the intersections. The radial rays originate from the center of the air guide turntable to be tested. The third calculation step involves calculating the angle between the tangent and the corresponding ray at each intersection point to obtain the offset angle of each intersection point in the target intersection point set. If any two offset angles are unequal, the skeleton angle of the air guide turntable to be detected is determined to be different. If all offset angles are equal, the establishment step and the third calculation step are repeated at least once until two offset angles are unequal, determining that the skeleton angle of the air guide turntable to be detected is different, or until no two offset angles are unequal in any of the intersection point sets, determining that the skeleton angle of the air guide turntable to be detected is the same.
[0010] Optionally, multiple concentric circles are established on the target image, including: setting a first number of first radii, a second number of second radii, and a third number of third radii, wherein each of the first radii is less than 1 / 3 of the radius of the air guide turntable to be detected, each of the second radii is greater than 1 / 3 of the radius of the air guide turntable to be detected and less than 2 / 3 of the radius of the air guide turntable to be detected, and each of the third radii is greater than the second number, and the second number is greater than the first number; multiple concentric circles are established with the center of the air guide turntable to be detected as the center, and with each of the first radii, each of the second radii, and each of the third radii as radii.
[0011] According to another aspect of this application, a detection device for defects in a deflector disc is provided, comprising: a first acquisition unit, configured to acquire an image of the deflector disc to be detected, thereby obtaining a target image; an establishment unit, configured to establish a plurality of concentric circles on the target image, wherein the center of each concentric circle is the same as the center of the deflector disc to be detected, and the radius of each concentric circle is smaller than the radius of the deflector disc to be detected; and a second acquisition unit, configured to acquire the intersection points of each concentric circle with the skeleton of the deflector disc to be detected, thereby obtaining a plurality of intersection point sets, wherein each intersection point set corresponds one-to-one with the concentric circle, and the intersection point set includes... The system includes a concentric circle and all the intersection points of the skeleton; a first determining unit is used to determine that the air guide turntable has a defect if any one of the following conditions is not met: all adjacent intersection points in the target intersection point set are equidistant, the variance of the pixel values of each intersection point in the target intersection point set is less than a variance threshold, and the offset angle of each intersection point in the target intersection point set is equal. The target intersection point set is any set of intersection points, the adjacent intersection point distance is the distance between two adjacent intersection points, and the offset angle is the angle between the tangent of the skeleton at the intersection point and the radial direction of the intersection point.
[0012] According to another aspect of this application, a computer program product is provided, comprising a computer program, characterized in that the computer program, when executed by a processor, implements any one of the methods described.
[0013] According to another aspect of this application, a defect detection system is provided, comprising: one or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs including methods for performing any one of the methods described.
[0014] By applying the technical solution of this application, the above-mentioned method for detecting defects in the air guide turntable involves establishing multiple concentric circles in the image of the air guide turntable to be detected, and obtaining the intersection points of the concentric circles with the skeleton of the air guide turntable to be detected, thus obtaining an intersection point set. The concentric circles and the intersection point set correspond one-to-one. The uniformity of the skeleton distribution is measured by the distance between adjacent intersection points. If the distance between all adjacent intersection points in any intersection point set is equal, the skeleton distribution is uniform; otherwise, the air guide turntable has a defect. The consistency of the skeleton thickness is measured by the pixel values of the intersection points. If the variance of the pixel values of each intersection point in any intersection point set is less than the variance threshold, the skeleton thickness is consistent; otherwise, the air guide turntable has a defect. The angular deviation of the skeleton is measured by the offset angle of the intersection points. If the offset angles of each intersection point in any intersection point set are equal, the angular deviation of the skeleton is the same; otherwise, the air guide turntable has a defect. This completes the defect detection without the need for manual inspection of the injection molding quality of the air guide turntable, solving the problem in the prior art that the injection molding quality of the air guide turntable cannot be automatically inspected. Attached Figure Description
[0015] Figure 1 A hardware structure block diagram of a mobile terminal for performing a method for detecting defects in a wind deflector provided in an embodiment of this application is shown.
[0016] Figure 2 A flowchart illustrating a method for detecting defects in a wind deflector according to an embodiment of this application is shown.
[0017] Figure 3 A schematic diagram of a fan guide vane structure according to an embodiment of this application is shown.
[0018] Figure 4 An angle diagram of a fan guide vane frame provided according to an embodiment of this application is shown;
[0019] Figure 5 A flowchart illustrating another method for detecting defects in a wind deflector according to an embodiment of this application is shown.
[0020] Figure 6 A structural block diagram of a device for detecting defects in a wind deflector provided according to an embodiment of this application is shown.
[0021] The above figures include the following reference numerals:
[0022] 102. Processor; 104. Memory; 106. Transmission device; 108. Input / output device. Detailed Implementation
[0023] It should be noted that, unless otherwise specified, the embodiments and features described in this application can be combined with each other. This application will now be described in detail with reference to the accompanying drawings and embodiments.
[0024] To enable those skilled in the art to better understand the present application, the technical solutions in the embodiments of the present application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of the present application, and not all embodiments. Based on the embodiments in the present application, all other embodiments obtained by those of ordinary skill in the art without creative effort should fall within the scope of protection of the present application.
[0025] It should be noted that the terms "first," "second," etc., in the specification, claims, and accompanying drawings of this application are used to distinguish similar objects and are not necessarily used to describe a specific order or sequence. It should be understood that such data can be interchanged where appropriate for the embodiments of this application described herein. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion; for example, a process, method, system, product, or apparatus that comprises a series of steps or units is not necessarily limited to those steps or units explicitly listed, but may include other steps or units not explicitly listed or inherent to such processes, methods, products, or apparatus.
[0026] As described in the background section, existing technologies cannot automatically inspect the injection molding quality of air guide turntables. To solve this technical problem, embodiments of this application provide a method, apparatus, computer program product, and defect detection system for detecting defects in air guide turntables.
[0027] The technical solutions in the embodiments of the present invention will be described clearly and completely below with reference to the accompanying drawings in the embodiments of the present invention.
[0028] The methods and embodiments provided in this application can be executed on a mobile terminal, a computer terminal, or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 This is a hardware structure block diagram of a mobile terminal for a method of detecting defects in a wind guide turntable according to an embodiment of the present invention. Figure 1 As shown, a mobile terminal may include one or more ( Figure 1 Only one is shown in the diagram. A processor 102 (which may include, but is not limited to, a microprocessor MCU or a programmable logic device FPGA, etc.) and a memory 104 for storing data are also shown. The mobile terminal may further include a transmission device 106 for communication functions and an input / output device 108. Those skilled in the art will understand that... Figure 1 The structure shown is for illustrative purposes only and does not limit the structure of the mobile terminal described above. For example, the mobile terminal may also include components that are more... Figure 1 The more or fewer components shown, or having the same Figure 1 The different configurations shown.
[0029] The memory 104 can be used to store computer programs, such as application software programs and modules, like the computer program corresponding to the method for detecting defects in the wind deflector in this embodiment of the invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, thereby implementing the above-described method. The memory 104 may include high-speed random access memory and non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some instances, the memory 104 may further include memory remotely located relative to the processor 102, and these remote memories can be connected to the mobile terminal via a network. Examples of the aforementioned networks include, but are not limited to, the Internet, corporate intranets, local area networks, mobile communication networks, and combinations thereof. The transmission device 106 is used to receive or send data via a network. Specific examples of the aforementioned networks may include wireless networks provided by the mobile terminal's communication provider. In one example, the transmission device 106 includes a network interface controller (NIC), which can be connected to other network devices via a base station to communicate with the Internet. In one example, the transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0030] This embodiment provides a method for detecting defects in a wind deflector that runs on a mobile terminal, computer terminal, or similar computing device. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.
[0031] Figure 2 This is a flowchart of a method for detecting defects in a wind-guiding turntable according to an embodiment of this application. Figure 2 As shown, the method includes the following steps:
[0032] Step S201: Obtain an image of the air guide vane to be detected to obtain the target image;
[0033] Step S202: Establish multiple concentric circles on the target image. The center of the concentric circles is the same as the center of the air guide turntable to be detected, and the radius of the concentric circles is smaller than the radius of the air guide turntable to be detected.
[0034] Step S203: Obtain the intersection points of each of the above concentric circles with the skeleton of the air guide turntable to be tested, and obtain multiple intersection point sets. The intersection point sets correspond one-to-one with the above concentric circles. The intersection point sets include the intersection points of one of the above concentric circles with all the above skeletons.
[0035] Step S204: If any one of the following conditions is not met: all adjacent intersections in the target intersection set are equidistant, the variance of the pixel values of each intersection in the target intersection set is less than the variance threshold, or the offset angles of each intersection in the target intersection set are equidistant, then the air guide turntable is determined to have a defect. The target intersection set is any set of intersections, the adjacent intersection distance is the distance between two adjacent intersections, and the offset angle is the angle between the tangent of the skeleton at the intersection and the radial direction of the intersection.
[0036] In the above-mentioned method for detecting defects in the air guide turntable, multiple concentric circles are established in the image of the air guide turntable to be detected, and the intersection points of the concentric circles and the skeleton of the air guide turntable to be detected are obtained to obtain the intersection point set. The concentric circles and the intersection point set are in one-to-one correspondence. The uniformity of the skeleton distribution is measured by the distance between adjacent intersection points. If the distance between all adjacent intersection points in any intersection point set is equal, the skeleton distribution is uniform; otherwise, the air guide turntable has a defect. The uniformity of the skeleton thickness is measured by the pixel value of the intersection points. If the variance of the pixel values of all intersection points in any intersection point set is less than the variance threshold, the skeleton thickness is uniform; otherwise, the air guide turntable has a defect. The angular deviation of the skeleton is measured by the offset angle of the intersection points. If the offset angles of all the above-mentioned intersection points in any intersection point set are equal, the angular deviation of the skeleton is the same; otherwise, the air guide turntable has a defect. The defect detection can be completed without the need for manual inspection of the injection molding quality of the air guide turntable, thus solving the problem that the injection molding quality of the air guide turntable cannot be automatically inspected in the existing technology.
[0037] It should be noted that the air guide turntable to be tested is fed into the camera imaging box via a conveyor belt. The device inside the box automatically adjusts the air guide turntable to the appropriate position and fixes it in place. Then, a camera fixed to the top of the imaging box illuminates the protective cover and takes a picture to obtain a clear top-view image, thus obtaining the target image. Figure 3 As shown.
[0038] To ensure the accuracy of the detection, in one optional implementation, step S203 includes:
[0039] Step S2031, the acquisition step, in the case that the part of the intersection between each of the above concentric circles and each of the above skeletons is an arc, the arc of the intersection between the target concentric circle and each of the above skeletons is obtained, and multiple intersecting arcs are obtained, wherein the target concentric circle is any one of the above concentric circles.
[0040] Step S2032, Determine the step, determine the midpoint of each of the above intersecting arcs as the intersection point of the above set of intersection points corresponding to the above concentric circles of the target, and obtain the above set of intersection points corresponding to the above concentric circles of the target.
[0041] Step S2033: Repeat the above acquisition step and the above determination step at least once, until all the above intersection point sets are obtained.
[0042] In the above implementation, since the wind guide turntable frame has a certain width, its intersection with the concentric circles is a small arc. The midpoint of the arc is then determined as the intersection point. This is done for the intersection points of each frame, resulting in a set of intersection points. This process is repeated to obtain the intersection point sets corresponding to all concentric circles, thus avoiding errors caused by the selection of intersection points from affecting the detection results.
[0043] In an optional implementation for detecting defects, step S204 above includes:
[0044] Step S2041, first calculation step, calculate the distance between all adjacent pairs of the above target intersection points in the above target intersection point set, and obtain multiple adjacent intersection point distances;
[0045] Step S2042: If the distance between any two of the above-mentioned adjacent intersection points is not equal, it is determined that the skeleton distribution of the above-mentioned air guide turntable to be tested is uneven.
[0046] Step S2043: If all the above-mentioned adjacent intersection points are equidistant, repeat the first calculation step at least once until there are two above-mentioned adjacent intersection points that are not equidistant, and determine that the skeleton distribution of the above-mentioned wind guide turntable to be tested is uneven, or until there are no two above-mentioned adjacent intersection points that are not equidistant in all the above-mentioned intersection point sets, and determine that the skeleton distribution of the above-mentioned wind guide turntable to be tested is uniform.
[0047] In the above embodiments, since the air guide vane itself is a circular structure, the intersection of the selected concentric circles with the air guide vane frame, using the center of the circle as a reference, has the same degree of detection and comparison. For example... Figure 4As shown, concentric circles c1 are selected with o as the center. In addition, the air guide turntable frame consists of frames t1, t2, and t3; the intersections of concentric circle c1 and the frame are points a, b, and c. Detection logic: Using image processing technology, the intersections of the air guide turntable frame and the concentric circles are identified. Calculate the straight-line distances between points a and b, and between points b and c. The straight-line distance between points a and b is represented by line segment ab, which is the distance between one adjacent intersection point. The straight-line distance between points b and c is represented by line segment bc, which is the distance between another adjacent intersection point. When the distance ab between points a and b is equal to the straight-line distance bc between points b and c, it indicates that the distribution of the air guide turntable frame is uniform and the air guide turntable is subjected to uniform force. Conversely, it indicates that the distribution of the air guide turntable frame is uneven and the air guide turntable injection molding is unqualified, which may lead to potential quality problems. This is an example using the distance between two adjacent intersection points. To improve inspection efficiency, only the distance between two adjacent intersection points can be sampled. Of course, to avoid missing defects, it is possible to check whether the distances of all adjacent intersection points corresponding to a set of intersection points are equal. Of course, the same method is used to check whether the distribution of the air guide turntable frame is uniform for intersection points corresponding to other concentric circles.
[0048] In an optional implementation, to detect defects, step S204 further includes:
[0049] Step S2044, the second calculation step, obtain the pixel value of each of the above-mentioned intersection points in the above-mentioned target intersection point set, obtain multiple pixel values, calculate the variance of all the above-mentioned pixel values, and obtain the variance corresponding to the above-mentioned target intersection point set;
[0050] Step S2045: If the variance is greater than or equal to the variance threshold, it is determined that the frame thickness of the air guide turntable to be tested is inconsistent.
[0051] Step S2046: If the variance is less than the variance threshold, repeat the second calculation step at least once until there is a set of intersections whose variance is greater than or equal to the variance threshold, and determine that the frame thickness of the air guide turntable to be tested is inconsistent, or until the variance of all the sets of intersections is less than the variance threshold, and determine that the frame thickness of the air guide turntable to be tested is consistent.
[0052] In the above implementation, image processing technology is used to extract the pixel values at all intersection points of the concentric circles and the air guide turntable frame. When the thickness of the air guide turntable frame varies, the extracted pixel values at the intersection points (sampling points) differ significantly. This is because a thicker air guide turntable frame is more prone to reflection during lighting and photography, resulting in larger pixel values; conversely, a thinner frame results in smaller pixel values. Since the air guide turntable frame has a certain width, its intersection with the concentric circles is a small arc. The thickness of the frame can also be determined by the size of the pixel area at the intersection points; a larger pixel area indicates a thicker intersection point, i.e., a thicker frame, and vice versa. Detection logic: Based on the principle that a thicker frame is more prone to reflection during lighting and photography, resulting in larger pixel values, such as... Figure 4 As shown, the following uses the pixel values at intersection points as an example to determine the consistency of the thickness of the air guide plate frame. If the pixel value of a single intersection point cannot represent the entire intersecting arc, assume that the pixel values of each point on the intersecting arc where intersection point a is located are Pa1, Pa2, ..., PaN; the pixel values of each point on the intersecting arc where intersection point b is located are Pb1, Pb2, ..., PbN; and the pixel values of each point on the intersecting arc where intersection point c is located are Pc1, Pc2, ..., PcN; calculate the average pixel value of all pixel values. and variance When the variance When the value is greater than the variance threshold ε, it indicates that the pixel value at the intersection point deviates more from the average value. This indicates that the thickness of the guide vane frame at each intersection point is inconsistent, suggesting a defect in the guide vane. When the variance at the intersection point... When the variance is less than the variance threshold ε, it indicates that the thickness of the air guide turntable frame is basically the same, and the overall frame is uniform, meeting the injection molding process requirements. This is illustrated using three intersection points. To improve inspection efficiency, only three intersection points can be sampled. Of course, to avoid missing defects, the variance of the pixel values of all intersection points corresponding to a set of intersection points can be checked to see if it is less than the aforementioned variance threshold. Similarly, the same method can be used to check whether the thickness of the air guide turntable frame is consistent for intersection point sets corresponding to other concentric circles.
[0053] To identify defective frames, in one optional implementation, after determining that the frame thickness of the air guide vane to be inspected is inconsistent, the method further includes:
[0054] Step S301: Calculate the average value of all the above-mentioned pixel values corresponding to the above-mentioned target intersection point set to obtain the average pixel value corresponding to the above-mentioned target intersection point set.
[0055] Step S302: If the absolute value of the difference between the pixel value of any of the above intersection points in the above target intersection point set and the average pixel value is greater than the pixel threshold, it is determined whether the skeleton corresponding to the above intersection point is too thick or too thin.
[0056] In the above embodiments, if the thickness of the air guide turntable frame is inconsistent, it is necessary to determine which intersection point has a thinner or thicker frame. This can be done by taking the pixel value at the intersection point, using the same method as for a, b, and c, and comparing it with the average value. Calculate variance When a certain threshold is exceeded, it indicates that the thickness of the skeleton at that intersection point is inconsistent with the thickness of the skeletons at other intersection points.
[0057] In an optional implementation, to detect defects, step S204 further includes:
[0058] Step S2047, Establishment Step: Establish tangents of the skeleton at each of the above intersection points in the target intersection point set to obtain multiple tangents; establish radial rays passing through each of the above intersection points in the target intersection point set to obtain multiple rays; the tangents correspond one-to-one with the above intersection points; the rays correspond one-to-one with the above intersection points; the radial rays are rays originating from the center of the wind guide turntable to be detected.
[0059] Step S2048, the third calculation step, calculate the angle between the tangent and the ray corresponding to each of the above intersection points to obtain the offset angle of each of the above intersection points in the target intersection point set.
[0060] Step S2049: If any two of the above offset angles are not equal, determine that the frame angles of the above-mentioned air guide turntable to be tested are different.
[0061] Step S20410: If all the above-mentioned offset angles are equal, repeat the above-mentioned establishment step and the above-mentioned third calculation step at least once, until there are two above-mentioned offset angles that are not equal, and determine that the skeleton angle of the above-mentioned air guide turntable to be tested is different, or until there are no two above-mentioned offset angles that are not equal in all the above-mentioned intersection sets, and determine that the skeleton angle of the above-mentioned air guide turntable to be tested is the same.
[0062] In the above embodiment, the center of the circle is used as the center point of the air guide plate. Rays are drawn from the center o towards the intersection of the concentric circles and the frame: ray L1, ray L2, ray L3; tangents are drawn along the intersection of the concentric circles and the frame: tangent Q1, tangent Q2, tangent Q3; the angle between ray L1 and tangent Q1 is θ, which is one offset angle; the angle between ray L2 and tangent Q2 is β, which is another offset angle; and the angle between ray L3 and tangent Q3 is γ, which is yet another offset angle. The reason for drawing a straight line along the center o is that the center is the equilibrium point, and the intersection points taken on the concentric circles have the same reference basis relative to the center. Detection logic: Determine whether the angles between the tangent and the ray at the intersection of concentric circles are equal. If they are equal, it indicates that the angles of the air guide turntable frame are the same; otherwise, the angles of the air guide turntable frame are different, and the air guide turntable injection molding is unqualified. This is an example using three offset angles. To improve detection efficiency, only three offset angles can be sampled. Of course, to avoid missing defects, it is possible to check whether all the offset angles corresponding to a set of intersections are equal. Of course, the same method is used to check whether the angles of the air guide turntable frame are the same for the intersection sets corresponding to other concentric circles.
[0063] To avoid missing defects, in one optional implementation, step S202 includes:
[0064] Step S2021: Set a first number of first radii, a second number of second radii, and a third number of third radii. The first radii are all less than 1 / 3 of the radius of the air guide turntable to be tested. The second radii are all greater than 1 / 3 of the radius of the air guide turntable to be tested and less than 2 / 3 of the radius of the air guide turntable to be tested. The third number is greater than the second number, and the second number is greater than the first number.
[0065] Step S2022: Using the center of the air guide turntable to be tested as the center, and using the first radius, the second radius and the third radius as the radii, a plurality of concentric circles are established.
[0066] In the above embodiments, the detection of various indicators such as the distribution detection of the air guide turntable frame, the thickness detection of the air guide turntable frame, and the angle detection of the air guide turntable frame depends on the sampling of the frame. The sampling principle is that, since the air guide turntable itself is a circular structure, with the center of the circle as a reference, the intersection of the selected concentric circle and the air guide turntable frame has the same detection degree. The sampling logic for concentric circles is as follows: the number of circles taken near the arc boundary of the air guide plate is greater than the number taken near the center. This is because the center is the balance point of the air guide plate. According to the principles of angular velocity and balance in physics, defects near the arc end of the air guide plate have a more significant impact on the balance of the plate. Therefore, more samples should be taken near the circumference arc side to ensure more accurate test results. Based on the characteristics of the fan air guide plate distribution, the specific sampling method can be segmented sampling. At a distance of 1 / 3 of the radius from the center, 10 concentric circles are sampled at equal intervals. At the middle 1 / 3 to 2 / 3 of the radius, 20 concentric circles are sampled at equal intervals. At the outermost 1 / 3 of the radius, 30 concentric circles are sampled at equal intervals. The number of samples is not limited, and the specific proportions of the positions can be determined according to actual conditions.
[0067] To enable those skilled in the art to better understand the technical solution of this application, the implementation process of the method for detecting defects in the air guide turntable of this application will be described in detail below with reference to specific embodiments.
[0068] This embodiment relates to a specific method for detecting defects in a wind-guiding turntable, such as... Figure 5 As shown, it includes the following steps:
[0069] Step S1: Take a picture of the finished injection molded air guide turntable. The air guide turntable is sent into the camera taking box by the conveyor belt. The device inside the box automatically adjusts the air guide turntable to a suitable position and fixes it. Then, the camera fixed on the top of the taking box is used to take a picture of the protective cover with light to obtain a clear top view image.
[0070] Step S2: Quality inspection of the air guide turntable. Based on the images captured in S1, various tests are performed on the air guide turntable frame, including the uniformity of the frame structure distribution, the consistency of the frame thickness, and the consistency of the frame bending angle. The testing of each indicator depends on the sampling of the frame. The sampling principle is that, since the air guide turntable itself is a circular structure, the intersection of the selected concentric circles with the air guide turntable frame has the same degree of testing. The sampling logic for concentric circles is as follows: the number of circles taken near the arc boundary of the air guide plate is greater than the number taken near the center. This is because the center is the balance point of the air guide plate. According to the principles of angular velocity and balance in physics, defects near the arc end of the air guide plate have a more significant impact on the balance of the plate. Therefore, more samples should be taken near the circumference arc side to ensure more accurate test results. Based on the characteristics of the fan air guide plate distribution, the specific sampling method can be segmented sampling. At a distance of 1 / 3 of the radius from the center, 10 concentric circles are sampled at equal intervals. At the middle 1 / 3 to 2 / 3 of the radius, 20 circles are sampled at equal intervals. At the outermost 1 / 3 of the radius, 30 circles are sampled at equal intervals. The number of samples taken here is not limited; this is just an example. The specific proportions of the positions can be determined according to the actual situation.
[0071] Step S21: Distribution detection of the air guide vane frame. Based on the images captured in step S1, the uniformity of the air guide vane frame distribution is detected. Since the air guide vane itself is a circular structure, the intersection points of the selected concentric circles with the air guide vane frame have equal detection and comparison value, using the center of the circle as a reference. Figure 4 As shown, concentric circles c1 are selected with o as the center. Furthermore, the air guide turntable frame consists of frames t1, t2, and t3; the intersections of concentric circle c1 and the frames are points a, b, and c.
[0072] Detection Logic: Using image processing technology, the intersection points of the air guide turntable frame and the concentric circles are identified. The straight-line distances between points a and b, and between points b and c are calculated. The straight-line distance between points a and b is represented by line segment ab, and the straight-line distance between points b and c is represented by line segment bc. When the distance ab between points a and b is equal to the straight-line distance bc between points b and c, it indicates that the air guide turntable frame is evenly distributed and the air guide turntable is subjected to uniform force. Conversely, if the distance ab is not equal to the straight-line distance bc between points b and c, it indicates that the air guide turntable frame is unevenly distributed and the air guide turntable is not properly molded, which may lead to potential quality problems.
[0073] Step S22 involves detecting the thickness of the air guide disc frame. The consistency of the air guide disc frame's thickness is checked. Based on the parameters in step S21, image processing techniques are used to extract the pixel values at all intersection points of the concentric circles and the air guide disc frame. When the thickness of the air guide disc frame varies, the extracted pixel values at the intersection points (sampling points) differ significantly. This is because a thicker air guide disc frame is more prone to reflection during lighting and photography, resulting in larger pixel values; conversely, a thinner frame has smaller pixel values. Since the air guide disc frame has a certain width, its intersection with the concentric circles forms a small arc. The thickness of the frame can also be determined by the size of the pixel area at the intersection points; a larger pixel area indicates a thicker frame at the intersection point, and vice versa.
[0074] Detection logic: Based on the principle that the thicker the frame, the more easily it reflects light during photography, resulting in a higher pixel value, such as... Figure 4 As shown, the following uses the pixel values at the intersection points as an example to determine the consistency of the thickness of the air guide plate frame. Assume the pixel values of each point on the intersecting arc at intersection point a are Pa1, Pa2, ..., PaN; the pixel values of each point on the intersecting arc at intersection point b are Pb1, Pb2, ..., PbN; and the pixel values of each point on the intersecting arc at intersection point c are Pc1, Pc2, ..., PcN. The average pixel value at intersection points a, b, and c is then calculated. and variance When the variance When the value is greater than a certain threshold ε, it indicates that the pixel value at the intersection point deviates more from the average value. This indicates that the thickness of the air guide turntable frame at each intersection point is not completely consistent, indicating a defect in the air guide turntable. In this case, it is necessary to determine which intersection point has a frame that is too thin or too thick. The pixel value at the intersection point can be taken, using the same method as for a, b, and c above, and compared with the average value. Calculate variance When the value exceeds a certain threshold, it indicates that the thickness of the skeleton at that intersection point is inconsistent with the thickness of the skeletons at other intersection points. The variance at the intersection point... When the value is less than a certain threshold ε, it indicates that the thickness of the air guide turntable frame is basically the same, the overall air guide turntable frame is uniform, and it meets the requirements of the injection molding process.
[0075] Step S23: Angle detection of the air guide vane frame, such as... Figure 4As shown, the consistency of the bending angle of the air guide plate frame is checked. According to the relevant parameters in step S21, the center of the circle is taken as the center point of the air guide plate. Rays are drawn from the center of the circle o to the intersection of the concentric circle and the frame: ray L1, ray L2, ray L3; tangents are drawn from the intersection of the concentric circle and the frame: tangent Q1, tangent Q2, tangent Q3; the angle between ray L1 and tangent Q1 is θ, the angle between ray L2 and tangent Q2 is β, and the angle between ray L3 and tangent Q3 is γ. The reason for drawing a straight line along the center of the circle o is that the center of the circle is the equilibrium point, and the intersection points taken on the concentric circles have the same reference basis relative to the center of the circle.
[0076] Detection logic: Determine whether the angles between the tangent and the ray at the intersection of the concentric circles are equal. If they are equal, it indicates that the angles of the air guide turntable frame are the same; otherwise, the angles of the air guide turntable frame are different, and the air guide turntable injection molding is unqualified.
[0077] Step S3 completes the performance test of the fan guide plate. Based on the various test indicators in step S2, if all indicators meet the requirements, it means that the fan manufacturing conforms to the process specifications. Otherwise, process improvement is required to achieve the performance test of the fan guide plate.
[0078] It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions, and although a logical order is shown in the flowchart, in some cases the steps shown or described may be executed in a different order than that shown here.
[0079] This application also provides a device for detecting defects in a wind guide vane. It should be noted that this device can be used to execute the method for detecting defects in a wind guide vane provided in this application. This device is used to implement the above embodiments and preferred embodiments; details already described will not be repeated. As used below, the term "module" can refer to a combination of software and / or hardware that performs a predetermined function. Although the device described in the following embodiments is preferably implemented in software, hardware implementation, or a combination of software and hardware, is also possible and contemplated.
[0080] The following describes the device for detecting defects in the air guide vane provided in the embodiments of this application.
[0081] Figure 6 This is a structural block diagram of a device for detecting defects in a wind-guiding turntable according to an embodiment of this application. Figure 6 As shown, the device includes:
[0082] The first acquisition unit 10 is used to acquire an image of the air guide turntable to be detected, thereby obtaining a target image;
[0083] Establishment unit 20 is used to establish multiple concentric circles on the target image, wherein the center of the concentric circles is the same as the center of the air guide turntable to be detected, and the radius of the concentric circles is smaller than the radius of the air guide turntable to be detected.
[0084] The second acquisition unit 30 is used to acquire the intersection points of each of the above concentric circles with the skeleton of the air guide turntable to be detected, and to obtain multiple intersection point sets. The intersection point sets correspond one-to-one with the above concentric circles. The intersection point sets include the intersection points of one of the above concentric circles with all the above skeletons.
[0085] The first determining unit 40 is used to determine that the air guide turntable has a defect if any one of the following conditions is not met: the distance between all adjacent intersections in the target intersection set is equal, the variance of the pixel values of each intersection in the target intersection set is less than a variance threshold, or the offset angle of each intersection in the target intersection set is equal. The target intersection set is any set of intersections, the distance between adjacent intersections is the distance between two adjacent intersections, and the offset angle is the angle between the tangent of the skeleton at the intersection and the radial direction of the intersection.
[0086] In the aforementioned device for detecting defects in the air guide turntable, multiple concentric circles are established in the image of the air guide turntable to be detected, and the intersection points of the concentric circles and the skeleton of the air guide turntable to be detected are obtained to form an intersection point set. The concentric circles and the intersection point set correspond one-to-one. The uniformity of the skeleton distribution is measured by the distance between adjacent intersection points. If the distance between all adjacent intersection points in any intersection point set is equal, the skeleton distribution is uniform; otherwise, the air guide turntable has a defect. The uniformity of the skeleton thickness is measured by the pixel values of the intersection points. If the variance of the pixel values of all intersection points in any intersection point set is less than the variance threshold, the skeleton thickness is uniform; otherwise, the air guide turntable has a defect. The angular deviation of the skeleton is measured by the offset angle of the intersection points. If the offset angles of all the above-mentioned intersection points in any intersection point set are equal, the angular deviation of the skeleton is the same; otherwise, the air guide turntable has a defect. This completes the defect detection without the need for manual inspection of the injection molding quality of the air guide turntable, solving the problem of the inability to automatically inspect the injection molding quality of the air guide turntable in the prior art.
[0087] It should be noted that the air guide turntable to be tested is fed into the camera imaging box via a conveyor belt. The device inside the box automatically adjusts the air guide turntable to the appropriate position and fixes it in place. Then, a camera fixed to the top of the imaging box illuminates the protective cover and takes a picture to obtain a clear top-view image, thus obtaining the target image. Figure 3 As shown.
[0088] To ensure the accuracy of the detection, in one optional implementation, the second acquisition unit includes:
[0089] The first acquisition module is used to perform the acquisition step. When the part where each of the above concentric circles intersects with each of the above skeletons is an arc, the module acquires the arc where the target concentric circle intersects with each of the above skeletons, and obtains multiple intersecting arcs. The target concentric circle is any one of the above concentric circles.
[0090] The first determining module is used to perform the determining step, which determines the midpoint of each of the above intersecting arcs as the intersection point of the above set of intersection points corresponding to the above concentric circles of the target, thereby obtaining the above set of intersection points corresponding to the above concentric circles of the target.
[0091] The first repeating module is used to execute the above acquisition step and the above determination step at least once in sequence until all the above intersection point sets are obtained.
[0092] In the above implementation, since the wind guide turntable frame has a certain width, its intersection with the concentric circles is a small arc. The midpoint of the arc is then determined as the intersection point. This is done for the intersection points of each frame, resulting in a set of intersection points. This process is repeated to obtain the intersection point sets corresponding to all concentric circles, thus avoiding errors caused by the selection of intersection points from affecting the detection results.
[0093] In an optional implementation for detecting defects, the first determining unit includes:
[0094] The first calculation module is used to perform the first calculation step, calculate the distance between all two adjacent intersection points in the above target intersection point set, and obtain multiple adjacent intersection point distances;
[0095] The second determining module is used to determine that the skeleton distribution of the air guide turntable to be tested is uneven when the distance between any two of the above adjacent intersection points is not equal.
[0096] The second repeating module is used to repeat the first calculation step at least once when all the above-mentioned adjacent intersection points are equal in distance, until there are two above-mentioned adjacent intersection points with unequal distances, to determine that the skeleton distribution of the above-mentioned air guide turntable to be tested is uneven, or until there are no two above-mentioned adjacent intersection points with unequal distances in all the above-mentioned intersection point sets, to determine that the skeleton distribution of the above-mentioned air guide turntable to be tested is uniform.
[0097] In the above embodiments, since the air guide vane itself is a circular structure, the intersection of the selected concentric circles with the air guide vane frame, using the center of the circle as a reference, has the same degree of detection and comparison. For example... Figure 4As shown, concentric circles c1 are selected with o as the center. In addition, the air guide turntable frame consists of frames t1, t2, and t3; the intersections of concentric circle c1 and the frame are points a, b, and c. Detection logic: Using image processing technology, the intersections of the air guide turntable frame and the concentric circles are identified. Calculate the straight-line distances between points a and b, and between points b and c. The straight-line distance between points a and b is represented by line segment ab, which is the distance between one adjacent intersection point. The straight-line distance between points b and c is represented by line segment bc, which is the distance between another adjacent intersection point. When the distance ab between points a and b is equal to the straight-line distance bc between points b and c, it indicates that the distribution of the air guide turntable frame is uniform and the air guide turntable is subjected to uniform force. Conversely, it indicates that the distribution of the air guide turntable frame is uneven and the air guide turntable injection molding is unqualified, which may lead to potential quality problems. This is an example using the distance between two adjacent intersection points. To improve inspection efficiency, only the distance between two adjacent intersection points can be sampled. Of course, to avoid missing defects, it is possible to check whether the distances of all adjacent intersection points corresponding to a set of intersection points are equal. Of course, the same method is used to check whether the distribution of the air guide turntable frame is uniform for intersection points corresponding to other concentric circles.
[0098] In an optional implementation for detecting defects, the first determining unit further includes:
[0099] The second calculation module is used to perform the second calculation step, obtain the pixel value of each of the above-mentioned intersection points in the above-mentioned target intersection point set, obtain multiple pixel values, calculate the variance of all the above-mentioned pixel values, and obtain the variance corresponding to the above-mentioned target intersection point set.
[0100] The third determining module is used to determine that the frame thickness of the air guide turntable to be tested is inconsistent when the variance is greater than or equal to the variance threshold.
[0101] The third repetition module is used to repeat the second calculation step at least once when the variance is less than the variance threshold, until there is a set of intersections whose variance is greater than or equal to the variance threshold, to determine that the frame thickness of the air guide turntable to be tested is inconsistent, or until the variance of all the sets of intersections is less than the variance threshold, to determine that the frame thickness of the air guide turntable to be tested is consistent.
[0102] In the above implementation, image processing technology is used to extract the pixel values at all intersection points of the concentric circles and the air guide turntable frame. When the thickness of the air guide turntable frame varies, the extracted pixel values at the intersection points (sampling points) differ significantly. This is because a thicker air guide turntable frame is more prone to reflection during lighting and photography, resulting in larger pixel values; conversely, a thinner frame results in smaller pixel values. Since the air guide turntable frame has a certain width, its intersection with the concentric circles is a small arc. The thickness of the frame can also be determined by the size of the pixel area at the intersection points; a larger pixel area indicates a thicker intersection point, i.e., a thicker frame, and vice versa. Detection logic: Based on the principle that a thicker frame is more prone to reflection during lighting and photography, resulting in larger pixel values, such as... Figure 4 As shown, the following uses the pixel values at intersection points as an example to determine the consistency of the thickness of the air guide plate frame. If the pixel value of a single intersection point cannot represent the entire intersecting arc, assume that the pixel values of each point on the intersecting arc where intersection point a is located are Pa1, Pa2, ..., PaN; the pixel values of each point on the intersecting arc where intersection point b is located are Pb1, Pb2, ..., PbN; and the pixel values of each point on the intersecting arc where intersection point c is located are Pc1, Pc2, ..., PcN; calculate the average pixel value of all pixel values. and variance When the variance When the value is greater than the variance threshold ε, it indicates that the pixel value at the intersection point deviates more from the average value. This indicates that the thickness of the guide vane frame at each intersection point is inconsistent, suggesting a defect in the guide vane. When the variance at the intersection point... When the variance is less than the variance threshold ε, it indicates that the thickness of the air guide turntable frame is basically the same, and the overall frame is uniform, meeting the injection molding process requirements. This is illustrated using three intersection points. To improve inspection efficiency, only three intersection points can be sampled. Of course, to avoid missing defects, the variance of the pixel values of all intersection points corresponding to a set of intersection points can be checked to see if it is less than the aforementioned variance threshold. Similarly, the same method can be used to check whether the thickness of the air guide turntable frame is consistent for intersection point sets corresponding to other concentric circles.
[0103] In an optional embodiment, to determine the defective skeleton, the above-mentioned device further includes:
[0104] The calculation unit is used to calculate the average value of all the above-mentioned pixel values corresponding to the above-mentioned target intersection set after determining that the frame thickness of the above-mentioned wind guide turntable to be detected is inconsistent, so as to obtain the average pixel value corresponding to the above-mentioned target intersection set.
[0105] The second determining unit is used to determine whether the skeleton corresponding to the intersection point is too thick or too thin when the absolute value of the difference between the pixel value of any intersection point in the target intersection point set and the average pixel value is greater than a pixel threshold.
[0106] In the above embodiments, if the thickness of the air guide turntable frame is inconsistent, it is necessary to determine which intersection point has a thinner or thicker frame. This can be done by taking the pixel value at the intersection point, using the same method as for a, b, and c, and comparing it with the average value. Calculate variance When a certain threshold is exceeded, it indicates that the thickness of the skeleton at that intersection point is inconsistent with the thickness of the skeletons at other intersection points.
[0107] In an optional implementation for detecting defects, the first determining unit further includes:
[0108] The first module is used to establish the steps, which are to establish the tangents of the skeleton at each of the intersections in the target intersection set, to obtain multiple tangents, and to establish the radial rays passing through each of the intersections in the target intersection set, to obtain multiple rays. The tangents correspond one-to-one with the intersections, and the rays correspond one-to-one with the intersections. The radial rays are rays that start from the center of the wind guide turntable to be detected.
[0109] The third calculation module is used to perform the third calculation step, calculate the angle between the tangent and the ray corresponding to each of the above intersection points, and obtain the offset angle of each of the above intersection points of the target intersection point set.
[0110] The fourth determining module is used to determine that the frame angle of the air guide turntable to be tested is different when any two of the above offset angles are not equal.
[0111] The fourth repeating module is used to repeat the above-mentioned establishment step and the above-mentioned third calculation step at least once when all the above-mentioned offset angles are equal, until there are two above-mentioned offset angles that are not equal, and to determine that the skeleton angle of the above-mentioned air guide turntable to be tested is different, or until there are no two above-mentioned offset angles that are not equal in all the above-mentioned intersection sets, and to determine that the skeleton angle of the above-mentioned air guide turntable to be tested is the same.
[0112] In the above embodiment, the center of the circle is used as the center point of the air guide plate. Rays are drawn from the center o towards the intersection of the concentric circles and the frame: ray L1, ray L2, ray L3; tangents are drawn along the intersection of the concentric circles and the frame: tangent Q1, tangent Q2, tangent Q3; the angle between ray L1 and tangent Q1 is θ, which is one offset angle; the angle between ray L2 and tangent Q2 is β, which is another offset angle; and the angle between ray L3 and tangent Q3 is γ, which is yet another offset angle. The reason for drawing a straight line along the center o is that the center is the equilibrium point, and the intersection points taken on the concentric circles have the same reference basis relative to the center. Detection logic: Determine whether the angles between the tangent and the ray at the intersection of concentric circles are equal. If they are equal, it indicates that the angles of the air guide turntable frame are the same; otherwise, the angles of the air guide turntable frame are different, and the air guide turntable injection molding is unqualified. This is an example using three offset angles. To improve detection efficiency, only three offset angles can be sampled. Of course, to avoid missing defects, it is possible to check whether all the offset angles corresponding to a set of intersections are equal. Of course, the same method is used to check whether the angles of the air guide turntable frame are the same for the intersection sets corresponding to other concentric circles.
[0113] To avoid missing defects, in one optional implementation, the aforementioned establishment unit includes:
[0114] The setting module is used to set a first number of first radii, a second number of second radii, and a third number of third radii. The first radii are all less than 1 / 3 of the radius of the air guide turntable to be tested. The second radii are all greater than 1 / 3 of the radius of the air guide turntable to be tested and less than 2 / 3 of the radius of the air guide turntable to be tested. The third number is greater than the second number, and the second number is greater than the first number.
[0115] The second establishment module is used to establish multiple concentric circles with the center of the air guide turntable to be detected as the center and with the first radius, the second radius and the third radius as the radii respectively.
[0116] In the above embodiments, the detection of various indicators such as the distribution detection of the air guide turntable frame, the thickness detection of the air guide turntable frame, and the angle detection of the air guide turntable frame depends on the sampling of the frame. The sampling principle is that, since the air guide turntable itself is a circular structure, with the center of the circle as a reference, the intersection of the selected concentric circle and the air guide turntable frame has the same detection degree. The sampling logic for concentric circles is as follows: the number of circles taken near the arc boundary of the air guide plate is greater than the number taken near the center. This is because the center is the balance point of the air guide plate. According to the principles of angular velocity and balance in physics, defects near the arc end of the air guide plate have a more significant impact on the balance of the plate. Therefore, more samples should be taken near the circumference arc side to ensure more accurate test results. Based on the characteristics of the fan air guide plate distribution, the specific sampling method can be segmented sampling. At a distance of 1 / 3 of the radius from the center, 10 concentric circles are sampled at equal intervals. At the middle 1 / 3 to 2 / 3 of the radius, 20 concentric circles are sampled at equal intervals. At the outermost 1 / 3 of the radius, 30 concentric circles are sampled at equal intervals. The number of samples is not limited, and the specific proportions of the positions can be determined according to actual conditions.
[0117] The aforementioned device for detecting defects in the air guide vane includes a processor and a memory. The first acquisition unit, the establishment unit, the second acquisition unit, and the first determination unit are all stored as program units in the memory. The processor executes these program units stored in the memory to achieve their respective functions. All of the above modules reside in the same processor; alternatively, the modules may be located in different processors in any combination.
[0118] The processor contains a kernel, which retrieves the corresponding program units from memory. One or more kernels can be configured, and adjusting kernel parameters can address the current limitations of automatically inspecting the injection molding quality of the air guide turntable.
[0119] The memory may include non-permanent memory in computer-readable media, such as 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.
[0120] This invention provides a computer-readable storage medium including a stored program, wherein, when the program is executed, it controls the device containing the computer-readable storage medium to perform the method for detecting defects in the air guide turntable.
[0121] Specifically, the detection methods for defects in the air guide vane include:
[0122] Step S201: Obtain an image of the air guide vane to be detected to obtain the target image;
[0123] Step S202: Establish multiple concentric circles on the target image. The center of the concentric circles is the same as the center of the air guide turntable to be detected, and the radius of the concentric circles is smaller than the radius of the air guide turntable to be detected.
[0124] Step S203: Obtain the intersection points of each of the above concentric circles with the skeleton of the air guide turntable to be tested, and obtain multiple intersection point sets. The intersection point sets correspond one-to-one with the above concentric circles. The intersection point sets include the intersection points of one of the above concentric circles with all the above skeletons.
[0125] Step S204: If any one of the following conditions is not met: all adjacent intersections in the target intersection set are equidistant, the variance of the pixel values of each intersection in the target intersection set is less than the variance threshold, or the offset angles of each intersection in the target intersection set are equidistant, then the air guide turntable is determined to have a defect. The target intersection set is any set of intersections, the adjacent intersection distance is the distance between two adjacent intersections, and the offset angle is the angle between the tangent of the skeleton at the intersection and the radial direction of the intersection.
[0126] This invention provides a processor for running a program, wherein the program executes the method for detecting defects in the air guide turntable.
[0127] Specifically, the detection methods for defects in the air guide vane include:
[0128] Step S201: Obtain an image of the air guide vane to be detected to obtain the target image;
[0129] Step S202: Establish multiple concentric circles on the target image. The center of the concentric circles is the same as the center of the air guide turntable to be detected, and the radius of the concentric circles is smaller than the radius of the air guide turntable to be detected.
[0130] Step S203: Obtain the intersection points of each of the above concentric circles with the skeleton of the air guide turntable to be tested, and obtain multiple intersection point sets. The intersection point sets correspond one-to-one with the above concentric circles. The intersection point sets include the intersection points of one of the above concentric circles with all the above skeletons.
[0131] Step S204: If any one of the following conditions is not met: all adjacent intersections in the target intersection set are equidistant, the variance of the pixel values of each intersection in the target intersection set is less than the variance threshold, or the offset angles of each intersection in the target intersection set are equidistant, then the air guide turntable is determined to have a defect. The target intersection set is any set of intersections, the adjacent intersection distance is the distance between two adjacent intersections, and the offset angle is the angle between the tangent of the skeleton at the intersection and the radial direction of the intersection.
[0132] This invention provides a defect detection system, which includes a processor, a memory, and a program stored in the memory and executable on the processor. When the processor executes the program, it performs at least the following steps:
[0133] Step S201: Obtain an image of the air guide vane to be detected to obtain the target image;
[0134] Step S202: Establish multiple concentric circles on the target image. The center of the concentric circles is the same as the center of the air guide turntable to be detected, and the radius of the concentric circles is smaller than the radius of the air guide turntable to be detected.
[0135] Step S203: Obtain the intersection points of each of the above concentric circles with the skeleton of the air guide turntable to be tested, and obtain multiple intersection point sets. The intersection point sets correspond one-to-one with the above concentric circles. The intersection point sets include the intersection points of one of the above concentric circles with all the above skeletons.
[0136] Step S204: If any one of the following conditions is not met: all adjacent intersections in the target intersection set are equidistant, the variance of the pixel values of each intersection in the target intersection set is less than the variance threshold, or the offset angles of each intersection in the target intersection set are equidistant, then the air guide turntable is determined to have a defect. The target intersection set is any set of intersections, the adjacent intersection distance is the distance between two adjacent intersections, and the offset angle is the angle between the tangent of the skeleton at the intersection and the radial direction of the intersection.
[0137] This application also provides a computer program product, which, when executed on a data processing device, is suitable for executing an initialization program having at least the following method steps:
[0138] Step S201: Obtain an image of the air guide vane to be detected to obtain the target image;
[0139] Step S202: Establish multiple concentric circles on the target image. The center of the concentric circles is the same as the center of the air guide turntable to be detected, and the radius of the concentric circles is smaller than the radius of the air guide turntable to be detected.
[0140] Step S203: Obtain the intersection points of each of the above concentric circles with the skeleton of the air guide turntable to be tested, and obtain multiple intersection point sets. The intersection point sets correspond one-to-one with the above concentric circles. The intersection point sets include the intersection points of one of the above concentric circles with all the above skeletons.
[0141] Step S204: If any one of the following conditions is not met: all adjacent intersections in the target intersection set are equidistant, the variance of the pixel values of each intersection in the target intersection set is less than the variance threshold, or the offset angles of each intersection in the target intersection set are equidistant, then the air guide turntable is determined to have a defect. The target intersection set is any set of intersections, the adjacent intersection distance is the distance between two adjacent intersections, and the offset angle is the angle between the tangent of the skeleton at the intersection and the radial direction of the intersection.
[0142] It is obvious to those skilled in the art that the modules or steps of the present invention described above can be implemented using general-purpose computing devices. They can be centralized on a single computing device or distributed across a network of multiple computing devices. They can be implemented using computer-executable program code, and thus can be stored in a storage device for execution by a computing device. In some cases, the steps shown or described can be performed in a different order than those described herein, or they can be fabricated as separate integrated circuit modules, or multiple modules or steps can be fabricated as a single integrated circuit module. Thus, the present invention is not limited to any particular combination of hardware and software.
[0143] Those skilled in the art will understand that embodiments of this application can be provided as methods, systems, or computer program products. Therefore, this application can take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application can take the form of a computer program product embodied on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code.
[0144] This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It will be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, generate instructions for implementing the flowchart... Figure 1 One or more processes and / or boxes Figure 1 A device that provides the functions specified in one or more boxes.
[0145] These computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to function in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The function specified in one or more boxes.
[0146] These computer program instructions may also be loaded onto a computer or other programmable data processing equipment to cause a series of operational steps to be performed on the computer or other programmable equipment to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable equipment for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0147] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0148] Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.
[0149] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, 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 technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.
[0150] It should also be noted that the terms "comprises," "includes," or any other variations thereof are intended to encompass non-exclusive inclusion, such that a process, method, commodity, or apparatus that includes a series of elements includes not only those elements but also other elements not explicitly listed, or includes elements inherent to such process, method, commodity, or apparatus. In the absence of further limitations, an element defined by the phrase "comprises a ..." does not exclude the presence of other identical elements in the process, method, commodity, or apparatus that includes the element.
[0151] As can be seen from the above description, the embodiments of this application achieve the following technical effects:
[0152] 1) In the defect detection method of the air guide turntable of this application, multiple concentric circles are established in the image of the air guide turntable to be detected, and the intersection points of the concentric circles and the skeleton of the air guide turntable to be detected are obtained to obtain the intersection point set. The concentric circles and the intersection point set are in one-to-one correspondence. The uniformity of the skeleton distribution is measured by the distance between adjacent intersection points. If the distance between all adjacent intersection points in any intersection point set is equal, the skeleton distribution is uniform; otherwise, the air guide turntable has a defect. The uniformity of the skeleton thickness is measured by the pixel value of the intersection point. If the variance of the pixel value of each intersection point in any intersection point set is less than the variance threshold, the skeleton thickness is uniform; otherwise, the air guide turntable has a defect. The angular deviation of the skeleton is measured by the offset angle of the intersection point. If the offset angle of each of the above intersection points in any intersection point set is equal, the angular deviation of the skeleton is the same; otherwise, the air guide turntable has a defect. The defect detection can be completed without the need for manual inspection of the injection molding quality of the air guide turntable, which solves the problem that the injection molding quality of the air guide turntable cannot be automatically inspected in the prior art.
[0153] 2) In the defect detection device for the air guide turntable of this application, multiple concentric circles are established in the image of the air guide turntable to be detected, and the intersection points of the concentric circles and the skeleton of the air guide turntable to be detected are obtained to obtain the intersection point set. The concentric circles and the intersection point set are in one-to-one correspondence. The uniformity of the skeleton distribution is measured by the distance between adjacent intersection points. If the distance between all adjacent intersection points in any intersection point set is equal, the skeleton distribution is uniform; otherwise, the air guide turntable has a defect. The uniformity of the skeleton thickness is measured by the pixel value of the intersection point. If the variance of the pixel value of each intersection point in any intersection point set is less than the variance threshold, the skeleton thickness is uniform; otherwise, the air guide turntable has a defect. The angular deviation of the skeleton is measured by the offset angle of the intersection point. If the offset angle of each of the above intersection points in any intersection point set is equal, the angular deviation of the skeleton is the same; otherwise, the air guide turntable has a defect. The defect detection can be completed without the need for manual inspection of the injection molding quality of the air guide turntable, which solves the problem that the injection molding quality of the air guide turntable cannot be automatically inspected in the prior art.
[0154] The above description is merely a preferred embodiment of this application and is not intended to limit this application. Various modifications and variations can be made to this application by those skilled in the art. Any modifications, equivalent substitutions, improvements, etc., made within the spirit and principles of this application should be included within the protection scope of this application.
Claims
1. A method for detecting defects in a wind-guiding turntable, characterized in that, include: Acquire an image of the air guide vane to be inspected to obtain the target image; Multiple concentric circles are established on the target image, the center of the concentric circles is the same as the center of the air guide turntable to be detected, and the radius of the concentric circles is smaller than the radius of the air guide turntable to be detected. Obtain the intersection points of each of the concentric circles with the skeleton of the air guide turntable to be tested, and obtain multiple intersection point sets. Each intersection point set corresponds one-to-one with the concentric circle, and each intersection point set includes the intersection points of one of the concentric circles with all the skeletons. If any one of the following conditions is not met: all adjacent intersections in the target intersection set are equidistant, the variance of the pixel values of each intersection in the target intersection set is less than a variance threshold, or the offset angles of each intersection in the target intersection set are equidistant, then the air guide turntable is determined to have a defect. The target intersection set is any set of intersections, the distance between adjacent intersections is the distance between two adjacent intersections, and the offset angle is the angle between the tangent of the skeleton at the intersection and the radial direction of the intersection.
2. The method according to claim 1, characterized in that, Obtain the intersection points of each of the concentric circles with the frame of the air guide vane to be tested, resulting in multiple sets of intersection points, including: In the acquisition step, when the intersection of each of the concentric circles and each of the skeletons is an arc, the arcs intersecting the target concentric circle and each of the skeletons are acquired, resulting in multiple intersecting arcs, wherein the target concentric circle is any one of the concentric circles; The steps are as follows: the midpoint of each intersecting arc is determined as the intersection point of the intersection point set corresponding to the target concentric circle, and the intersection point set corresponding to the target concentric circle is obtained. Repeat the acquisition step and the determination step at least once in sequence until all the intersection point sets are obtained.
3. The method according to claim 1, characterized in that, If any one of the following conditions is not met: all adjacent intersection points in the target intersection point set are equidistant, the variance of the pixel values of each intersection point in the target intersection point set is less than a variance threshold, and the offset angles of each intersection point in the target intersection point set are equidistant, then the air guide turntable is determined to have a defect, including: The first calculation step is to calculate the distance between all adjacent intersection points in the target intersection point set to obtain multiple adjacent intersection point distances. If the distances between any two adjacent intersection points are not equal, it is determined that the skeleton distribution of the air guide turntable to be tested is uneven. If all the adjacent intersection points are equidistant, repeat the first calculation step at least once until there are two adjacent intersection points that are not equidistant, thus determining that the skeleton distribution of the air guide turntable to be tested is uneven, or until there are no two adjacent intersection points that are not equidistant in all the intersection point sets, thus determining that the skeleton distribution of the air guide turntable to be tested is uniform.
4. The method according to claim 1, characterized in that, If any one of the following conditions is not met: all adjacent intersection points in the target intersection point set are equidistant, the variance of the pixel values of each intersection point in the target intersection point set is less than a variance threshold, and the offset angles of each intersection point in the target intersection point set are equidistant, then the air guide turntable is determined to have a defect, including: The second calculation step is to obtain the pixel value of each intersection point in the target intersection point set, obtain multiple pixel values, calculate the variance of all the pixel values, and obtain the variance corresponding to the target intersection point set. If the variance is greater than or equal to the variance threshold, it is determined that the frame thickness of the air guide turntable to be tested is inconsistent. If the variance is less than the variance threshold, repeat the second calculation step at least once until there is a set of intersections whose variance is greater than or equal to the variance threshold, and determine that the frame thickness of the air guide turntable to be tested is inconsistent, or until the variance of all the sets of intersections is less than the variance threshold, and determine that the frame thickness of the air guide turntable to be tested is consistent.
5. The method according to claim 4, characterized in that, After determining that the frame thickness of the air guide vane to be tested is inconsistent, the method further includes: Calculate the average value of all the pixel values corresponding to the target intersection set to obtain the average pixel value corresponding to the target intersection set; If the absolute value of the difference between the pixel value of any intersection point in the target intersection point set and the average pixel value is greater than a pixel threshold, it is determined that the skeleton corresponding to the intersection point is either too thick or too thin.
6. The method according to claim 1, characterized in that, If any one of the following conditions is not met: all adjacent intersection points in the target intersection point set are equidistant, the variance of the pixel values of each intersection point in the target intersection point set is less than a variance threshold, and the offset angles of each intersection point in the target intersection point set are equidistant, then the air guide turntable is determined to have a defect, including: The steps are as follows: tangents to the skeleton at each intersection point in the target intersection point set are established to obtain multiple tangents; radial rays passing through each intersection point in the target intersection point set are established to obtain multiple rays; the tangents correspond one-to-one with the intersection points; the rays correspond one-to-one with the intersection points; and the radial rays are rays originating from the center of the wind guide turntable to be detected. The third calculation step is to calculate the angle between the tangent and the ray corresponding to each intersection point to obtain the offset angle of each intersection point in the target intersection point set. If any two of the offset angles are not equal, it is determined that the frame angle of the air guide turntable to be detected is different. If all the offset angles are equal, repeat the establishment step and the third calculation step at least once, until there are two offset angles that are not equal, and determine that the skeleton angle of the air guide turntable to be detected is different, or until there are no two offset angles that are not equal in all the intersection sets, and determine that the skeleton angle of the air guide turntable to be detected is the same.
7. The method according to any one of claims 1 to 6, characterized in that, Multiple concentric circles are created on the target image, including: A first radius, a second radius, and a third radius are set. The first radius is less than 1 / 3 of the radius of the air guide disc to be tested. The second radius is greater than 1 / 3 and less than 2 / 3 of the radius of the air guide disc to be tested. The third radius is greater than 2 / 3 and less than the radius of the air guide disc to be tested. The third number is greater than the second number, and the second number is greater than the first number. Multiple concentric circles are established with the center of the air guide turntable to be tested as the center, and with each of the first radius, each of the second radius and each of the third radius as the radius.
8. A device for detecting defects in a wind deflector, characterized in that, include: The first acquisition unit is used to acquire an image of the air guide vane to be detected, thereby obtaining the target image; A unit is established to establish multiple concentric circles on the target image, wherein the center of the concentric circles is the same as the center of the air guide turntable to be detected, and the radius of the concentric circles is smaller than the radius of the air guide turntable to be detected. The second acquisition unit is used to acquire the intersection points of each of the concentric circles and the skeleton of the air guide turntable to be detected, and to obtain multiple intersection point sets. The intersection point sets correspond one-to-one with the concentric circles, and the intersection point sets include the intersection points of one of the concentric circles and all the skeletons. The first determining unit is used to determine that the air guide turntable has a defect if any one of the following conditions is not met: the distance between all adjacent intersections in the target intersection set is equal, the variance of the pixel values of each intersection in the target intersection set is less than a variance threshold, and the offset angle of each intersection in the target intersection set is equal. The target intersection set is any set of intersections, the distance between adjacent intersections is the distance between two adjacent intersections, and the offset angle is the angle between the tangent of the skeleton at the intersection and the radial direction of the intersection.
9. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the method described in any one of claims 1 to 7.
10. A defect detection system, characterized in that, include: One or more processors, a memory, and one or more programs, wherein the one or more programs are stored in the memory and configured to be executed by the one or more processors, the one or more programs comprising methods for performing any one of claims 1 to 7.
Citation Information
Patent Citations
Temperature controller guide frame defect detection method and system
CN112991284A
Onboard fan blade defect detection method
CN114693684A