Damper detection method, device and apparatus

By acquiring the standard size information of the equipment to be tested and the detection size information of the damper image, and using image processing technology to compare the two to determine whether the damper model is correct, the problem of low efficiency of manual inspection is solved, and efficient and accurate damper model detection is achieved.

CN115523861BActive Publication Date: 2026-06-30GREE ELECTRIC APPLIANCE INC OF ZHUHAI +1

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
GREE ELECTRIC APPLIANCE INC OF ZHUHAI
Filing Date
2022-09-19
Publication Date
2026-06-30

AI Technical Summary

Technical Problem

The existing technology for manually checking whether the damper is installed correctly is inefficient, costly, and prone to fatigue, leading to missed detections.

Method used

By acquiring the standard size information of the device under test and the detection size information of the damper image, image processing technology is used to compare the two to determine whether the damper model is correct. This includes constructing a mask and detecting corner points to accurately outline the device and prevent misjudgment of recessed areas.

Benefits of technology

It enables efficient and accurate detection of damper models, reduces the cost of manual inspection, improves inspection accuracy and efficiency, and reduces false detections and missed detections.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN115523861B_ABST
    Figure CN115523861B_ABST
Patent Text Reader

Abstract

This application provides a damper testing method, apparatus, and device. The method includes: acquiring standard dimension information of the device to be tested, whereby the standard dimension information refers to the dimension information of the damper that matches the device to be tested; acquiring a damper image, which is obtained after the damper to be tested is installed on the device to be tested; extracting the test dimension information of the damper from the damper image, and comparing the standard dimension information and the test dimension information to obtain a comparison result; and determining whether the model of the damper installed on the device to be tested is correct based on the comparison result. This application solves the problem of low testing efficiency in the prior art of manually inspecting whether the damper is correctly installed.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of dampers, and more specifically, to a damper testing method, apparatus, and equipment. Background Technology

[0002] Dampers are installed in many pieces of equipment used in production and daily life. Some equipment has multiple dampers installed. The models of dampers installed in different locations may be different. In the actual assembly process, installation errors may occur. If there are defects in the installation of the damper, quality problems such as incompatible product parts, assembly errors, ineffective noise reduction, and reduced product lifespan may occur.

[0003] Currently, the inspection of whether the damper is installed correctly is done manually. However, manual inspection can no longer meet the increasingly stringent requirements for inspection accuracy. At the same time, manual inspection is costly, inefficient, and prone to fatigue-induced missed inspections during long working hours, which affects the inspection results. Summary of the Invention

[0004] The main objective of this application is to provide a damper testing method, apparatus, and equipment to solve the problem of low testing efficiency in the existing technology of manually testing whether the damper is correctly installed.

[0005] To achieve the above objectives, according to one aspect of this application, a damper testing method is provided. The method includes: acquiring standard dimension information of a device to be tested, wherein the standard dimension information refers to the dimension information of a damper that matches the device to be tested; acquiring standard dimension information of the device to be tested, wherein the standard dimension information refers to the dimension information of a damper that matches the device to be tested; extracting the test dimension information of the damper from a damper image, and comparing the standard dimension information and the test dimension information to obtain a comparison result; and determining whether the model of the damper installed on the device to be tested is correct based on the comparison result.

[0006] Optionally, the damper includes multiple components. Extracting the detection dimension information of the damper from the damper image and comparing it with the standard dimension information to obtain a comparison result, and determining whether the model of the damper installed on the device under test is correct based on the comparison result, includes: extracting the detection dimension information of multiple components of the damper from the damper image; comparing the detection dimension information and standard dimension information of the same component to obtain a comparison result; and determining that the model of the damper installed on the device under test is correct if the comparison result for at least some of the components is within a preset range.

[0007] Optionally, determining that the model of the damper installed on the device under test is correct when the comparison results corresponding to at least some of the components are within a preset range includes: determining that the model of the damper installed on the device under test is correct when the comparison results corresponding to the long handle and the fixed head are within a preset range.

[0008] Optionally, the damper includes multiple components, and the method further includes: constructing masks corresponding to multiple components in the damper image; extracting the contour of each mask, and determining whether there is a recessed region in the contour of each component based on the contour of each mask.

[0009] Optionally, constructing a mask corresponding to multiple components in the damper image includes: obtaining color information of each of the multiple components in the damper image; and constructing a mask corresponding to each component based on the color information of the component.

[0010] Optionally, determining whether a recessed region exists in the contour of each component based on the contour of each mask includes: performing corner detection on the contour of each mask to obtain corner points; obtaining the absolute value of the difference between the coordinate values ​​of each corner point and the coordinate values ​​of the contour boundary of the mask; if the absolute value of the difference is greater than or equal to a first preset difference, determining that the contour of the component corresponding to the mask has the recessed region; if the absolute value of the difference is less than the first preset difference, determining that the contour of the component corresponding to the mask does not have the recessed region.

