Protection cover assembly detection method, device, readable storage medium and air conditioner
Through image processing technology, the assembly quality of the protective cover is automatically detected, which solves the problem of missed inspection and missed inspection by manual inspection, and realizes accurate detection of the assembly quality of the protective cover, ensuring the safety and quality of the product.
Patent Information
- Application Number
- CN202411199511.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-29
- Publication Date
- 2024-12-31
- Estimated Expiration
- 2044-08-29
AI Technical Summary
In the prior art, the assembly quality of manual inspection protective covers is prone to missed inspection and missed inspection, resulting in unqualified products flowing to the market, posing safety hazards and quality problems.
By using image processing technology, by obtaining the protective cover image, extracting the contour and hollow hole profile, determining the deformation of the inner angle and target profile, combining the relative position relationship, the assembly quality of the protective cover is automatically detected and assembly abnormalities are judged.
Accurate and reliable detection of the assembly quality of protective covers, reduce manual missed inspections, timely discover assembly abnormalities, prevent the circulation of unqualified products, and liberate manpower.
Smart Images

Figure CN118710649B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the technical field of assembly detection, and in particular, to an assembly detection method and device for a protective cover, a computer-readable storage medium, and an air conditioner. Background Art
[0002] During the production process of the indoor unit of the air conditioner, the indoor unit will be equipped with a protective cover with a hollow rectangle to protect the indoor unit from impact, and then the protective cover will be fixed with screws on the protective cover. The quality of the screw assembly determines the assembly quality of the protective cover. If the screw assembly is too tight or too loose, the protective cover will be unevenly stressed and will be shipped directly from the factory. Long-term use will cause the protective cover to crack, and the air conditioner will make abnormal noises during operation, posing a safety hazard and affecting the user experience. After the existing protective covers are assembled, defective ones are basically screened out manually. Quality inspectors pay more attention to whether the protective covers are installed firmly. There is no effective judgment on the existing assembly quality, which will lead to false detection and missed detection, resulting in unqualified products flowing into the market, posing great quality problems and safety hazards. Summary of the invention
[0003] The main purpose of the present application is to provide a method, device, computer-readable storage medium and air conditioner for detecting the assembly of a protective cover, so as to at least solve the technical problem in the prior art that manual detection of the assembly quality of the protective cover is prone to misdetection and omission.
[0004] In order to achieve the above-mentioned purpose, according to one aspect of the present application, a method for assembling and detecting a protective cover is provided, wherein the protective cover is located on a base, and a surface of the protective cover away from the base is a polygonal surface, and the polygonal surface has a plurality of hollow holes, and the shape of the hollow holes is the same as the shape of the polygonal surface. The method comprises: when the protective cover is connected to the base via a plurality of connecting structures, acquiring an image of the protective cover, the image of the protective cover being an image acquired when a lens of an image acquisition device faces the polygonal surface; extracting a protective cover contour and all hollow hole contours from the protective cover image, and determining whether there is a first hollow hole contour according to the protective cover contour and each of the hollow hole contours. an inner angle and a first target contour, the first inner angle being the inner angle of the protective cover contour greater than a first threshold, the first target contour being the hollow hole contour having an inner angle greater than a second threshold; in the presence of the first inner angle and the first target contour, determining whether the protective cover is abnormally assembled at least based on the relative positional relationship between the first inner angle and the first target contour, and determining that the protective cover is abnormally assembled at least when the first target contour is located in the area where the first inner angle is located, the polygonal surface includes a plurality of areas corresponding one to the inner angles of the polygonal surface, each of the areas including a corresponding inner angle of the polygonal surface and a plurality of the hollow holes.
[0005] Optionally, the multiple areas are obtained by equally dividing the polygonal surface, the area where the first inner angle is located is the target area, and the inner angle in the first target contour that is greater than the second threshold is the second inner angle. In the case where there are multiple first target contours, at least based on the relative position relationship between the first inner angle and the first target contour, determining whether the protective cover is abnormally assembled includes: determining n second target contours from the multiple first target contours, the second inner angles of the n second target contours are greater than the second inner angles of the remaining first target contours, n ≥ 1 and is an integer; determining whether all of the n second target contours are located in the target area; in the case where the n second target contours are all located in the target area, obtaining a first vector pointing to the vertex corresponding to the second inner angle of the second target contour and parallel to the diagonal of the second inner angle of the second target contour, and obtaining a second vector pointing to the vertex corresponding to the first inner angle and parallel to the diagonal of the first inner angle, and determining whether the angle between the first vector and the second vector is less than a third threshold; in the case where the angle between the first vector and the second vector is less than the third threshold, determining that the protective cover is abnormally assembled.
[0006] Optionally, when n>1, obtaining a first vector pointing to the vertex corresponding to the second inner angle of the second target contour and parallel to the diagonal of the second inner angle of the second target contour includes: calculating the average value of the slopes of the diagonals of n second inner angles of the second target contours; fitting to obtain a straight line whose slope is the average value; and determining that the vertex corresponding to the second inner angle of the second target contour and parallel to the straight line is the first vector.
[0007] Optionally, the polygonal surface is a rectangular surface, and the plurality of regions are divided by an x-axis passing through the center of the rectangular surface and perpendicular to two opposite surfaces of the rectangular surface, and a y-axis passing through the center and perpendicular to the x-axis.
[0008] Optionally, after determining that the protective cover has an assembly abnormality, the method further includes: when there are two and non-adjacent assembly abnormalities in the target area, determining that the protective cover has different-side assembly abnormalities, the different-side assembly abnormalities characterizing that the assembly depth of the connection structure corresponding to two opposite vertices of the rectangular surface is greater than a predetermined depth threshold or less than the predetermined depth threshold.
[0009] Optionally, after determining that the protective cover has an assembly abnormality, the method further includes: when there are two adjacent target areas, obtaining the angle between the first vector and the target axis, when the two target areas are divided by the x-axis, the target axis is the x-axis, and when the two target areas are divided by the y-axis, the target axis is the y-axis; when the angle between the first vector and the target axis is less than or equal to a fourth threshold, determining that the protective cover has a first same-side assembly abnormality, the first same-side assembly abnormality characterizing that the assembly depth of the connection structure corresponding to two adjacent vertices of the rectangular surface is greater than a predetermined depth threshold or less than the predetermined depth threshold; when the angle between the first vector and the target axis is greater than the fourth threshold and less than or equal to a fifth threshold, determining that the protective cover has a second same-side assembly abnormality, the second same-side assembly abnormality characterizing that the assembly depth of one of the connection structures corresponding to two adjacent vertices of the rectangular surface is greater than the predetermined depth threshold, and the assembly depth of the other connection structure is less than the predetermined depth threshold.
[0010] Optionally, extracting the protective cover contour and all hollow hole contours from the protective cover image includes: binarizing the protective cover image to obtain a processed image; and performing edge extraction on the processed image to obtain the protective cover contour and each hollow hole contour.
[0011] According to another aspect of the present application, there is provided an assembly detection device for a protective cover, wherein the protective cover is located on a base, and a surface of the protective cover away from the base is a polygonal surface, the polygonal surface has a plurality of hollow holes, and the shape of the hollow holes is the same as the shape of the polygonal surface, and the device comprises: an acquisition unit, for acquiring an image of the protective cover when the protective cover is connected to the base via a plurality of connection structures, the image of the protective cover being an image acquired when a lens of an image acquisition device faces the polygonal surface; an extraction unit, for extracting a protective cover contour and all hollow hole contours from the protective cover image, and determining whether a first An inner angle and a first target contour, the first inner angle being the inner angle of the protective cover contour greater than a first threshold, the first target contour being the hollow hole contour having an inner angle greater than a second threshold; a determination unit, for determining whether the protective cover is abnormally assembled based on at least the relative positional relationship between the first inner angle and the first target contour when the first inner angle and the first target contour exist, and determining that the protective cover is abnormally assembled at least when the first target contour is located in the area where the first inner angle is located, the polygonal surface comprising a plurality of areas corresponding one to the inner angles of the polygonal surface, each of the areas comprising a corresponding inner angle of the polygonal surface and a plurality of the hollow holes.
[0012] According to another aspect of the present application, a computer-readable storage medium is provided, wherein the computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute any one of the methods described.
[0013] According to another aspect of the present application, an air conditioner is provided, comprising: an air conditioner indoor unit, comprising a base and an indoor unit body located on the base; a protective cover, located on the base and the cover is arranged on the indoor unit body, the surface of the protective cover away from the base is a polygonal surface, the polygonal surface has a plurality of hollow holes, the shape of the hollow holes is the same as the shape of the polygonal surface, and the protective cover is connected to the base via a plurality of connecting structures; an assembly detector, comprising one or more processors, a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and the one or more programs include methods for executing any one of the described methods.
[0014] By applying the technical solution of the present application, the present application, based on image processing technology, comprehensively considers the deformation of the inner angle of the protective cover after assembly, the deformation of the inner angle of the hollow hole after assembly, and the relative position relationship between the hollow hole whose inner angle deformation is greater than a threshold and the inner angle whose deformation is greater than a threshold, to determine whether the assembly quality of the protective cover is abnormal, thereby realizing automatic detection of the assembly quality of the protective cover, ensuring that the detection result is relatively accurate and reliable, and solving the problem of manual detection of the assembly quality of the protective cover in the prior art, which is prone to missed detection and false detection. The present application can promptly discover abnormal assembly of the protective cover, prevent the backflow of the abnormally assembled protective cover, solve the problem of assembly quality of the protective cover, and liberate manpower. BRIEF DESCRIPTION OF THE DRAWINGS
[0015] The drawings constituting part of the present application are used to provide a further understanding of the present application. The exemplary embodiments and descriptions of the present application are used to explain the present application and do not constitute an improper limitation on the present application. In the drawings:
[0016] Figure 1 A hardware structure block diagram of a mobile terminal for executing an assembly detection method for a protective cover provided in an embodiment of the present application is shown;
[0017] Figure 2 A schematic structural diagram of a protective cover provided according to an embodiment of the present application is shown;
[0018] Figure 3 A schematic diagram of a top view of a protective cover provided according to an embodiment of the present application is shown;
[0019] Figure 4A schematic flow chart of an assembly detection method for a protective cover provided according to an embodiment of the present application is shown;
[0020] Figure 5 A schematic diagram of a top view of another protective cover provided according to an embodiment of the present application is shown;
[0021] Figure 6 A schematic diagram of a top view of another protective cover provided according to an embodiment of the present application is shown;
[0022] Figure 7 A schematic diagram of a top view of another protective cover provided according to an embodiment of the present application is shown;
[0023] Figure 8 A schematic diagram of an assembly inspection process of a protective cover provided in accordance with an embodiment of the present application is shown;
[0024] Fig. 9 A structural block diagram of an assembly detection device for a protective cover provided according to an embodiment of the present application is shown.
[0025] The drawings include the following reference numerals:
[0026] 102. Processor; 104. Memory; 106. Transmission device; 108. Input / output device; 10. Polygonal surface; 11. Hollow hole; 12. Connection structure; 13. Protective cover outline; 14. Hollow hole outline. DETAILED DESCRIPTION
[0027] It should be noted that, in the absence of conflict, the embodiments and features in the embodiments of the present application can be combined with each other. The present application will be described in detail below with reference to the accompanying drawings and in combination with the embodiments.
[0028] In order to enable those skilled in the art to better understand the solution of the present application, the technical solution in the embodiments of the present application will be clearly and completely described below in conjunction with the drawings in the embodiments of the present application. Obviously, the described embodiments are only part of the embodiments of the present application, not all of the embodiments. Based on the embodiments in the present application, all other embodiments obtained by ordinary technicians in this field without creative work should fall within the scope of protection of the present application.
[0029] It should be noted that the terms "first", "second", etc. in the specification and claims of the present application and the accompanying drawings are used to distinguish similar objects, and are not necessarily used to describe a specific order or sequential order. It should be understood that the data used in this way can be interchanged where appropriate, so that the embodiments of the present application described here. In addition, the terms "including" and "having" and any of their variations are intended to cover non-exclusive inclusions, for example, a process, method, system, product or device comprising a series of steps or units is not necessarily limited to those steps or units clearly listed, but may include other steps or units that are not clearly listed or inherent to these processes, methods, products or devices.
[0030] As introduced in the background technology, manual inspection of the assembly quality of the protective cover in the prior art is prone to misdetection and omission. To solve the above technical problems, the embodiments of the present application provide a protective cover assembly inspection method, device, computer-readable storage medium and air conditioner.
[0031] The technical solutions in the embodiments of the present invention will be described clearly and completely below in conjunction with the accompanying drawings in the embodiments of the present invention.
[0032] The method embodiments provided in the embodiments of the present application can be executed in a mobile terminal, a computer terminal or a similar computing device. Taking running on a mobile terminal as an example, Figure 1 FIG. 1 is a hardware structure block diagram of a mobile terminal of a method for detecting an assembly of a protective cover according to an embodiment of the present invention. Figure 1 As shown, the mobile terminal may include one or more ( Figure 1 Only one is shown in the figure) a processor 102 (the processor 102 may include but is not limited to a processing device such as a microprocessor MCU or a programmable logic device FPGA) and a memory 104 for storing data, wherein the mobile terminal may also include a transmission device 106 and an input / output device 108 for communication functions. It can be understood by those skilled in the art that Figure 1 The structure shown is for illustration only and does not limit the structure of the mobile terminal. Figure 1 More or fewer components as shown, or with Figure 1 Different configurations shown.
[0033] The memory 104 can be used to store computer programs, for example, software programs and modules of application software, such as the computer program corresponding to the assembly detection method of the protective cover in the embodiment of the present invention. The processor 102 executes various functional applications and data processing by running the computer program stored in the memory 104, that is, the method described is implemented. The memory 104 may include a high-speed random access memory, and may also include a non-volatile memory, such as one or more magnetic storage devices, flash memory, or other non-volatile solid-state memory. In some examples, the memory 104 may further include a memory remotely arranged relative to the processor 102, and these remote memories may be connected to the mobile terminal via a network. Examples of the network include, but are not limited to, the Internet, an intranet, a local area network, a mobile communication network, and combinations thereof. The transmission device 106 is used to receive or send data via a network. The specific example of the network may include a wireless network provided by a communication provider of the mobile terminal. In one example, the transmission device 106 includes a network adapter (Network Interface Controller, referred to as NIC), which can be connected to other network devices through a base station so as to communicate with the Internet. In one example, the transmission device 106 may be a radio frequency (RF) module, which is used to communicate with the Internet wirelessly.
[0034] In this embodiment, a method for assembling and inspecting a protective cover running on a mobile terminal, a computer terminal or a similar computing device is provided. It should be noted that the steps shown in the flowchart of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and although a logical order is shown in the flowchart, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0035] Figure 2 The schematic diagram of the structure of a protective cover of the present application is shown as an example. Figure 2 As shown, the surface of the protective cover away from the base is a rectangular surface. Figure 3 for Figure 2 A top view of Figure 2 and Figure 3 As shown, the protective cover is located on a base (not shown in the figure), and the surface of the protective cover away from the base is a polygonal surface 10, and the polygonal surface 10 has a plurality of hollow holes 11, and the shape of the hollow holes 11 is the same as that of the polygonal surface 10. Figure 4 FIG. 1 is a flow chart of a method for assembling and inspecting a protective cover according to an embodiment of the present application. Figure 4 As shown, the method comprises the following steps:
[0036] Step S201, when the protective cover is connected to the base through a plurality of connection structures 12, acquiring an image of the protective cover, wherein the image of the protective cover is an image acquired when a lens of an image acquisition device faces the polygonal surface 10;
[0037] Specifically, Figure 2 and Figure 3 As shown, the protective cover is assembled to the base through the connecting structure 12. The surface of the protective cover close to the image acquisition device and parallel to the lens of the image acquisition device is the polygonal surface 10. The connecting structure 12 is located at the vertex of the surface of the protective cover opposite to the polygonal surface 10. When the side of the protective cover is perpendicular to the polygonal surface, the orthographic projections of the multiple connecting structures 12 on the base overlap with the orthographic projections of the vertices of the polygonal surface 10 on the base. Generally, the number of the connecting structures 12 is the same as the number of vertices of the polygonal surface 10. Of course, the number of the connecting structures 12 can also be less than or greater than the number of vertices of the polygonal surface 10. The connecting structure 12 is also called a protective cover foot, which can be any suitable structure for connecting the base and the protective cover, such as a matching nut and screw structure. Before the protective cover is assembled, the polygonal surface and the hollow hole are both regular polygonal shapes. After the protective cover is assembled, if there is an assembly abnormality, the assembly depth of the connecting structure is too large or too small, which will cause deformation of the polygonal surface and the hollow hole.
[0038] Step S202, extracting a protective cover contour 13 and all hollow hole contours 14 from the protective cover image, and determining whether there is a first inner angle and a first target contour according to the protective cover contour 13 and each of the hollow hole contours 14, wherein the first inner angle is an inner angle of the protective cover contour greater than a first threshold, and the first target contour is the hollow hole contour having an inner angle greater than a second threshold;
[0039] Specifically, the protective cover contour is the contour of the polygonal surface. Those skilled in the art can set the specific values of the first threshold and the second threshold according to actual conditions, and meet the following conditions: the first threshold is greater than the inner angle corresponding to the protective cover contour before assembly, such as the inner angle of the protective cover contour is 90° before assembly, then the first threshold is greater than 90°; if the inner angle of the protective cover contour is 120° before assembly, then the first threshold is greater than 120°; similarly, the second threshold is greater than the inner angle corresponding to the hollow hole contour before assembly.
[0040] Step S203, in the presence of the first inner angle and the first target contour, determine whether the protective cover is abnormally assembled based at least on the relative positional relationship between the first inner angle and the first target contour, and determine that the protective cover is abnormally assembled at least when the first target contour is located in the area where the first inner angle is located, and the polygonal surface includes a plurality of areas corresponding one-to-one to the inner angles of the polygonal surface, and each of the areas includes a corresponding inner angle of the polygonal surface and a plurality of the hollow holes.
[0041] Specifically, the polygonal surface can be divided into a plurality of regions according to the inner angles, so that each region includes an inner angle and a plurality of hollow holes, that is, the regions correspond to the connection structures one by one.
[0042] Through the embodiment, first, when the protective cover is connected to the base through multiple connecting structures, a top view image of the polygonal surface of the protective cover away from the base is obtained to obtain a protective cover image, in which the connecting structure overlaps with the vertices, and the polygonal surface has multiple hollow holes with the same shape as the polygonal surface; then, the protective cover contour and the hollow hole contour are extracted from the protective cover image, and it is determined whether the protective cover contour has a first internal angle greater than a first threshold, and whether a first target contour with an internal angle greater than a second threshold is determined among the multiple hollow hole contours; finally, when the first internal angle and the first target contour exist, and at least the first target contour is located in the area where the first internal angle is located, it is determined that the protective cover is assembled abnormally, and the polygonal surface includes multiple areas, each of which includes an internal angle and multiple hollow holes. The present application is based on image processing technology, and comprehensively considers the deformation of the inner corner of the protective cover after assembly, the deformation of the inner corner of the hollow hole after assembly, and the relative position relationship between the hollow hole whose inner corner deformation is greater than a threshold and the inner corner whose deformation is greater than a threshold, to determine whether the assembly quality of the protective cover is abnormal, thereby realizing automatic detection of the assembly quality of the protective cover, ensuring that the detection result is relatively accurate and reliable, and solving the problem of manual detection of the assembly quality of the protective cover in the prior art, which is prone to missed detection and false detection. The present application can promptly discover abnormal assembly of the protective cover, prevent the backflow of the abnormally assembled protective cover, solve the problem of protective cover assembly quality, and liberate manpower.
[0043] Specifically, before the protective cover is assembled, the polygonal surface and each of the hollow holes are regular polygonal structures, and the hollow holes are obtained by enlarging, reducing and translating the polygonal surface. The protective cover can be a protective cover of any structure, such as a protective cover of an air conditioner indoor unit.
[0044] It should be noted that the polygonal surface of the present application is not limited to Figure 2 and Figure 3The rectangular surface shown may also be a pentagon, hexagon, triangle, etc.
[0045] In order to further ensure that the detection result of the assembly quality of the protective cover is relatively accurate, in an optional solution, the plurality of regions are obtained by equally dividing the polygonal surface, such as Figure 5 As shown, the area where the first inner angle is located is the target area (such as Figure 5 , the inner angle in the first target contour that is greater than the second threshold value is the second inner angle. In the case where there are multiple first target contours, at least according to the relative position relationship between the first inner angle and the first target contour, determining whether the protective cover is assembled abnormally comprises: determining n second target contours from multiple first target contours, the second inner angles of the n second target contours being greater than the second inner angles of the remaining first target contours, n ≥ 1 and being an integer, wherein the remaining first target contours are the first target contours other than the second target contour, and the n second target contours are the first target contours with the largest second inner angles; determining whether all of the n second target contours are located in the target area; in the case where all of the n second target contours are located in the target area, obtaining a first vector pointing to the vertex corresponding to the second inner angle of the second target contour and parallel to the diagonal of the second inner angle of the second target contour , and obtain a second vector pointing to the vertex corresponding to the first interior angle and parallel to the diagonal of the first interior angle , and determine the first vector With the second vector is less than a third threshold; in the first vector With the second vector When the angle between the first vector and the second vector is less than the third threshold, the protective cover is determined to be abnormally assembled. During the assembly process, the connection structure may have an abnormal assembly force (too large or too small), which may cause the inner angle of the vertex corresponding to the connection structure to be deformed, and the inner angle of the hollow hole close to the deformed inner angle to be deformed. The closer the connection structure is to the abnormal assembly force, the more serious the angle deformation of the hollow hole. Therefore, in this embodiment, it is determined whether the n first target contours with the largest degree of inner angle deformation are located in the area where the first inner angle is located, and whether the angle between the first vector and the second vector is less than the third threshold, so as to determine whether there is an abnormal assembly problem of the connection structure, which can further avoid misjudgment and further ensure that the assembly quality inspection result of the protective cover is more accurate.
[0046] Specifically, the first vector passes through the vertex corresponding to the second inner angle of the second target contour, points to the vertex and is parallel to the diagonal line passing through the vertex. The second vector passes through the vertex corresponding to the first inner angle, points to the vertex and is parallel to the diagonal line passing through the vertex.
[0047] In addition, the present application selects n first target contours with the largest second inner angles from multiple first target contours, which can save calculation. The specific value of n can be flexibly set according to actual needs, and the present application does not limit this.
[0048] The number of the second target contours of the present application may be only one, and the second target contour and the first inner angle are located in the same region. Taking the polygonal surface as a rectangle as an example, when the polygonal surface is a rectangle, the first threshold and the second threshold may both be greater than 90°, and the third threshold may be 90°.
[0049] In addition to the embodiments described above, the number of the second target profiles of the present application may also be multiple. In some optional embodiments of the present application, for example Figure 5 As shown, in the case of n>1, obtaining a first vector pointing to the vertex corresponding to the second inner angle of the second target contour and parallel to the diagonal of the second inner angle of the second target contour includes: calculating the average value of the slopes of the diagonals of the second inner angles of n second target contours; fitting to obtain a straight line with a slope of the average value; determining that the vector pointing to the vertex corresponding to the second inner angle of the second target contour and parallel to the straight line is the first vector. In this embodiment, when there are multiple second target contours, the average value of the smaller slopes passing through the second inner angle of the second contour is calculated, and a straight line corresponding to the average slope is fitted, so as to determine that the vector parallel to the straight line, passing through the vertex corresponding to the second inner angle of the second target contour and pointing to the vertex is the first vector.
[0050] In the embodiments of the present application, Figure 3 and Figure 5 As shown, the polygonal surface is a rectangular surface, and the multiple areas are divided by an x-axis passing through the center of the rectangular surface and perpendicular to the two opposite surfaces of the rectangular surface, and a y-axis passing through the center and perpendicular to the x-axis. The upper right area is area 1, and along the counterclockwise direction are area 1, area 2, area 3 and area 4 respectively.
[0051] In the case that the polygonal surface is a rectangular surface, the first threshold and the second threshold may both be selected to be angle values greater than 90°.
[0052] In the case where the polygonal surface is a rectangular surface, determining whether the protective cover is abnormally assembled at least according to the relative position relationship between the first inner angle and the first target contour may also include: determining n second target contours from a plurality of the first target contours, the second inner angles of the n second target contours being greater than the second inner angles of the remaining first target contours, n ≥ 1 and being an integer; determining whether all of the n second target contours are located in the target area; in the case where all of the n second target contours are located in the target area, calculating the average diagonal slope of the second inner angle of the second target contour, and determining the straight line corresponding to the average diagonal slope; in the case where the target area is area 1 or area 4, determining whether the straight line and the positive angle of the x-axis are in the first threshold interval, if yes, determining that the protective cover is abnormally assembled; in the case where the target area is area 2 or area 3, determining whether the straight line and the positive angle of the x-axis are in the second threshold interval, if yes, determining that the protective cover is abnormally assembled. Wherein, the first threshold interval may be 0°~90°, and the seventh threshold may be 90°~180°.
[0053] Specifically, the target area for determining assembly anomalies can be as follows: Figure 5 Only one is shown, but it can also be Figure 6 to Figure 7 In the case where there are multiple target areas with assembly anomalies, the n second target contours are all located in the multiple target areas.
[0054] According to some embodiments of the present application, Figure 6 As shown, after determining that the protective cover is assembled abnormally, the method further includes: in the case where there are two target areas of assembly abnormality and they are not adjacent, determining that the protective cover has assembly abnormalities on different sides, wherein the assembly abnormalities on different sides represent that the assembly depth of the connection structure corresponding to two opposite vertices of the rectangular surface is greater than a predetermined depth threshold or less than the predetermined depth threshold. According to the relative positional relationship between the two target areas, it can be automatically determined whether the assembly abnormality occurs on the same side or on different sides, so as to facilitate the subsequent repair of the protective cover with assembly abnormality.
[0055] Specifically, the different-side assembly anomaly may be that the connection structures of two vertices corresponding to the two first inner angles are assembled too deeply, or the connection structures of the other two vertices are assembled too shallowly.
[0056] According to some further exemplary embodiments of the present application, Figure 7As shown, after determining that the protective cover is assembled abnormally, the method also includes: when there are two adjacent target areas, obtaining the angle between the first vector and the target axis, when the two target areas are divided by the x-axis, such as area 1 and area 4, the target axis is the x-axis, and when the two target areas are divided by the y-axis, such as area 1 and area 2, the target axis is the y-axis; when the angle between the first vector and the target axis is less than or equal to a fourth threshold, determining that the protective cover has a first same-side assembly abnormality, the first same-side assembly abnormality characterizing that the assembly depth of the connection structure corresponding to two adjacent vertices of the rectangular surface is greater than a predetermined depth threshold or less than the predetermined depth threshold; when the angle between the first vector and the target axis is greater than the fourth threshold and less than or equal to the fifth threshold, determining that the protective cover has a second same-side assembly abnormality, the second same-side assembly abnormality characterizing that the assembly depth of one of the connection structures corresponding to two adjacent vertices of the rectangular surface is greater than the predetermined depth threshold, and the assembly depth of the other connection structure is less than the predetermined depth threshold.
[0057] In the embodiment, the degree of deformation of the hollow holes in the two target areas is basically the same, which is manifested as the angle between the diagonal of the deformation angle corresponding to the hollow holes and the x-axis or y-axis is basically the same, that is, the angle between the fitting straight line after the slope is added and averaged and the x-axis or y-axis is small, which indicates that the two adjacent areas have both abnormalities of over-deep assembly or over-shallow assembly, and the assembly depths of the two connection structures are basically the same. If the angle between the fitting straight line after the slope is added and averaged and the x-axis or y-axis is large, it means that the assembly depths on the same side are inconsistent, and it can be automatically determined whether the assembly abnormality on the same side is equal depth or unequal depth, which is convenient for the subsequent repair of the protective cover with abnormal assembly.
[0058] It should be noted that, in the embodiment, the first vector is obtained by fitting the average value of the diagonal slope of the second inner angle of the second target contour in two adjacent target areas.
[0059] The interior angle of the present application can be obtained by image angle detection, or by any other suitable angle reading method.
[0060] Optionally, extracting the protective cover contour and all hollow hole contours from the protective cover image includes: binarizing the protective cover image to obtain a processed image; and performing edge extraction on the processed image to obtain the protective cover contour and each hollow hole contour. In this embodiment, binarization is performed before edge extraction, which ensures that the extracted protective cover contour and hollow hole contour are clear and accurate, providing relatively accurate contour data for subsequent angle detection.
[0061] In order to enable those skilled in the art to more clearly understand the technical solution of the present application, the implementation process of the assembly detection method of the protective cover of the present application will be described in detail below in combination with specific embodiments.
[0062] This embodiment relates to a specific method for detecting the assembly of a protective cover. Figure 8 As shown, the following steps are included:
[0063] Step S1: Take an image of the air conditioner protective cover being stapled:
[0064] The air conditioner protective cover is sent into the camera box through a conveyor belt. The device inside the box automatically adjusts the protective cover to a suitable position and fixes it. Then, the camera fixed on the top of the box is aimed at the protective cover to take a picture, so as to obtain a clear top view image.
[0065] Step S2: Protective cover assembly quality inspection:
[0066] Step S21, detection of protective cover contour and hollow hole parameters:
[0067] According to the protective cover image captured in step S1, parameter detection is performed on the protective cover image, and the detection process is as follows:
[0068] Step S211, dividing the protective cover image area:
[0069] In practice, the air conditioner protective cover is fixed by four screws, such as Figure 3 When the screws of the four protective cover feet 1, 2, 3, and 4 are installed too deep, the protective cover frame and the hollow holes of the protective cover will be deformed. To determine the position of the abnormal installation of the foot nails, the protective cover area can be evenly divided, that is, the deformation and number of the hollow holes in the evenly divided area can be used to locate the position of the abnormal screw installation. Figure 3 For example, taking the center of the rectangle of the top view of the protective cover as the origin, draw perpendicular lines to each frame line, establish a rectangular coordinate system, and divide the protective cover area into areas 1, 2, 3, and 4;
[0070] Step S212: hollow hole parameter detection:
[0071] When the foot nails of the protective cover are abnormally assembled (too deep or too shallow), the four feet of the air conditioner protective cover have different tensile forces on the panel, which will cause the protective cover frame to deform, and the hollow hole of the protective cover will also deform. In the actual air conditioner assembly, the screws will generally have too much assembly force, which will cause the right angle of the hollow hole near the foot nail to become an obtuse angle. The closer to the foot nail, the larger the obtuse angle;
[0072] by Figure 5For example, the hollow hole A of the protective cover is a hollow hole that produces obtuse deformation. According to the image processing technology, the protective cover image is firstly binarized and contour extracted, and then angle detection is used to detect all the hollow holes with obtuse angles. In the actual detection, in order to save the amount of calculation, the N largest obtuse hollow holes can be selected. Assuming that N=5, the top 5 hollow holes with the largest obtuse angles are selected. N can be determined according to the actual production.
[0073] Step S22: Inspection of assembly quality of protective cover foot nails:
[0074] According to the image processing and parameter detection in step S21, the assembly quality detection of the protective cover foot spikes is performed. According to the actual assembly situation, when the foot spikes are assembled abnormally, the protective cover frame will be deformed. In order to ensure that the detection result of the abnormal assembly of the foot spikes is more accurate, according to the obtuse angle characteristics of the hollow holes, the deeper the foot spikes are assembled, the larger the obtuse angle is, and the area where the obtuse angle hollow holes are located, the deeper the foot spikes are assembled, and the more obtuse angle hollow holes are located in the area. At the same time, according to the diagonal direction of the hollow holes, the diagonal basis can be taken as the diagonal at the angle where the obtuse angle is located, and the assembly abnormality of the foot spikes can be further determined.
[0075] Step S221, non-same-side foot nail assembly abnormality detection:
[0076] According to the logic, Figure 6 For example, the shape of the outer frame of the protective cover is first detected. According to the angle detection of image processing, it is detected that the protective cover feet 1 and 3 are obtuse angles, and 1 and 3 are not on the same side of the protective cover feet, which means that 1 and 3 may have abnormal nailing too deep. Then, according to the logic of taking N in step S212, it is assumed that the number of N is 6, and the hollow holes detected are A, B, C, D, E, and F. At this time, A, B, and C fall in area 1, and D, E, and F fall in area 3. At this time, the diagonal lines of the obtuse hollow holes are taken. For example, at this time, 6 line segments will be taken for the obtuse angles, which are Figure 6 The diagonals a, b, c, d, e, and f in the figure are averaged, and the straight line where the average slope is located is fitted. According to the rectangular coordinate system recommended in S1, when the angle where the slope is located meets the angle range of area 1 and area 3, that is, the protective cover feet 1 and 3 are obtuse angles, the largest N hollow holes are obtuse angles in areas 1 and 3, and the fitted hollow hole diagonal slope meets the range of areas 1 and 3, it means that the protective cover feet 1 and 3 have nailing too deep abnormalities;
[0077] S222, same-side foot nail assembly abnormality detection:
[0078] According to the logic, Figure 7For example, the shape of the outer frame of the protective cover is first detected. According to the angle detection of image processing, it is detected that the feet 1 and 4 of the protective cover are obtuse angles, and 1 and 4 are the feet of the protective cover on the same side, which means that 1 and 4 may have abnormal nailing too deep. Then, according to the logic of taking N in step S212, it is assumed that the number of N is 6, and the hollow holes detected are A, B, C, G, H, and I. At this time, A, B, and C fall in area 1, and G, H, and I fall in area 4. At this time, the diagonal lines of the obtuse hollow holes are taken. For example, if the obtuse angle is 6, 6 line segments will be taken, which are respectively Figure 7 The diagonals a, b, c, g, h, and i in the equation are averaged, and the straight line with the average slope is fitted. The subsequent analysis is as follows:
[0079] S2221, The assembly depth of the foot nails on the same side is abnormally consistent:
[0080] According to the rectangular coordinate system established in step S1, if the assembly depth of the foot nails on the same side is consistent, the degree of deformation of the hollow holes in the corresponding area is basically the same, which is manifested as the angle between the diagonal of the obtuse angle of the deformation corresponding to the hollow hole and the x-axis is basically the same, that is, the angle between the fitting straight line after the slope is added and the x-axis is small. Figure 7 The performance in is that the fitting slope is within the angle α; that is, when the angle where the slope is located is within the angle range α formed by area 1 and area 4, that is, the protection cover feet 1 and 4 are obtuse angles, the largest N hollow holes are obtuse angles in areas 1 and 4, and the fitted hollow hole diagonal slope satisfies the range α formed by areas 1 and 4, it means that the protection cover feet 1 and 4 have the abnormality of being nailed too deep at the same time, and the assembly depths of the two nails are basically the same.
[0081] S2222, The assembly depth of the foot nails on the same side is abnormally inconsistent:
[0082] If the installation depths of the foot nails on the same side are inconsistent, then according to the above principle, the fitting straight line will fall on the side close to the foot nail with deeper installation depth, specifically: Figure 7 As shown in the figure, when the angle of the slope is not within the angle α, it means that the installation depth of the foot nails of the protective cover feet 1 and 4 is quite different. If it is within the angle β, it means that the installation depth of foot nail 1 is deeper, and if it is within the angle γ, it means that the installation depth of foot nail 4 is deeper. That is, the installation depth of the foot nails on the same side is abnormal, and the degree of abnormality is inconsistent.
[0083] Step S3: Through the performance tests of the protective cover assembly in step S2, when the abnormal phenomena described in step S2 occur, it means that there is an abnormality in the assembly of the protective cover, and according to the judgment logic in step S2, the abnormal situation of the protective cover is determined.
[0084] It should be noted that the steps shown in the flowcharts of the accompanying drawings can be executed in a computer system such as a set of computer executable instructions, and that, although a logical order is shown in the flowcharts, in some cases, the steps shown or described can be executed in an order different from that shown here.
[0085] The embodiment of the present application also provides an assembly detection device for a protective cover. It should be noted that the assembly detection device for the protective cover of the embodiment of the present application can be used to execute the assembly detection method for the protective cover provided in the embodiment of the present application. The device is used to implement the embodiments and preferred implementations, and the descriptions that have been made will not be repeated. As used below, the term "module" can implement a combination of software and / or hardware for a predetermined function. Although the devices described in the following embodiments are preferably implemented in software, the implementation of hardware, or a combination of software and hardware, is also possible and conceivable.
[0086] The following is an introduction to the assembly detection device for the protective cover provided in the embodiment of the present application.
[0087] Figure 2 The schematic diagram of the structure of a protective cover of the present application is shown as an example. Figure 2 As shown, the surface of the protective cover away from the base is a rectangular surface. Figure 3 for Figure 2 A top view of Figure 2 and Figure 3 As shown, the protective cover is located on a base (not shown in the figure), and the surface of the protective cover away from the base is a polygonal surface 10, and the polygonal surface 10 has a plurality of hollow holes 11, and the shape of the hollow holes 11 is the same as that of the polygonal surface 10. Fig. 9 Schematic diagram of an assembly detection device for a protective cover according to an embodiment of the present application. Fig. 9 As shown, the device comprises:
[0088] An acquisition unit 20 is used to acquire an image of the protective cover when the protective cover is connected to the base via a plurality of connection structures, wherein the image of the protective cover is an image acquired when a lens of an image acquisition device faces the polygonal surface;
[0089] Specifically, Figure 2 and Figure 3As shown, the protective cover is assembled to the base through the connecting structure 12. The surface of the protective cover close to the image acquisition device and parallel to the lens of the image acquisition device is the polygonal surface 10. The connecting structure 12 is located at the vertex of the surface of the protective cover opposite to the polygonal surface 10. When the side of the protective cover is perpendicular to the polygonal surface, the orthographic projections of the multiple connecting structures 12 on the base overlap with the orthographic projections of the vertices of the polygonal surface 10 on the base. Generally, the number of the connecting structures 12 is the same as the number of vertices of the polygonal surface 10. Of course, the number of the connecting structures 12 can also be less than or greater than the number of vertices of the polygonal surface 10. The connecting structure 12 is also called a protective cover foot, which can be any suitable structure for connecting the base and the protective cover, such as a matching nut and screw structure. Before the protective cover is assembled, the polygonal surface and the hollow hole are both regular polygonal shapes. After the protective cover is assembled, if there is an assembly abnormality, the assembly depth of the connecting structure is too large or too small, which will cause deformation of the polygonal surface and the hollow hole.
[0090] an extraction unit 21, configured to extract a protective cover contour 13 and all hollow hole contours 14 from the protective cover image, and determine whether there is a first inner angle and a first target contour according to the protective cover contour 13 and each of the hollow hole contours 14, wherein the first inner angle is an inner angle of the protective cover contour greater than a first threshold, and the first target contour is a hollow hole contour having an inner angle greater than a second threshold;
[0091] Specifically, the protective cover contour is the contour of the polygonal surface. Those skilled in the art can set the specific values of the first threshold and the second threshold according to actual conditions, and meet the following conditions: the first threshold is greater than the inner angle corresponding to the protective cover contour before assembly, such as the inner angle of the protective cover contour is 90° before assembly, then the first threshold is greater than 90°; if the inner angle of the protective cover contour is 120° before assembly, then the first threshold is greater than 120°; similarly, the second threshold is greater than the inner angle corresponding to the hollow hole contour before assembly.
[0092] A determination unit 22 is used to determine whether the protective cover is abnormally assembled based on at least the relative position relationship between the first inner angle and the first target contour when the first inner angle and the first target contour exist, and to determine that the protective cover is abnormally assembled at least when the first target contour is located in the area where the first inner angle is located, and the polygonal surface includes a plurality of areas corresponding one-to-one to the inner angles of the polygonal surface, and each of the areas includes a corresponding inner angle of the polygonal surface and a plurality of the hollow holes.
[0093] Specifically, the polygonal surface can be divided into a plurality of regions according to the inner angles, so that each region includes an inner angle and a plurality of hollow holes, that is, the regions correspond to the connection structures one by one.
[0094] According to the embodiment, when the protective cover is connected to the base through multiple connecting structures, the acquisition unit acquires a top view image of the polygonal surface of the protective cover away from the base to obtain a protective cover image, in which the connecting structure overlaps with the vertex, and the polygonal surface has multiple hollow holes with the same shape as the polygonal surface; the extraction unit extracts the protective cover contour and the hollow hole contour from the protective cover image, and determines whether the protective cover contour has a first internal angle greater than a first threshold, and determines whether there is a first target contour with an internal angle greater than a second threshold among the multiple hollow hole contours; the determination unit determines that the protective cover is abnormally assembled when the first internal angle and the first target contour exist, and at least the first target contour is located in the area where the first internal angle is located, and the polygonal surface includes multiple areas, each of which includes an internal angle and multiple hollow holes. The present application is based on image processing technology, and comprehensively considers the deformation of the inner corner of the protective cover after assembly, the deformation of the inner corner of the hollow hole after assembly, and the relative position relationship between the hollow hole whose inner corner deformation is greater than a threshold and the inner corner whose deformation is greater than a threshold, to determine whether the assembly quality of the protective cover is abnormal, thereby realizing automatic detection of the assembly quality of the protective cover, ensuring that the detection result is relatively accurate and reliable, and solving the problem of manual detection of the assembly quality of the protective cover in the prior art, which is prone to missed detection and false detection. The present application can promptly discover abnormal assembly of the protective cover, prevent the backflow of the abnormally assembled protective cover, solve the problem of protective cover assembly quality, and liberate manpower.
[0095] The assembly detection device of the protective cover includes a processor and a memory, wherein the acquisition unit, the extraction unit, and the determination unit are stored in the memory as program units, and the processor executes the program units stored in the memory to realize corresponding functions. The modules are all located in the same processor; or, the modules are located in different processors in any combination.
[0096] The processor includes a kernel, which retrieves the corresponding program unit from the memory. One or more kernels can be provided, and the technical problem of easy misdetection and missed detection in manual detection of the assembly quality of the protective cover in the prior art can be at least solved by adjusting the kernel parameters.
[0097] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM, and the memory includes at least one memory chip.
[0098] An embodiment of the present invention provides a computer-readable storage medium, wherein the computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the assembly detection method of the protective cover.
[0099] Specifically, the assembly detection method of the protective cover includes:
[0100] Step S201, when the protective cover is connected to the base through a plurality of connection structures, acquiring an image of the protective cover, wherein the image of the protective cover is an image acquired when a lens of an image acquisition device faces the polygonal surface;
[0101] Specifically, Figure 2 and Figure 3 As shown, the protective cover is assembled to the base through the connecting structure 12. The surface of the protective cover close to the image acquisition device and parallel to the lens of the image acquisition device is the polygonal surface 10. The connecting structure 12 is located at the vertex of the surface of the protective cover opposite to the polygonal surface 10. When the side of the protective cover is perpendicular to the polygonal surface, the orthographic projections of the multiple connecting structures 12 on the base overlap with the orthographic projections of the vertices of the polygonal surface 10 on the base. Generally, the number of the connecting structures 12 is the same as the number of vertices of the polygonal surface 10. Of course, the number of the connecting structures 12 can also be less than or greater than the number of vertices of the polygonal surface 10. The connecting structure 12 is also called a protective cover foot, which can be any suitable structure for connecting the base and the protective cover, such as a matching nut and screw structure. Before the protective cover is assembled, the polygonal surface and the hollow hole are both regular polygonal shapes. After the protective cover is assembled, if there is an assembly abnormality, the assembly depth of the connecting structure is too large or too small, which will cause deformation of the polygonal surface and the hollow hole.
[0102] Step S202, extracting a protective cover contour 13 and all hollow hole contours 14 from the protective cover image, and determining whether there is a first inner angle and a first target contour according to the protective cover contour 13 and each of the hollow hole contours 14, wherein the first inner angle is an inner angle of the protective cover contour greater than a first threshold, and the first target contour is the hollow hole contour having an inner angle greater than a second threshold;
[0103] Specifically, the protective cover contour is the contour of the polygonal surface. Those skilled in the art can set the specific values of the first threshold and the second threshold according to actual conditions, and meet the following conditions: the first threshold is greater than the inner angle corresponding to the protective cover contour before assembly, such as the inner angle of the protective cover contour is 90° before assembly, then the first threshold is greater than 90°; if the inner angle of the protective cover contour is 120° before assembly, then the first threshold is greater than 120°; similarly, the second threshold is greater than the inner angle corresponding to the hollow hole contour before assembly.
[0104] Step S203, in the presence of the first inner angle and the first target contour, determine whether the protective cover is abnormally assembled based at least on the relative positional relationship between the first inner angle and the first target contour, and determine that the protective cover is abnormally assembled at least when the first target contour is located in the area where the first inner angle is located, and the polygonal surface includes a plurality of areas corresponding one-to-one to the inner angles of the polygonal surface, and each of the areas includes a corresponding inner angle of the polygonal surface and a plurality of the hollow holes.
[0105] Specifically, the polygonal surface can be divided into a plurality of regions according to the inner angles, so that each region includes an inner angle and a plurality of hollow holes, that is, the regions correspond to the connection structures one by one.
[0106] An embodiment of the present invention provides a processor, which is used to run a program, wherein the assembly detection method of the protection cover is executed when the program is run.
[0107] Specifically, the assembly detection method of the protective cover includes:
[0108] Step S201, when the protective cover is connected to the base through a plurality of connection structures, acquiring an image of the protective cover, wherein the image of the protective cover is an image acquired when a lens of an image acquisition device faces the polygonal surface;
[0109] Specifically, Figure 2 and Figure 3As shown, the protective cover is assembled to the base through the connecting structure 12. The surface of the protective cover close to the image acquisition device and parallel to the lens of the image acquisition device is the polygonal surface 10. The connecting structure 12 is located at the vertex of the surface of the protective cover opposite to the polygonal surface 10. When the side of the protective cover is perpendicular to the polygonal surface, the orthographic projections of the multiple connecting structures 12 on the base overlap with the orthographic projections of the vertices of the polygonal surface 10 on the base. Generally, the number of the connecting structures 12 is the same as the number of vertices of the polygonal surface 10. Of course, the number of the connecting structures 12 can also be less than or greater than the number of vertices of the polygonal surface 10. The connecting structure 12 is also called a protective cover foot, which can be any suitable structure for connecting the base and the protective cover, such as a matching nut and screw structure. Before the protective cover is assembled, the polygonal surface and the hollow hole are both regular polygonal shapes. After the protective cover is assembled, if there is an assembly abnormality, the assembly depth of the connecting structure is too large or too small, which will cause deformation of the polygonal surface and the hollow hole.
[0110] Step S202, extracting a protective cover contour 13 and all hollow hole contours 14 from the protective cover image, and determining whether there is a first inner angle and a first target contour according to the protective cover contour 13 and each of the hollow hole contours 14, wherein the first inner angle is an inner angle of the protective cover contour greater than a first threshold, and the first target contour is the hollow hole contour having an inner angle greater than a second threshold;
[0111] Specifically, the protective cover contour is the contour of the polygonal surface. Those skilled in the art can set the specific values of the first threshold and the second threshold according to actual conditions, and meet the following conditions: the first threshold is greater than the inner angle corresponding to the protective cover contour before assembly, such as the inner angle of the protective cover contour is 90° before assembly, then the first threshold is greater than 90°; if the inner angle of the protective cover contour is 120° before assembly, then the first threshold is greater than 120°; similarly, the second threshold is greater than the inner angle corresponding to the hollow hole contour before assembly.
[0112] Step S203, in the presence of the first inner angle and the first target contour, determine whether the protective cover is abnormally assembled based at least on the relative positional relationship between the first inner angle and the first target contour, and determine that the protective cover is abnormally assembled at least when the first target contour is located in the area where the first inner angle is located, and the polygonal surface includes a plurality of areas corresponding one-to-one to the inner angles of the polygonal surface, and each of the areas includes a corresponding inner angle of the polygonal surface and a plurality of the hollow holes.
[0113] Specifically, the polygonal surface can be divided into a plurality of regions according to the inner angles, so that each region includes an inner angle and a plurality of hollow holes, that is, the regions correspond to the connection structures one by one.
[0114] An embodiment of the present invention provides a device, the device including a processor, a memory, and a program stored in the memory and executable on the processor, and when the processor executes the program, at least the following steps are implemented:
[0115] Step S201, when the protective cover is connected to the base through a plurality of connection structures, acquiring an image of the protective cover, wherein the image of the protective cover is an image acquired when a lens of an image acquisition device faces the polygonal surface;
[0116] Step S202, extracting a protective cover contour 13 and all hollow hole contours 14 from the protective cover image, and determining whether there is a first inner angle and a first target contour according to the protective cover contour 13 and each of the hollow hole contours 14, wherein the first inner angle is an inner angle of the protective cover contour greater than a first threshold, and the first target contour is the hollow hole contour having an inner angle greater than a second threshold;
[0117] Step S203, in the presence of the first inner angle and the first target contour, determine whether the protective cover is abnormally assembled based at least on the relative positional relationship between the first inner angle and the first target contour, and determine that the protective cover is abnormally assembled at least when the first target contour is located in the area where the first inner angle is located, and the polygonal surface includes a plurality of areas corresponding one-to-one to the inner angles of the polygonal surface, and each of the areas includes a corresponding inner angle of the polygonal surface and a plurality of the hollow holes.
[0118] The devices in this article can be servers, PCs, PADs, mobile phones, etc.
[0119] The present application also provides a computer program product, including computer instructions, which, when executed by a processor, implement at least the following method steps:
[0120] Step S201, when the protective cover is connected to the base through a plurality of connection structures, acquiring an image of the protective cover, wherein the image of the protective cover is an image acquired when a lens of an image acquisition device faces the polygonal surface;
[0121] Step S202, extracting a protective cover contour 13 and all hollow hole contours 14 from the protective cover image, and determining whether there is a first inner angle and a first target contour according to the protective cover contour 13 and each of the hollow hole contours 14, wherein the first inner angle is an inner angle of the protective cover contour greater than a first threshold, and the first target contour is the hollow hole contour having an inner angle greater than a second threshold;
[0122] Step S203, in the presence of the first inner angle and the first target contour, determine whether the protective cover is abnormally assembled based at least on the relative positional relationship between the first inner angle and the first target contour, and determine that the protective cover is abnormally assembled at least when the first target contour is located in the area where the first inner angle is located, and the polygonal surface includes a plurality of areas corresponding one-to-one to the inner angles of the polygonal surface, and each of the areas includes a corresponding inner angle of the polygonal surface and a plurality of the hollow holes.
[0123] An embodiment of the present application also provides an air conditioner, comprising: an air conditioner indoor unit, comprising a base and an indoor unit body located on the base; a protective cover, located on the base and the cover is arranged on the indoor unit body, the surface of the protective cover away from the base is a polygonal surface, the polygonal surface has a plurality of hollow holes, the shape of the hollow holes is the same as the shape of the polygonal surface, and the protective cover is connected to the base via a plurality of connecting structures; an assembly detector, comprising one or more processors, a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and the one or more programs include methods for executing any one of the described methods.
[0124] Obviously, those skilled in the art should understand that the modules or steps of the present invention described above can be implemented by a general-purpose computing device, they can be concentrated on a single computing device, or distributed on a network composed of multiple computing devices, they can be implemented by a program code executable by a computing device, so that they can be stored in a storage device and executed by the computing device, and in some cases, the steps shown or described can be executed in a different order than herein, or they can be made into individual integrated circuit modules, or multiple modules or steps therein can be made into a single integrated circuit module for implementation. Thus, the present invention is not limited to any specific combination of hardware and software.
[0125] Those skilled in the art will appreciate that the embodiments of the present application may be provided as methods, systems, or computer program products. Therefore, the present application may adopt the form of a complete hardware embodiment, a complete software embodiment, or an embodiment combining software and hardware. Moreover, the present application may adopt the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program codes.
[0126] The present application is described with reference to the flowcharts and / or block diagrams of the methods, devices (systems), and computer program products according to the embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of the processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor, or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.
[0127] These computer program instructions may also be stored in a computer-readable memory capable of directing a computer or other programmable data processing device to operate in a specific manner, so that the instructions stored in the computer-readable memory produce an article of manufacture comprising an instruction device, which implements the process Figure 1 A process or multiple processes and / or boxes Figure 1 A function specified in one or more boxes.
[0128] These computer program instructions can also be loaded onto a computer or other programmable data processing device so that a series of operating steps are executed on the computer or other programmable device to produce a computer-implemented process, thereby providing instructions for implementing the process. Figure 1 A process or multiple processes and / or boxes Figure 1 The steps for the functions specified in one or more boxes.
[0129] In a typical configuration, a computing device includes one or more processors (CPU), input / output interfaces, network interfaces, and memory.
[0130] The memory may include non-permanent memory in a computer-readable medium, random access memory (RAM) and / or non-volatile memory in the form of read-only memory (ROM) or flash RAM. The memory is an example of a computer-readable medium.
[0131] Computer readable media include permanent and non-permanent, removable and non-removable media that can be implemented by any method or technology to store information. Information can be computer readable instructions, data structures, program modules or other data. Examples of computer storage media include, but are not limited to, phase change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technology, compact disk read-only memory (CD-ROM), digital versatile disk (DVD) or other optical storage, magnetic cassettes, magnetic tape disk storage or other magnetic storage devices or any other non-transmission media that can be used to store information that can be accessed by a computing device. As defined herein, computer readable media does not include temporary computer readable media (transitory media), such as modulated data signals and carrier waves.
[0132] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device including a series of elements includes not only those elements, but also other elements not explicitly listed, or also includes elements inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device including the elements.
[0133] The above description is only the preferred embodiment of the present application and is not intended to limit the present application. For those skilled in the art, the present application may have various modifications and variations. Any modification, equivalent replacement, improvement, etc. made within the spirit and principle of the present application shall be included in the protection scope of the present application.
Claims
1. A method for detecting an assembly of a protective cover, characterized in that: The protective cover is located on the base, the surface of the protective cover away from the base is a polygonal surface, the polygonal surface has a plurality of hollow holes, and the shape of the hollow holes is the same as the shape of the polygonal surface, and the method includes: When the protective cover is connected to the base through a plurality of connection structures, an image of the protective cover is acquired, wherein the image of the protective cover is acquired when a lens of an image acquisition device faces the polygonal surface; Extracting a protective cover contour and all hollow hole contours from the protective cover image, and determining whether there is a first inner angle and a first target contour according to the protective cover contour and each of the hollow hole contours, wherein the first inner angle is an inner angle of the protective cover contour greater than a first threshold, the first target contour is the hollow hole contour having an inner angle greater than a second threshold, and the protective cover contour is the contour of the polygonal surface; In the presence of the first inner angle and the first target contour, whether the protective cover is abnormally assembled is determined at least based on the relative positional relationship between the first inner angle and the first target contour, and at least in the case where the first target contour is located in the area where the first inner angle is located, the protective cover is determined to be abnormally assembled, and the polygonal surface includes a plurality of areas corresponding one-to-one to the inner angles of the polygonal surface, and each of the areas includes a corresponding inner angle of the polygonal surface and a plurality of the hollow holes.
2. The method according to claim 1, characterized in that The plurality of regions are obtained by equally dividing the polygonal surface, the region where the first inner angle is located is the target region, the inner angle in the first target contour that is greater than the second threshold is the second inner angle, and when there are a plurality of first target contours, determining whether the protective cover is abnormally assembled at least based on the relative positional relationship between the first inner angle and the first target contour includes: Determine n second target contours from a plurality of the first target contours, the second inner angles of the n second target contours being greater than the second inner angles of the remaining first target contours, and n≥1 and being an integer; Determining whether all of the n second target contours are located in the target area; When n second target contours are all located in the target area, obtaining a first vector pointing to a vertex corresponding to the second inner angle of the second target contour and parallel to a diagonal line of the second inner angle of the second target contour, and obtaining a second vector pointing to a vertex corresponding to the first inner angle and parallel to a diagonal line of the first inner angle, and determining whether an angle between the first vector and the second vector is less than a third threshold; When the angle between the first vector and the second vector is smaller than the third threshold, it is determined that the protective cover is assembled abnormally.
3. The method according to claim 2, characterized in that In the case of n>1, obtaining a first vector pointing to a vertex corresponding to the second inner angle of the second target contour and parallel to a diagonal line of the second inner angle of the second target contour includes: Calculating an average value of the diagonal slopes of the n second inner angles of the second target contours; The straight line whose slope is the average value is obtained by fitting; A vector pointing to the vertex corresponding to the second inner angle of the second target contour and parallel to the straight line is determined as the first vector.
4. The method according to claim 2, characterized in that: The polygonal surface is a rectangular surface, and the plurality of regions are divided by an x-axis passing through the center of the rectangular surface and a y-axis passing through the center and perpendicular to the x-axis, wherein the x-axis is perpendicular to two opposite surfaces of the rectangular surface.
5. The method according to claim 4, characterized in that After determining that the protective cover is assembled abnormally, the method further includes: When there are two non-adjacent target areas, it is determined that the protective cover has different-side assembly anomalies, and the different-side assembly anomalies indicate that the assembly depth of the connection structure corresponding to two opposite vertices of the rectangular surface is greater than a predetermined depth threshold or less than the predetermined depth threshold.
6. The method according to claim 4, characterized in that After determining that the protective cover is assembled abnormally, the method further includes: When there are two adjacent target areas, obtaining the angle between the first vector and the target axis, when the two target areas are divided by the x-axis, the target axis is the x-axis, and when the two target areas are divided by the y-axis, the target axis is the y-axis; When the angle between the first vector and the target axis is less than or equal to a fourth threshold, it is determined that the protective cover has a first same-side assembly abnormality, and the first same-side assembly abnormality indicates that the assembly depth of the connection structure corresponding to two adjacent vertices of the rectangular surface is greater than a predetermined depth threshold or less than the predetermined depth threshold; When the angle between the first vector and the target axis is greater than the fourth threshold and less than or equal to the fifth threshold, it is determined that the protective cover has a second same-side assembly anomaly, and the second same-side assembly anomaly indicates that the assembly depth of one of the connecting structures corresponding to two adjacent vertices of the rectangular surface is greater than the predetermined depth threshold, and the assembly depth of the other connecting structure is less than the predetermined depth threshold.
7. The method according to any one of claims 1 to 6, characterized in that Extracting the protective cover contour and all hollow hole contours from the protective cover image, including: Performing binarization processing on the protective cover image to obtain a processed image; Edge extraction is performed on the processed image to obtain the contour of the protective cover and the contours of each hollow hole.
8. A protective cover assembly detection device, characterized in that: The protective cover is located on the base, the surface of the protective cover away from the base is a polygonal surface, the polygonal surface has a plurality of hollow holes, the shape of the hollow holes is the same as the shape of the polygonal surface, and the device includes: An acquisition unit, configured to acquire an image of the protective cover when the protective cover is connected to the base via a plurality of connection structures, wherein the image of the protective cover is an image acquired when a lens of an image acquisition device faces the polygonal surface; an extraction unit, configured to extract a protective cover contour and all hollow hole contours from the protective cover image, and determine whether a first inner angle and a first target contour exist according to the protective cover contour and each of the hollow hole contours, wherein the first inner angle is an inner angle of the protective cover contour greater than a first threshold, the first target contour is the hollow hole contour having an inner angle greater than a second threshold, and the protective cover contour is a contour of the polygonal surface; A determination unit is used to determine whether the protective cover is abnormally assembled based on at least the relative position relationship between the first inner angle and the first target contour when the first inner angle and the first target contour exist, and to determine that the protective cover is abnormally assembled at least when the first target contour is located in the area where the first inner angle is located, and the polygonal surface includes a plurality of areas corresponding one-to-one to the inner angles of the polygonal surface, and each of the areas includes a corresponding inner angle of the polygonal surface and a plurality of the hollow holes.
9. A computer-readable storage medium, characterized in that: The computer-readable storage medium includes a stored program, wherein when the program is executed, the device where the computer-readable storage medium is located is controlled to execute the method according to any one of claims 1 to 7.
10. An air conditioner, characterized in that: include: An air conditioner indoor unit, comprising a base and an indoor unit body located on the base; A protective cover is located on the base and is provided on the inner machine body, the surface of the protective cover away from the base is a polygonal surface, the polygonal surface has a plurality of hollow holes, the shape of the hollow holes is the same as the shape of the polygonal surface, and the protective cover is connected to the base through a plurality of connection structures; An assembly detector comprising one or more processors, a memory and one or more programs, wherein the one or more programs are stored in the memory and are configured to be executed by the one or more processors, and the one or more programs include methods for executing any one of claims 1 to 7.