[0011] Optionally, the damper includes a long handle and a fixed head. Determining whether the contour of each component has a recessed region based on the contour of each mask includes: performing corner detection on the contour of each mask to obtain corner points; obtaining the absolute value of the difference between the contour area of ​​the long handle and the contour area of ​​the fixed head; if the absolute value of the difference is greater than or equal to a second preset difference, determining that the contour of the component corresponding to the mask has the recessed region; if the absolute value of the difference is less than the second preset difference, determining that the contour of the component corresponding to the mask does not have the recessed region.

[0012] Optionally, the damper includes multiple components. Extracting the detection size information of the damper from the damper image includes: obtaining the minimum bounding polygon of the component's outline when there is no concave region in the component's outline; and determining the detection size information of the component based on the size of the minimum bounding polygon.

[0013] Optionally, the damper includes multiple components, and multiple masks corresponding to the components in the damper image are constructed. Corner points are detected on the contours of each mask to obtain corner points. The detection size information of the damper is extracted from the damper image, including: when there are concave areas in the contours of the components, the detection size information of the damper is determined based on the corner points and the contour boundaries of the mask.

[0014] Optionally, the method further includes: obtaining standard installation position information of the damper, wherein the standard installation position information refers to the position information of the damper when the damper is correctly installed on the device to be tested; and extracting the detection installation position information of each damper from the damper image.

[0015] Optionally, comparing the standard size information and the detection size information to obtain a comparison result includes: constructing a correspondence between the standard installation position information and the detection installation position information; and comparing the standard size information and the detection size information of the damper installed at the same position according to the correspondence to obtain the comparison result.

[0016] According to another aspect of this application, a damper testing device is provided. The device includes a first acquisition unit, a second acquisition unit, and a processing unit. The first acquisition unit is used to acquire a damper testing template of a device to be tested, the damper testing template including standard size information of the damper. The second acquisition unit is used to acquire a damper image, the damper image being acquired after the damper to be tested is installed on the device to be tested. The processing unit is used to extract the testing size information of the damper from the damper image, compare the standard size information and the testing size information to obtain a comparison result, and determine whether the model of the damper installed on the device to be tested is correct based on the comparison result.

[0017] According to another aspect of this application, an apparatus 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.

[0018] Applying the technical solution of this application, in the damper testing method of this application, qualified product information is imported according to the standards required for the product, and the size and color information of qualified dampers are recorded as template information. The size information of the damper matching the device under test is obtained by taking a picture of the device under test. Then, an image of the damper after it is installed on the device under test is obtained. The testing size information of the damper is extracted from the image. The standard size information and the testing size information are compared to obtain a comparison result. Based on the comparison result, it is determined whether the model of the damper installed on the device under test is correct. Compared with the prior art, this application first obtains the size information of the damper matching the device under test, then obtains an image of the damper after it is installed on the device under test, and finally extracts the testing size information of the damper from the image. The comparison result is then used to determine whether the model of the damper installed on the device under test is correct, thereby realizing the testing of the damper. Attached Figure Description

[0019] The accompanying drawings, which form part of this application, are used to provide a further understanding of this application. The illustrative embodiments and descriptions of this application are used to explain this application and do not constitute an undue limitation of this application. In the drawings:

[0020] Figure 1 A schematic flowchart of a damper testing method according to an embodiment of this application is shown;

[0021] Figure 2 A schematic diagram of a washing machine equipped with a damper is shown;

[0022] Figure 3 A schematic diagram of a damper detection method according to an embodiment of this application is shown;

[0023] Figure 4 A schematic diagram of the damper size inspection process is shown;

[0024] Figure 5 A schematic diagram of the damper profile detection results is shown;

[0025] Figure 6 A schematic diagram of a damper detection device according to an embodiment of this application is shown.

[0026] The above figures include the following reference numerals:

[0027] 1. Long handle; 2. Damper body; 3. Fixing head housing; 4. Fixing head; 5. Water outlet. Detailed Implementation

[0028] 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.

[0029] 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.

[0030] 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.

[0031] It should be understood that when an element (such as a layer, film, region, or substrate) is described as being "on" another element, the element may be directly on the other element, or there may be an intermediate element present. Furthermore, in the specification and claims, when an element is described as being "connected" to another element, the element may be "directly connected" to the other element, or "connected" to the other element via a third element.

[0032] As described in the background section, the existing methods for manually inspecting whether a damper is correctly installed are inefficient. To address this issue, embodiments of this application provide a damper inspection method, apparatus, and equipment.

[0033] The technical solutions of the present invention will be clearly and completely described below with reference to the accompanying drawings in the embodiments of the present invention.

[0034] Example 1

[0035] According to an embodiment of the present invention, a damper detection method embodiment is provided. It should be noted that the steps shown in the flowchart in the accompanying drawings can be executed in a computer system such as a set of computer-executable instructions. Furthermore, although a logical order is shown in the flowchart, in some cases, the steps shown or described may be executed in a different order than that shown here.

[0036] Figure 1 This is a flowchart of a damper testing method according to an embodiment of this application. Figure 1 As shown, the method includes the following steps:

[0037] Step S101: Obtain the standard size information of the device to be tested. The standard size information refers to the size information of the damper that matches the device to be tested.

[0038] It should be noted that the standard size information of the equipment to be tested mentioned above in this application is the size information of the damper that matches the equipment to be tested, which is the actual damper parameter. This application obtains the size information of the damper that matches the equipment to be tested, records the correct damper size information, and uses it as template information to further ensure that the damper model can be detected by comparing it with the standard size information.

[0039] Step S102: Obtain a damper image. The damper image is obtained after the damper to be tested is installed on the device to be tested.

[0040] Specifically, before acquiring images of the damper, this application requires setting up imaging equipment, such as... Figure 2 As shown, a front view of the device to be tested (specifically a drum washing machine) is taken so that the above-mentioned imaging device can fully capture the damper of the device to be tested.

[0041] Step S103: Extract the detection size information of the damper from the damper image, and compare the standard size information and the detection size information to obtain a comparison result. Based on the comparison result, determine whether the model of the damper installed on the device to be tested is correct.

[0042] In the damper testing method of this application, firstly, the dimensional information of a damper matching the device to be tested is obtained; then, an image of the damper after it is installed on the device to be tested is obtained; finally, the testing dimensional information of the damper is extracted from the image, and the standard dimensional information and the testing dimensional information are compared to obtain a comparison result. Based on the comparison result, it is determined whether the model of the damper installed on the device to be tested is correct. Compared with the prior art, this application achieves damper testing by obtaining the dimensional information of a damper matching the device to be tested, obtaining an image of the damper after it is installed on the device to be tested, extracting the testing dimensional information of the damper from the image, comparing the standard dimensional information and the testing dimensional information to obtain a comparison result, and determining whether the model of the damper installed on the device to be tested is correct based on the comparison result.

[0043] Specifically, the aforementioned detection dimension information in this application includes the dimensions of the long handle and the dimensions of the fixing head.

[0044] In one optional embodiment, the damper includes multiple components. This application extracts the detection size information of the damper from the image of the damper, and compares the standard size information and the detection size information to obtain a comparison result. Based on the comparison result, it determines whether the model of the damper installed on the device to be tested is correct. The specific process is as follows:

[0045] Step S1031: Extract the detection dimension information of multiple components of the damper from the damper image;

[0046] Specifically, step S1031 above includes:

[0047] Step S10311: If there is no recessed area in the outline of the above-mentioned component, obtain the minimum bounding polygon of the outline of the above-mentioned component.

[0048] Step S10312: Determine the detection dimension information of the component based on the dimensions of the minimum circumscribed polygon.

[0049] Optionally, if there is no recessed area in the above-mentioned contour, the detection size information of the above-mentioned component is determined based on the smallest circumscribed polygon of the obtained component contour, which further ensures that the detected damper is more accurate.

[0050] Specifically, multiple masks corresponding to the aforementioned components in the damper image are constructed, and corner points are detected on the contours of each mask to obtain the corner points. The specific process is as follows:

[0051] Step S10313: In the case that there is a recessed area in the outline of the above-mentioned component, the detection size information of the above-mentioned damper is determined based on the corner point and the outline boundary of the above-mentioned mask.

[0052] It should be noted that this application uses the Harris corner detection algorithm to extract corner points, calculate the corner boundary of the component contour and the contour boundary of the mask, and calculate the detection dimension information of the damper based on the calculated corner points and the contour boundary of the mask.

[0053] Step S1032: Compare the inspection dimension information and standard dimension information of the same component to obtain the comparison result;

[0054] The above process is used to compare the size information of the damper detected for the same component with its standard size information to obtain the comparison result. Based on the comparison result, it is determined whether the model of the damper is correct.

[0055] Step S1033: If the comparison results corresponding to at least some of the above-mentioned components are within a preset range, determine that the model of the damper installed on the device to be tested is correct.

[0056] Further, according to step S1033, the specific process of determining that the model of the damper installed on the device under test is correct, provided that the comparison results corresponding to at least some of the aforementioned components are within a preset range, includes:

[0057] Step S10331: If the comparison results corresponding to the long handle and the fixed head are within the preset range, determine that the model of the damper installed on the device to be tested is correct.

[0058] In order to more accurately detect the damper model, specifically, the above-mentioned components include a long handle and a fixed head. By detecting the dimensions of the long handle and the fixed head, the dimensional information of the long handle and the fixed head is obtained. The detected dimensional information of the same long handle and the fixed head is compared with the standard dimensional information to obtain the comparison result. If the comparison result is within a predetermined range, it is determined that the model of the damper installed on the device to be tested is correct.

[0059] In another optional embodiment, the method described above in this application further includes the following steps:

[0060] Step S201: Construct masks corresponding to multiple components in the above-mentioned damper image;

[0061] The specific process of constructing the masks corresponding to the multiple components in the aforementioned damper image in this application is as follows:

[0062] Step S2011: Obtain the color information of each of the plurality of components in the above-mentioned damper image;

[0063] Step S2012: Based on the color information of the above components, construct the mask corresponding to each of the above components.

[0064] Specifically, the template information mentioned above in this application includes the size and color information of the damper. A mask is created based on the color information of the damper in the template information. By constructing masks corresponding to multiple components in the damper image, the color of each part of the damper is detected, thereby obtaining the mask corresponding to each component constructed based on the color information of the components. This allows for subsequent corner detection using the contour of the mask, ultimately determining the size of each component and further ensuring that the detected damper has good accuracy.

[0065] Step S202: Extract the contour of each of the above masks, and determine whether there is a recessed area in the contour of each of the above components based on the contour of each of the above masks.

[0066] It should be noted that the specific process by which this application determines whether there are recessed areas in the contours of each of the aforementioned components based on the contours of each of the aforementioned masks is as follows:

[0067] Step S2021: Perform corner detection on the contours of each of the above masks to obtain the corner points;

[0068] Step S2022: Obtain the absolute value of the difference between the coordinate values ​​of each of the above corner points and the coordinate values ​​of the outline boundary of the above mask;

[0069] Step S2023: If the absolute value of the above difference is greater than or equal to the first preset difference, it is determined that the outline of the above component corresponding to the above mask has the above recessed area.

[0070] Step S2024: If the absolute value of the difference is less than the first preset difference, it is determined that the contour of the component corresponding to the mask does not have the recessed area.

[0071] To further ensure the accuracy of the detected damper, in step S202 of this application, the Harris corner detection algorithm is used to extract corner points and perform corner detection on the contour of each mask to obtain corner points. The corner point boundary and the contour boundary of each mask contour are calculated. If the absolute value of the difference between the two is greater than or equal to a first preset difference, it is determined that there is a recessed area in the contour of the above-mentioned component. This application uses corner detection to determine whether there is a recess based on the absolute value of the difference between the corner point and the mask contour, thereby eliminating misjudgments caused by the fixing head, making the size detection of the damper more accurate, and preventing false detection and missed detection.

[0072] In another alternative embodiment, the damper described above in this application includes a long stalk and a fixed head. The process of determining whether there are recessed areas in the contours of each component based on the contours of each of the aforementioned masks is as follows:

[0073] Corner detection is performed on the contours of each of the above-mentioned masks to obtain corner points; the absolute value of the difference between the contour area of ​​the long handle and the contour area of ​​the fixed head is obtained; if the absolute value of the difference is greater than or equal to a second preset difference, it is determined that the contour of the component corresponding to the mask has the above-mentioned recessed area; if the absolute value of the difference is less than the second preset difference, it is determined that the contour of the component corresponding to the mask does not have the above-mentioned recessed area.

[0074] In the above process, corner point detection is performed on the contour of each mask to obtain corner points, the contour area of ​​the long handle and the fixed head is obtained, and the absolute value of the difference between the contour areas of the long handle and the fixed head is calculated. If the absolute value of the difference between the two is greater than or equal to a second preset difference, it is determined that there is a recessed area in the contour of the above component. This application uses corner point detection to determine whether there is a recess based on the absolute value of the difference between the contour areas of the long handle and the fixed head, thereby eliminating misjudgments caused by the fixed head, making the size detection of the damper more accurate, and further ensuring that the detected damper is more accurate.

[0075] In yet another optional embodiment, the method described above further includes the following steps:

[0076] Step S301: Obtain the standard installation position information of the damper. The standard installation position information refers to the position information of the damper when the damper is correctly installed on the device to be tested.

[0077] Step S302: Extract the detection and installation position information of each damper from the above damper image.

[0078] Specifically, after steps S301 and S302 described above in this application, the comparison result obtained by comparing the standard size information and the detection size information further includes:

[0079] Step S303: Construct the correspondence between the above-mentioned standard installation location information and the above-mentioned detection installation location information;

[0080] Step S304: Based on the above correspondence, compare the standard size information and the test size information of the damper installed at the same position to obtain the comparison result.

[0081] In one embodiment, the captured image of the damper is segmented according to the actual product requirements, such as dividing the image into four regions: upper left, lower left, upper right, and lower right. Detection is performed in the regions where the damper is located to extract the detection and installation position information of each damper. A correspondence is established between the standard installation position information of the damper and the detected installation position information. Based on the correspondence, the standard size information and detection size information of the damper installed at the same position are compared to obtain the comparison result, thereby detecting whether the model of the damper at that position is correct.

[0082] In one specific embodiment of this application, the damper detection method described above is as follows: Figure 3 As shown, the specific steps are as follows:

[0083] S1: Set up a camera device capable of taking a frontal photograph of the device to be inspected, which can specifically be a washing machine. Install the camera device on the production line to take a frontal photograph of the washing machine drum. Figure 2 As shown, the damper of the washing machine can be completely photographed. Figure 2 The damper in the device includes a long handle 1, a damper body 2, a fixed head housing 3, and a fixed head 4.

[0084] S2: Store the correct damper standard size information.

[0085] S21: Based on the correct damper standard size information, record the correct damper size and color information as template information. It should be noted that some washing machine models do not have dampers in all four positions; those skilled in the art can flexibly configure this according to actual needs.

[0086] S22: For different models of washing machines, templates can be imported and the standard size information of dampers for each model can be stored as a control group for later testing.

[0087] S3: Process the image of the damper of the device under test.

[0088] S31: Take a frontal photo of the equipment to be tested on the production line.

[0089] S32: As Figure 2 As shown, the orientation of the washing machine drum is determined by the water outlet 5. The image is segmented into upper and lower halves. Contour processing is performed on the image of the damper to be detected. The water outlet is located using circle detection in shape detection, and the vertical coordinates are used to determine which half of the production line the water outlet is located in. If the water outlet is detected in the upper half, it is considered that the washing machine drum on the production line is placed upside down, and the process proceeds to step S36. If the water outlet is in the lower half, the product is placed correctly, and the process proceeds to step S33.

[0090] S33: Determine the horizontal coordinates of the damper to be tested.

[0091] The damper is symmetrical about the vertical centerline of the water outlet. Taking the center of the water outlet as the center, a certain distance is taken on both sides to determine the connection point between the damper and the casing. This distance varies depending on the washing machine model. Using the center of the water outlet as the origin, the horizontal coordinates of the lower half of the damper can be obtained based on the washing machine model. The horizontal coordinates of the damper are the same for both the upper and lower halves, thus allowing us to obtain the horizontal coordinates of the connection points between the damper and the casing in all four directions.

[0092] S34: Check the damper size.

[0093] Based on the actual needs of the washing machine, the acquired front image of the washing machine is divided into four regions: upper left, lower left, upper right, and lower right. However, some washing machine models do not have dampers in all four locations; therefore, detection is performed separately in the regions where dampers are present. A mask is created based on the damper color information from the standard size information. For each damper, the handle and the fixed head housing need to be extracted twice, as detailed below. Figure 4 As shown.

[0094] S341: First, extract the long handle shell area.

[0095] Because the washing machine drum is cylindrical, the image captured by the camera is transformed from three-dimensional to two-dimensional. The style of the damper varies between different washing machines, and the angle in the image differs. Sometimes the fixing head and the long handle casing are similar in color, and they may appear connected when creating the mask, such as... Figure 5 As shown. In this situation, directly performing contour detection would increase the size of the long handle, leading to detection errors and false positives.

[0096] Therefore, this application uses the Harris corner detection algorithm to extract corner points and calculates the coordinate difference between the corner point boundary and the outer contour boundary. If the difference between the two is greater than a threshold, for example, if the difference is greater than half the width of the fixed head, it is considered that there is a depression in the contour.

[0097] Specifically, if a dent exists, the masks of the long handle and the fixed head housing are connected because their colors are similar (e.g., Figure 5 As shown in the figure, when detecting the profile of the long handle, that is, the profile after the two are connected, the outer rectangle of the long handle profile is directly calculated. In fact, it is the sum of the lengths of the parts of the long handle and the fixed head shell that are similar in color, which leads to detection error.

[0098] Therefore, the dimensions cannot be directly calculated using the circumscribed rectangle of the handle's outer contour. This application uses Harris corner detection to obtain the corner coordinates of the handle, including the corners of the recessed portion. When calculating the dimensions, the coordinates of the outline can be used for the part where the handle connects to the washing machine body, but the coordinates of the other side of the handle connecting to the fixing head need to use the corner coordinates. Only in this way can the calculated dimensions of the handle be determined. For example, when detecting the damper on the left, the coordinates of the four vertices of the circumscribed rectangle are obtained based on the handle's outline. The coordinates of the two vertices on the left side of the circumscribed rectangle can be retained, while the coordinates of the right side use the corner coordinates. The distance from the coordinates of the right corner to the coordinates of the two vertices on the left side of the circumscribed rectangle is the dimension of the handle.

[0099] S342: Extract the fixed head housing area.

[0100] Based on the color information of the fixed head shell in the template, color blocks are extracted from the corresponding areas to obtain the coordinates of the areas with consistent colors. The dimensions of the fixed head shell are then calculated based on these coordinates.

[0101] S343: Eliminate defects caused by misjudgment of the fixed head.

[0102] Compare the fixed head coordinates obtained from S342 with the mask contour and corner coordinates obtained from S341. If the horizontal coordinate of the fixed head mask contour falls within the horizontal coordinate of the long handle mask contour and is closer to the horizontal coordinate of the corner, then the detection error is considered to be caused by the similarity in color between the long handle and the fixed head. In this case, the dimensions of the long handle are calculated using the corner coordinates. Figure 5 As shown. If there is no depression, use the mask profile to calculate the length of the long handle.

[0103] S344: Save damper information.

[0104] Based on the connection position between the damper and the housing determined in S33, and the position coordinates of the fixed head shell, the length of the complete damper can be obtained.

[0105] S345: For dampers in different regions, repeat steps S341-S344 until all dampers have been tested. Save the information for all dampers to be tested.

[0106] S35: Compare the detected damper information with the damper information in the template. If any damper information does not match the template, the damper is considered to be installed incorrectly. Only when the detected information of all dampers matches the template information is the installation considered qualified.

[0107] S36: Output the test results and the test is now complete.

[0108] As described in the above embodiments of this application, the damper detection method of this application first performs contour detection on the washing machine drum image on the production line to locate the water outlet. The water outlet is used to determine if the drum is incorrectly positioned (front or back). The center of the water outlet is horizontally aligned with the position of the damper below, thus the horizontal coordinates of the damper below can be determined by the water outlet position. Since the dampers are symmetrically installed on the washing machine drum, the horizontal coordinates of the dampers in four areas can be obtained. Color detection is used to detect areas within the inspection area that match the color of the imported correct damper. A mask is used to determine the size of the color area. Corner detection is compared with the outer contour of the mask to determine if there are any empty areas in the contour, preventing the top of the fixing head from affecting the long handle detection and causing false or missed detections due to damper size errors. The lengths of various parts of the damper are obtained by creating a mask and contour detection. Finally, the product's qualification is determined by comparing the dimensions of all dampers with the template information.

[0109] Example 2

[0110] This application also provides a damper testing device. It should be noted that the damper testing device of this application can be used to execute the damper testing method provided in this application. The damper testing device provided in this application is described below.

[0111] Figure 6 This is a schematic diagram of a damper detection device according to an embodiment of this application. Figure 6 As shown, the specific explanation is as follows:

[0112] The first acquisition unit 10 is used to acquire the damper test template of the device to be tested, wherein the damper test template includes the standard size information of the damper.

[0113] The second acquisition unit 20 is used to acquire a damper image, which is obtained after the damper to be tested is installed on the device to be tested.

[0114] The processing unit 30 is used to extract the detection size information of the damper from the damper image, compare the standard size information and the detection size information to obtain a comparison result, and determine whether the model of the damper installed on the device to be tested is correct based on the comparison result.

[0115] In the damper testing device of this application, a first acquisition unit acquires the size information of a damper matching the device under test, a second acquisition unit acquires an image of the damper after it is installed on the device under test, and a processing unit extracts the testing size information of the damper from the image. The standard size information and the testing size information are compared to obtain a comparison result. Based on the comparison result, it is determined whether the model of the damper installed on the device under test is correct. Compared with the prior art, this application achieves damper testing by acquiring the size information of a damper matching the device under test and an image of the damper after it is installed on the device under test, extracting the testing size information from the image, comparing the standard size information and the testing size information to obtain a comparison result, and determining whether the model of the damper installed on the device under test is correct based on the comparison result.

[0116] Based on the apparatus provided in the above embodiments, the damper includes multiple components, and the processing unit includes:

[0117] An extraction module is used to extract the detection size information of multiple components of the damper from the damper image.

[0118] The comparison module is used to compare the inspection size information and standard size information of the same component to obtain the comparison result;

[0119] The first determining module is used to determine that the model of the damper installed on the device to be tested is correct, provided that the comparison results corresponding to at least some of the above-mentioned components are within a preset range.

[0120] Based on the apparatus provided in the above embodiments, the first determining module includes:

[0121] The determination submodule is used to determine whether the model of the damper installed on the device to be tested is correct, provided that the comparison results corresponding to the long handle and the fixed head are within a preset range.

[0122] Based on the apparatus provided in the above embodiments, the damper includes multiple components, and the apparatus further includes:

[0123] A construction unit is used to construct masks corresponding to multiple components in the aforementioned damper image;

[0124] The first extraction unit is used to extract the contours of each of the aforementioned masks, and to determine whether there are recessed areas in the contours of each of the aforementioned components based on the contours of each of the aforementioned masks.

[0125] Based on the apparatus provided in the above embodiments, the above-mentioned building unit includes:

[0126] The first acquisition module is used to acquire the color information of each of the multiple components in the above-mentioned damper image;

[0127] The first construction module is used to construct the mask corresponding to each of the above components based on the color information of the above components.

[0128] Based on the apparatus provided in the above embodiments, the first extraction unit includes:

[0129] The detection module is used to perform corner detection on the contours of each of the above masks to obtain the corner points.

[0130] The second acquisition module is used to acquire the absolute value of the difference between the coordinate values ​​of each of the above corner points and the coordinate values ​​of the outline boundary of the above mask;

[0131] The second determining module is used to determine that the contour of the component corresponding to the mask has the recessed area when the absolute value of the difference is greater than or equal to a preset difference.

[0132] The third determining module is used to determine that the contour of the component corresponding to the mask does not have the recessed area when the absolute value of the difference is less than the preset difference.

[0133] Based on the apparatus provided in the above embodiments, the damper includes multiple components, and the processing unit includes:

[0134] The third acquisition module is used to acquire the minimum bounding polygon of the outline of the component when there is no concave area in the outline of the component.

[0135] The fourth determining module is used to determine the detection size information of the above-mentioned component based on the size of the minimum circumscribed polygon.

[0136] Based on the apparatus provided in the above embodiments, the damper includes multiple components, a mask corresponding to multiple components in the damper image is constructed, corner points are detected on the contours of each mask to obtain corner points, and the processing unit includes:

[0137] The fifth determining module is used to determine the detection size information of the damper based on the corner points and the contour boundary of the mask when there is a recessed area in the contour of the component.

[0138] Based on the apparatus provided in the above embodiments, the apparatus further includes:

[0139] The third acquisition unit is used to acquire the standard installation position information of the damper. The standard installation position information refers to the position information of the damper when the damper is correctly installed on the device to be tested.

[0140] The second extraction unit is used to extract the detection and installation position information of each of the dampers from the damper images.

[0141] Based on the apparatus provided in the above embodiments, the processing unit includes:

[0142] The second construction module is used to construct the correspondence between the above-mentioned standard installation location information and the above-mentioned detection installation location information;

[0143] The processing module is used to compare the standard size information and the test size information of the dampers installed at the same position according to the above correspondence to obtain the comparison result.

[0144] The aforementioned damper detection device includes a processor and a memory. The aforementioned first acquisition unit, the aforementioned second acquisition unit, and the aforementioned processing unit are all stored in the memory as program units. The processor executes the aforementioned program units stored in the memory to realize the corresponding functions.

[0145] The processor contains a kernel, which retrieves the corresponding program unit from memory. One or more kernels can be configured, and adjusting kernel parameters can address the low efficiency of manual inspection of damper installation in existing technologies.

[0146] 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.

[0147] Example 3

[0148] According to an embodiment of this application, a computer-readable storage medium is provided, the computer-readable storage medium including a stored program, wherein, when the program is executed, it controls the device where the computer-readable storage medium is located to perform the damper detection method.

[0149] Example 4

[0150] According to an embodiment of this application, a processor is provided for running a program, wherein the program executes the damper detection method.

[0151] Example 5

[0152] This invention provides a device including 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:

[0153] Step S101: Obtain the standard size information of the device to be tested. The standard size information refers to the size information of the damper that matches the device to be tested.

[0154] Step S102: Obtain a damper image. The damper image is obtained after the damper to be tested is installed on the device to be tested.

[0155] Step S103: Extract the detection size information of the damper from the damper image, and compare the standard size information and the detection size information to obtain a comparison result. Based on the comparison result, determine whether the model of the damper installed on the device to be tested is correct.

[0156] The devices mentioned in this article can be servers, PCs, tablets, mobile phones, etc.

[0157] Example 6

[0158] 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:

[0159] Step S101: Obtain the standard size information of the device to be tested. The standard size information refers to the size information of the damper that matches the device to be tested.

[0160] Step S102: Obtain a damper image. The damper image is obtained after the damper to be tested is installed on the device to be tested.

[0161] Step S103: Extract the detection size information of the damper from the damper image, and compare the standard size information and the detection size information to obtain a comparison result. Based on the comparison result, determine whether the model of the damper installed on the device to be tested is correct.

[0162] This application also provides an apparatus 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, and the one or more programs include methods for performing any of the methods described above.

[0163] The device of this application includes one or more processors, a memory, and one or more programs, wherein the one or more programs include a method for performing any type of damper testing. First, the dimensional information of a damper matching the device to be tested is acquired. Then, an image of the damper after it is installed on the device to be tested is acquired. Finally, the detection dimensional information of the damper is extracted from the image of the damper. The standard dimensional information and the detection dimensional information are compared to obtain a comparison result. Based on the comparison result, it is determined whether the model of the damper installed on the device to be tested is correct. Compared with the prior art, this application achieves damper testing by acquiring the dimensional information of a damper matching the device to be tested, acquiring an image of the damper after it is installed on the device to be tested, extracting the detection dimensional information of the damper from the image of the damper, comparing the standard dimensional information and the detection dimensional information to obtain a comparison result, and determining whether the model of the damper installed on the device to be tested is correct based on the comparison result.

[0164] 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.

[0165] 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.

[0166] 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 1The function specified in one or more boxes.

[0167] 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.

[0168] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.

[0169] 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.

[0170] 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 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.

[0171] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.

[0172] As can be seen from the above description, the embodiments of this application achieve the following technical effects:

[0173] 1) In the damper testing method of this application, qualified product information is imported according to the standards required for the product, and the size and color information of qualified dampers are recorded as template information. The size information of the damper matching the device under test is obtained by taking a picture of the device under test. Then, an image of the damper after it is installed on the device under test is obtained. The testing size information of the damper is extracted from the image. The standard size information and the testing size information are compared to obtain a comparison result. Based on the comparison result, it is determined whether the model of the damper installed on the device under test is correct. Compared with the prior art, this application first obtains the size information of the damper matching the device under test, then obtains an image of the damper after it is installed on the device under test, and finally extracts the testing size information from the image. The comparison result is then obtained by comparing the standard size information and the testing size information. Based on the comparison result, it is determined whether the model of the damper installed on the device under test is correct, thereby realizing the testing of the damper.

[0174] 2) In the damper testing device of this application, the first acquisition unit acquires the size information of the damper matching the device to be tested, the second acquisition unit acquires an image of the damper after it is installed on the device to be tested, and the processing unit extracts the testing size information of the damper from the image. The standard size information and the testing size information are compared to obtain a comparison result. Based on the comparison result, it is determined whether the model of the damper installed on the device to be tested is correct. Compared with the prior art, this application achieves the testing of the damper by acquiring the size information of the damper matching the device to be tested and an image of the damper after it is installed on the device to be tested, extracting the testing size information of the damper from the image, comparing the standard size information and the testing size information to obtain a comparison result, and determining whether the model of the damper installed on the device to be tested is correct based on the comparison result.

[0175] 3) The device of this application includes: one or more processors, a memory, and one or more programs, wherein the one or more programs include a method for performing any damper testing. First, the size information of a damper matching the device to be tested is acquired. Then, an image of the damper after it is installed on the device to be tested is acquired. Finally, the detection size information of the damper is extracted from the damper image. The standard size information and the detection size information are compared to obtain a comparison result. Based on the comparison result, it is determined whether the model of the damper installed on the device to be tested is correct. Compared with the prior art, this application achieves damper testing by acquiring the size information of a damper matching the device to be tested, acquiring an image of the damper after it is installed on the device to be tested, extracting the detection size information of the damper from the image, comparing the standard size information and the detection size information to obtain a comparison result, and determining whether the model of the damper installed on the device to be tested is correct based on the comparison result.

[0176] 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 damper detection method characterized by, include: Obtain the standard size information of the device to be tested, wherein the standard size information refers to the size information of the damper that matches the device to be tested; A damper image is acquired after the damper to be tested is mounted on the device to be tested. The detection size information of the damper is extracted from the image of the damper, and the standard size information and the detection size information are compared to obtain the comparison result. Based on the comparison result, it is determined whether the model of the damper installed on the device to be tested is correct. The damper includes multiple components. Color information of each component in the damper image is acquired. A mask corresponding to each component is constructed based on the color information. The contour of each mask is extracted, and the presence of recessed areas in the contour of each component is determined based on the contour of each mask. Corner detection is performed on the contour of each mask to obtain corner points. The detection size information of the damper is extracted from the damper image, including: if the contour of a component has recessed areas, determining the detection size information of the damper based on the corner points and the contour boundary of the mask.

2. The method of claim 1, wherein, Extracting the detection size information of the damper from the image of the damper, and comparing the standard size information and the detection size information to obtain a comparison result, determining whether the model of the damper installed on the device to be tested is correct based on the comparison result, including: Extract the detection dimension information of multiple components of the damper from the image of the damper; The measured dimensional information and standard dimensional information of the same component are compared to obtain the comparison results; If the comparison results corresponding to at least some of the components are within a preset range, it is determined that the model of the damper installed on the device under test is correct.

3. The method of claim 2, wherein, If the comparison results corresponding to at least some of the components are within a preset range, determining that the model of the damper installed on the device under test is correct includes: If the comparison results corresponding to the long handle and the fixed head are within a preset range, it is determined that the model of the damper installed on the device to be tested is correct.

4. The method of claim 1, wherein, Determining whether there are recessed areas in the contours of each component based on the contours of each mask includes: Corner points are obtained by performing corner detection on the contours of each mask. Obtain the absolute value of the difference between the coordinate values ​​of each corner point and the coordinate values ​​of the contour boundary of the mask; If the absolute value of the difference is greater than or equal to a preset difference, it is determined that the contour of the component corresponding to the mask has the recessed area. If the absolute value of the difference is less than the preset difference, it is determined that the contour of the component corresponding to the mask does not contain the recessed area.

5. The method of claim 1, wherein, Extracting the detection size information of the damper from the image of the damper includes: If there are no recessed areas in the outline of the component, obtain the smallest bounding polygon of the outline of the component. The detection size information of the component is determined based on the size of the minimum circumscribed polygon.

6. The method of claim 1, wherein, The method further includes: Obtain the standard installation position information of the damper, which refers to the position information of the damper when the damper is correctly installed on the device to be tested; Extract the detection and installation location information of each damper from the damper image.

7. The method of claim 6, wherein, The comparison results are obtained by comparing the standard size information and the detection size information, including: Construct the correspondence between the standard installation location information and the detection installation location information; The comparison result is obtained by comparing the standard size information and the test size information of the dampers installed at the same location according to the corresponding relationship.

8. A damper detection device characterized by comprising: include: The first acquisition unit is used to acquire the damper test template of the device to be tested, wherein the damper test template includes the standard size information of the damper; The second acquisition unit is used to acquire a damper image, which is obtained after the damper to be tested is installed on the device to be tested; The processing unit is used to extract the detection size information of the damper from the damper image, compare the standard size information and the detection size information to obtain a comparison result, and determine whether the model of the damper installed on the device to be tested is correct based on the comparison result; The damper includes multiple components, and the device further includes: a construction unit, configured to acquire color information of each of the multiple components in the damper image; and to construct a mask corresponding to each component based on the color information of the component; a first extraction unit, configured to extract the contour of each mask and determine whether there is a concave region in the contour of each component based on the contour of each mask; and to perform corner detection on the contour of each mask to obtain corner points; the processing unit includes: a fifth determination module, configured to determine the detection size information of the damper based on the corner points and the contour boundary of the mask when there is a concave region in the contour of the component.

9. An apparatus, comprising: 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.