Stain cleaning methods, devices and electronic equipment

By combining ultrasonic cleaning with interference ripple pattern grouping technology, stains on the camera surface glass are cleaned in layers, solving the problem that existing technologies can only clean stains when there is water. This achieves efficient cleaning in a dry state and avoids damage to the glass.

CN117943367BActive Publication Date: 2026-06-30ZHEJIANG UNIVIEW TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
ZHEJIANG UNIVIEW TECH CO LTD
Filing Date
2022-10-28
Publication Date
2026-06-30

Smart Images

  • Figure CN117943367B_ABST
    Figure CN117943367B_ABST
Patent Text Reader

Abstract

This invention provides a stain cleaning method, apparatus, and electronic device. The method includes: when multiple stains are detected in an object to be treated, constructing an interference waveform diagram corresponding to the multiple stains; grouping the multiple stains according to the interference waveform diagram to obtain multiple groups; and cleaning the multiple stains based on the multiple groups, thereby achieving hierarchical cleaning of multiple stains and effectively improving the stain cleaning effect.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This invention relates to the field of equipment stain cleaning technology, and more particularly to a stain cleaning method, apparatus and electronic device. Background Technology

[0002] Camera lenses or surface glass are usually exposed to the air and are easily stained, which can affect the camera's shooting.

[0003] Taking the camera's surface glass as an example, to clean stains on the surface glass, a rain sensor and a rain-sensing wiper are usually added to it. When it rains, the rain sensor automatically detects the amount of rain on the camera's surface glass and feeds the detected amount of rain back to the main control module. The main control module then controls the speed of the rain-sensing wiper based on the received rainfall amount to clean the stains on the surface glass.

[0004] However, the above method can only clean the camera surface glass when there is water. Therefore, how to effectively clean the stains on the camera surface glass is a problem that urgently needs to be solved by those skilled in the art. Summary of the Invention

[0005] This application provides a stain cleaning method, apparatus, and electronic device that can perform layered cleaning of multiple stains, thereby effectively improving the stain cleaning effect.

[0006] In a first aspect, embodiments of this application provide a stain removal method, which may include:

[0007] If multiple stains are detected in the object to be processed, an interference ripple pattern corresponding to the multiple stains is constructed.

[0008] The multiple stains are grouped according to the interference ripple pattern to obtain multiple groups.

[0009] Based on the multiple groups, the multiple stains are cleaned.

[0010] A stain removal method according to an embodiment of this application, wherein the cleaning of the plurality of stains based on the plurality of groups includes:

[0011] For each group, the total weight corresponding to the group is determined based on the area where the stain is located and the number of stains included in the group.

[0012] The stains in each group are cleaned sequentially according to the total weight of each group from high to low.

[0013] According to an embodiment of this application, a stain removal method is provided, wherein the types of areas include regions of interest, key regions, and other regions. The step of determining the total weight corresponding to each group based on the location and quantity of stains included in the group includes:

[0014] Based on the areas where the stains are located in the group, the number of first stains, the number of second stains, and the number of third stains are determined respectively; wherein, the area where the first stain is located is the region of interest, the area where the second stain is located is the critical region, and the area where the first stain is located is the other region.

[0015] The weights corresponding to the regions of interest are respectively determined as follows: the first product of the weights corresponding to the regions of interest and the number of the first stains; the second product of the weights corresponding to the key regions and the number of the second stains; and the third product of the weights corresponding to the other regions and the number of the third stains.

[0016] The sum of the first product, the second product, and the third product is determined as the total weight corresponding to the group.

[0017] According to an embodiment of this application, a stain removal method is provided, wherein cleaning the stains in each group includes:

[0018] For each group, if the group includes multiple fourth stains, the priority of the area where each of the multiple fourth stains is located is determined.

[0019] The multiple fourth stains are cleaned according to the priority of the area where each of the multiple fourth stains is located.

[0020] According to an embodiment of this application, a stain removal method is provided, wherein the cleaning of the plurality of fourth stains is performed according to the priority of the respective areas where the fourth stains are located, including:

[0021] If at least two of the fifth stains have the same priority in their respective areas, then the height and / or size of each of the at least two fifth stains shall be determined.

[0022] Clean the at least two fifth stains sequentially based on their respective heights and / or sizes.

[0023] According to an embodiment of this application, a stain removal method is provided, wherein the at least two fifth stains are cleaned sequentially based on their respective height and / or size, including:

[0024] The at least two fifth stains are cleaned according to their respective heights from highest to lowest; if at least two sixth stains are at the same height among the at least two fifth stains, then the at least two sixth stains are cleaned according to their respective stains from largest to smallest.

[0025] or,

[0026] The at least two fifth stains are cleaned according to the order of their respective stains from largest to smallest; if at least two of the at least two fifth stains correspond to the same size seventh stains, then the at least two seventh stains are cleaned according to the order of their respective heights from highest to lowest.

[0027] Secondly, embodiments of this application also provide a stain cleaning device, comprising:

[0028] The construction unit is used to construct an interference ripple pattern corresponding to the multiple stains when multiple stains are detected in the object to be processed.

[0029] A grouping unit is used to group the multiple stains according to the interference ripple pattern to obtain multiple groups.

[0030] A cleaning unit is used to clean the multiple stains based on the multiple groups.

[0031] According to an embodiment of this application, a stain cleaning device is provided, wherein the cleaning unit is specifically used to determine the total weight of each group based on the area and quantity of stains included in the group; and to clean the stains in each group sequentially according to the order of the total weights of each group from high to low.

[0032] According to an embodiment of this application, a stain cleaning device is provided, wherein the types of the areas include areas of interest, key areas, and other areas.

[0033] The cleaning unit is specifically configured to determine the number of first stains, the number of second stains, and the number of third stains based on the areas where the stains are located in the group; wherein the area where the first stain is located is the region of interest, the area where the second stain is located is the key region, and the area where the first stain is located is the other region; determine the first product of the weight corresponding to the region of interest and the number of first stains, the second product of the weight corresponding to the key region and the number of second stains, and the third product of the weight corresponding to the other region and the number of third stains; and determine the sum of the first product, the second product, and the third product as the total weight corresponding to the group.

[0034] According to an embodiment of this application, a stain cleaning device is provided, wherein the cleaning unit is specifically used to determine the priority of each area where the multiple fourth stains are located in each group, when the group includes multiple fourth stains; and to clean the multiple fourth stains according to the priority of each area where the multiple fourth stains are located.

[0035] According to an embodiment of this application, a stain cleaning device is provided, wherein the cleaning unit is specifically used to determine the height and / or size of each of the at least two fifth stains if at least two of the plurality of fourth stains have the same priority in their respective areas; and to clean the at least two fifth stains sequentially according to their respective height and / or size.

[0036] According to an embodiment of this application, a stain cleaning device is provided, wherein the cleaning unit is specifically used to clean the at least two fifth stains in descending order of their respective heights; if at least two sixth stains are at the same height among the at least two fifth stains, then the at least two sixth stains are cleaned in descending order of their respective stain sizes; or, the at least two fifth stains are cleaned in descending order of their respective stain sizes; if at least two seventh stains are of the same size among the at least two fifth stains, then the at least two seventh stains are cleaned in descending order of their respective heights.

[0037] Thirdly, embodiments of this application also provide an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the stain cleaning method as described in any of the first aspects above.

[0038] Fourthly, embodiments of this application also provide a non-transitory computer-readable storage medium having a computer program stored thereon, wherein the computer program, when executed by a processor, implements the stain cleaning method as described in any of the first aspects above.

[0039] Fifthly, embodiments of this application also provide a computer program product, including a computer program that, when executed by a processor, implements the stain cleaning method as described in any of the first aspects above.

[0040] The stain cleaning method, apparatus, and electronic device provided by this invention, when multiple stains are detected in an object to be treated, constructs an interference waveform diagram corresponding to the multiple stains; groups the multiple stains according to the interference waveform diagram to obtain multiple groups; and then cleans the multiple stains based on the multiple groups, thereby realizing hierarchical cleaning of multiple stains and effectively improving the stain cleaning effect. Attached Figure Description

[0041] To more clearly illustrate the technical solutions in this application or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0042] Figure 1 This is a schematic diagram of the deployment of an ultrasonic transducer provided in an embodiment of this application;

[0043] Figure 2 This is a schematic diagram illustrating the deployment of another ultrasonic transducer provided in an embodiment of this application;

[0044] Figure 3 A schematic flowchart illustrating a stain cleaning method provided in an embodiment of this application;

[0045] Figure 4 A schematic diagram of an interference ripple pattern constructed according to an embodiment of this application;

[0046] Figure 5 A flowchart illustrating a method for cleaning multiple stains based on multiple groups, provided in an embodiment of this application;

[0047] Figure 6 A schematic diagram of stain distribution provided for an embodiment of this application;

[0048] Figure 7 This is a schematic diagram of the structure of a stain cleaning device provided in an embodiment of this application;

[0049] Figure 8 This is a schematic diagram of the physical structure of an electronic device provided in an embodiment of this application. Detailed Implementation

[0050] To make the objectives, technical solutions, and advantages of this application clearer, the technical solutions of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some embodiments of this application, not all embodiments. Based on the embodiments of this application, all other embodiments obtained by those skilled in the art without creative effort are within the scope of protection of this application.

[0051] In the embodiments of this application, "at least one" refers to one or more, and "more than one" refers to two or more. "And / or" describes the relationship between related objects, indicating that three relationships can exist. For example, A and / or B can represent: A existing alone, A and B existing simultaneously, and B existing alone, where A and B can be singular or plural. In the textual description of this application, the character " / " generally indicates that the preceding and following related objects have an "or" relationship.

[0052] The technical solution provided in this application can be applied to equipment stain cleaning scenarios. Taking camera stain cleaning as an example, camera lenses or surface glass are usually exposed to the air and are easily stained, which can affect the camera's shooting. To clean stains on the surface glass, a rain sensor and a rain-sensing wiper are usually added to the camera's surface glass. The main control module controls the speed of the rain-sensing wiper based on the received rainfall amount to clean the stains on the surface glass.

[0053] However, the above method can only be used to clean the camera's surface glass when there is water on it. Forcing it to clean when there is no water can not only damage the surface glass, but may also make it even dirtier.

[0054] Therefore, in order to effectively clean the stains on the camera's surface glass, ultrasonic cleaning can be considered in this embodiment. Ultrasonic cleaning refers to using the strong cavitation and vibration generated by ultrasonic waves to peel off dirt from the workpiece surface, while also decomposing and emulsifying oily contaminants.

[0055] Typically, the wavelength of ultrasound is temperature- and medium-dependent. For example, at 30°C, the speed of ultrasound in air is 350 m / s. The wavelength at 40 kHz is 8.75 mm; the wavelength at 1000 kHz is 0.35 mm. At 25°C, the speed of ultrasound in a glass medium is 3980 m / s. The wavelength at 40 kHz is 99.5 mm; the wavelength at 1000 kHz is 3.98 mm.

[0056] When using ultrasonic cleaning to remove stains from the surface glass of a camera, ultrasonic transducers can be evenly deployed around the perimeter of the glass, covering either the entire rim or a portion of it. For example, for rectangular glass surfaces, the ultrasonic transducers can cover one, two, three, or four sides. See [example provided]. Figure 1 As shown, Figure 1 This is a schematic diagram illustrating the deployment of an ultrasonic transducer according to an embodiment of this application. Two ultrasonic transducers, D1 and D2, are deployed on the underside of a rectangular surface glass to clean stains on the rectangular surface glass. For a hemispherical surface glass, the ultrasonic transducer can cover half or the entire circumference of the surface glass. See, for example, [example not provided]. Figure 2 As shown, Figure 2 This is a schematic diagram of the deployment of another ultrasonic transducer provided in an embodiment of this application. Two ultrasonic transducers D3 and D4 are deployed on the lower side of the hemispherical surface glass to clean the stains on the hemispherical surface glass through the two ultrasonic transducers D3 and D4.

[0057] The size of the deployed ultrasonic transducer can be configured with different sizes of transducers according to the size of the camera's surface glass. The specific size can be set according to actual needs. In this embodiment, no specific limitation is made.

[0058] In combination with the above Figure 1 or Figure 2 As shown, when cleaning stains on the camera's surface glass using the deployed ultrasonic transducer, the order of cleaning was not further considered. Considering that, generally, to avoid affecting the camera's recording, stains in important areas can be cleaned first, followed by stains in other less important areas. This layered approach to cleaning the camera's surface glass improves the overall cleaning effect.

[0059] Based on the above technical concept, this application provides a stain cleaning method. When multiple stains are detected in the object to be treated, an interference ripple diagram corresponding to the multiple stains is constructed; the multiple stains are grouped according to the interference ripple diagram to obtain multiple groups; and the multiple stains are cleaned based on the multiple groups. This method can achieve hierarchical cleaning of multiple stains, thereby effectively improving the stain cleaning effect.

[0060] For example, the object to be processed can be a camera, or other devices with similar stain cleaning needs, depending on the actual requirements. In the following description, a camera will be used as an example, but this does not mean that the embodiments of this application are limited to this.

[0061] The stain cleaning method provided in this application will be described in detail below through several specific embodiments. It is understood that these specific embodiments can be combined with each other, and the same or similar concepts or processes may not be described again in some embodiments.

[0062] Example 1

[0063] Figure 3 This is a schematic flowchart illustrating a stain cleaning method provided in an embodiment of this application. This stain cleaning method can be executed by software and / or hardware devices. For an example, please refer to [link to example]. Figure 3 As shown, the stain removal method may include:

[0064] S301. If multiple stains are detected in the object to be processed, construct the interference ripple diagrams corresponding to the multiple stains.

[0065] For example, when detecting an object to be processed, a sensor can be used to detect the surface of the object, such as a light sensor. The surface of the object can be determined by detecting the intensity of light on the glass surface. The surface can be glass or other materials; the detection principle is the same. In this embodiment, a glass surface is used as an example, but this does not mean that the embodiments are limited to this. For example, the sensor used can be a dedicated sensor or an existing sensor in the camera; the specific configuration can be determined according to actual needs.

[0066] When a stain is detected on the surface of the object to be treated by a sensor, the location of the stain can be recorded and sent to the control module in the stain cleaning device. The control module can then determine the priority of the area where the stain is located based on its location.

[0067] It is understood that, in this embodiment of the application, in addition to recording the location of the stain and sending the recorded location of the stain to the control module corresponding to the stain cleaning device, the sensor can also record the size of the stain and send the size of the stain to the control module. The specific settings can be configured according to actual needs.

[0068] For example, assuming the detected stains include stain Y1, stain Y2, and stain Y3, interference ripple patterns corresponding to stains Y1, Y2, and Y3 can be constructed. For example, constructing the interference ripple patterns corresponding to stains Y1, Y2, and Y3 can include the following steps:

[0069] G1. Construct an interference ripple pattern with region Yi as the focus. Here, i takes values ​​of 1, 2, and 3.

[0070] G2. Statistically determine the regions involving strong interference zones and assign a value to the number of simultaneous cleaning operations, Ci. For an example, please refer to [link to example]. Figure 4 As shown, Figure 4 This is a schematic diagram of an interference ripple pattern constructed according to an embodiment of this application. Y2 and Y1 involve strong interference bands, so their number is 2, and Ci is 2. The vibration amplitude is the largest and the cleaning effect is the best in the strong interference band region.

[0071] G3. Repeat the above steps until all stained areas are calculated. This will divide stains Y1, Y2, and Y3 into two groups, which can be referred to as Group 1 and Group 2. Group 1 includes stains Y1 and Y2, and Group 2 includes stain Y3.

[0072] S302. Group the multiple stains according to the interference ripple pattern to obtain multiple groups.

[0073] S303: Clean multiple stains based on multiple groups.

[0074] As can be seen from the embodiments of this application, when multiple stains are detected in the object to be processed, interference ripple diagrams corresponding to the multiple stains are constructed; and the multiple stains are grouped according to the interference ripple diagrams to obtain multiple groups; and then the multiple stains are cleaned based on the multiple groups, thereby realizing the hierarchical cleaning of multiple stains and effectively improving the stain cleaning effect.

[0075] Based on the above Figure 3 The illustrated embodiment, in order to facilitate understanding of how multiple stains are cleaned based on multiple groups in S303 above, will be explained below through the following... Figure 4 The second embodiment shown describes in detail the technical solution for cleaning multiple stains based on multiple groups.

[0076] Example 2

[0077] Figure 5 This is a flowchart illustrating a method for cleaning multiple stains based on multiple groups, provided as an embodiment of this application. This method can also be executed by software and / or hardware devices. For examples, please refer to... Figure 5 As shown, the method may include:

[0078] S501. For each group, determine the total weight corresponding to the group based on the area where the stains are located and the number of stains included in the group.

[0079] For example, in the embodiments of this application, the type of the area where the stain is located may include a region of interest, a critical region, or other regions. The region of interest has a higher priority than the critical region, and the critical region has a higher priority than other regions; that is, the region of interest has the highest priority, the critical region has the second highest priority, and other regions have the lowest priority.

[0080] The region of interest (ROI) typically refers to the projection area of ​​the region of interest onto the glass surface in the camera's view. If the camera can rotate, the ROI will also change accordingly.

[0081] The critical area typically refers to the area on the glass surface projected from the camera's field of view. If the camera can rotate, the critical area will also change accordingly.

[0082] Other areas typically refer to areas on the glass surface other than the region of interest and the critical region.

[0083] It should be noted that in this embodiment, the camera's line of sight changes as the lens zooms in and out. When the lens zooms in or out, the key areas on the glass surface also need to be adjusted accordingly to accurately reflect the camera's field of view and to allow for the cleaning of corresponding areas. For example, when the lens zooms in, the new key areas on the glass surface can be added to the key areas determined before zooming in; when the lens zooms out, the missing key areas on the glass surface can be removed from the key areas determined before zooming in, thus achieving timely updates to the key areas.

[0084] Furthermore, if the camera can rotate, the area covered by the camera's line of sight may change. Based on the camera's movement, it is possible to predict new and disappearing key areas corresponding to the glass surface, and add the new key areas corresponding to the glass surface to the key areas determined before lens magnification, while removing the disappearing key areas corresponding to the glass surface from the key areas determined before lens magnification.

[0085] For example, when determining the total weight of a group based on the location and quantity of stains included in the group, the quantity of the first stain, the quantity of the second stain, and the quantity of the third stain can be determined separately based on the location of the stains in the group; where the location of the first stain is the region of interest, the location of the second stain is the key region, and the location of the first stain is the other region; and the first product of the weight corresponding to the region of interest and the quantity of the first stain, the second product of the weight corresponding to the key region and the quantity of the second stain, and the third product of the weight corresponding to the other region and the quantity of the third stain are determined respectively; the sum of the first product, the second product, and the third product is then used to determine the total weight of the group, as shown in Formula 1 below:

[0086] Total weight = Z1*W1 + Z2*W2 + Z3*W3 (Formula 1)

[0087] Where Z1 represents the number of first stains in the region of interest, W1 represents the weight corresponding to the region of interest, Z2 represents the number of second stains in the key region, W2 represents the weight corresponding to the key region, Z3 represents the number of third stains in other regions, W3 represents the weight corresponding to other regions, and W1>W2>W3.

[0088] After determining the total weight for each group, the stains in each group can be cleaned sequentially according to the order of their total weights from high to low, i.e., the following S502 is executed:

[0089] S502. Clean the stains in each group in descending order of their total weight.

[0090] For example, suppose there are multiple groups including group 1, group 2, group 3 and group 4, and the groups corresponding to the total weights from high to low are group 1, group 2, group 3 and group 4 respectively. Then, the stains in group 1 can be cleaned first, then the stains in group 2, then the stains in group 3, and finally the stains in group 4. This achieves hierarchical cleaning of multiple stains, thereby effectively improving the stain cleaning effect.

[0091] For example, when cleaning stains in each group sequentially according to their total weight from high to low, an ultrasonic transducer can be activated for cleaning. During cleaning, a strategy that minimizes energy consumption can be adopted. For instance, in solar-powered devices with insufficient energy, cleaning actions should be minimized. In such cases, only stains in the group with the highest total weight can be cleaned, while stains in other groups are not cleaned. Specific settings can be configured according to actual needs.

[0092] For example, when cleaning stains in each group, if a group contains multiple fourth stains, all the fourth stains in that group can be cleaned at the same time, that is, multiple fourth stains can be cleaned in one cleaning operation; alternatively, the priority of each area where the multiple fourth stains are located can be determined separately; and the multiple fourth stains can be cleaned sequentially according to the priority of each area where the multiple fourth stains are located.

[0093] For example, suppose there are multiple fourth stains including stain 1, stain 2 and stain 3, and the stains corresponding to them in order of priority from high to low are stain 1, stain 2 and stain 3 respectively. Then, in order of priority from high to low, stain 1 is cleaned first, then stain 2 is cleaned, and finally stain 3 is cleaned.

[0094] It should be noted that in this embodiment, when the ultrasonic transducer cleans stain 1, stain 2 and / or stain 3 may also be cleaned at the same time. Therefore, in order to avoid cleaning the already cleaned stains again, in this embodiment, the presence of stain 2 and / or stain 3 can be detected after each cleaning operation. If they exist, stain 2 and / or stain 3 are cleaned in sequence. This avoids cleaning the already cleaned stains as the cleaning target, thereby effectively reducing the number of cleaning operations.

[0095] For example, when cleaning multiple fourth stains based on the priority of their respective areas, if at least two of the fourth stains have the same priority in their areas, then the height and / or size of each of the at least two fifth stains are determined; and the at least two fifth stains are cleaned sequentially based on their respective height and / or size.

[0096] It is understood that in the embodiments of this application, at least two areas where the fifth stain is located can both be regions of interest, or both be key regions, or they can both be other regions. The specific settings can be made according to actual needs.

[0097] Taking regions of interest as an example, suppose that the areas where stain 1 and stain 2 are located are both regions of interest, which means that the areas where stain 1 and stain 2 are located have the same priority. In this case, either stain 1 or stain 2 can be selected for priority treatment. Alternatively, the height and / or size of stain 1 and stain 2 can be determined respectively, and stain 1 and stain 2 can be cleaned in sequence according to their respective height and / or size.

[0098] Understandably, the reason for further determining the height of the stain and cleaning it accordingly is that, typically, since most glass surfaces are either tilted or vertical, prioritizing the treatment of higher stains may also clean lower stains, thus reducing the number of cleaning cycles. Furthermore, determining the size of the stain and cleaning it accordingly is because large stains most significantly obstruct the camera's view; therefore, they can be prioritized to minimize their impact on the camera's line of sight.

[0099] For example, when cleaning at least two fifth stains sequentially based on their respective height and / or size, at least three possible implementations can be included:

[0100] In one possible approach, at least two fifth stains can be cleaned sequentially from highest to lowest height, based on their respective heights.

[0101] Again, taking the region of interest as an example, suppose that among multiple fourth stains, the areas where stain 1 and stain 2 are located are both regions of interest. This means that the areas where stain 1 and stain 2 are located have the same priority. If the height of stain 1 is higher than the height of stain 2, then stain 1 can be cleaned first, and then stain 2 can be cleaned.

[0102] It should be noted that, in this embodiment of the application, considering that most of the glass surface is inclined or vertical, when prioritizing the treatment of stains at higher heights, stains at lower positions may also be cleaned. Therefore, after cleaning stain 1 first, it is possible to detect whether stain 2 exists. If it is determined that stain 2 does not exist, it means that stain 2 was cleaned along with stain 1. If it is determined that stain 2 exists, then stain 2 is cleaned, thereby achieving the cleaning of stain 1 and stain 2.

[0103] As can be seen, in this possible implementation, when cleaning at least two fifth stains in descending order of height according to their respective heights, by prioritizing the treatment of stains with higher heights, and since most of the glass surface is tilted or vertical, the treatment of stains with higher heights may also clean stains with lower heights. This not only allows for layered cleaning of stains, but also reduces the number of times stains need to be cleaned to some extent, thereby effectively improving the efficiency of stain removal.

[0104] In another possible approach, the at least two fifth stains can be cleaned sequentially, in descending order of their size, based on the size of the stains corresponding to each of the at least two fifth stains.

[0105] Again, taking the region of interest as an example, suppose that among multiple fourth stains, the areas where stain 1 and stain 2 are located are both regions of interest. This means that the areas where stain 1 and stain 2 are located have the same priority, and stain 1 is greater than stain 2. This means that stain 1 has a greater impact on the camera's line of sight than stain 2. Therefore, stain 1 can be cleaned first, and then stain 2 can be cleaned.

[0106] As can be seen, in this possible implementation, when cleaning at least two fifth stains in descending order of their respective sizes, prioritizing the treatment of larger stains not only allows for layered cleaning but also effectively reduces the impact of large stains on the camera's view during the cleaning process, thereby improving the stain treatment effect.

[0107] The two possible implementations described above respectively depict cleaning at least two fifth stains sequentially based on their respective heights, and cleaning at least two fifth stains sequentially based on their respective sizes. Below, a further possible implementation will be described in detail where at least two fifth stains can be cleaned sequentially based on both their respective heights and sizes.

[0108] In another possible implementation, at least two fifth stains can be cleaned sequentially based on their respective height and size. For example, when cleaning at least two fifth stains sequentially based on their respective height and size, the cleaning can be performed first by height and then by size; alternatively, the cleaning can be performed first by size and then by height. The specific method can be set according to actual needs, and this application embodiment does not impose further limitations.

[0109] In one possible approach, assuming that height priority is greater than stain size priority, when cleaning at least two fifth stains, the cleaning can be performed first according to height and then according to stain size. The cleaning can be performed first according to the order of height of the at least two fifth stains from highest to lowest. If at least two sixth stains are at the same height among the at least two fifth stains, the cleaning can be performed according to the order of stain size of the at least two sixth stains from largest to smallest.

[0110] In another possible approach, assuming that stain size has a higher priority than height, when cleaning at least two fifth stains, the stains can be cleaned first according to their size and then according to their height. If at least two of the five fifth stains are the same size, then the stains can be cleaned according to their height from highest to lowest.

[0111] It should be noted that when cleaning at least two fifth stains sequentially according to their respective heights and sizes, the specific implementation method is similar to the specific implementation method described above for cleaning at least two fifth stains sequentially according to their respective heights or sizes. Please refer to the relevant descriptions above. Here, the embodiments of this application will not be repeated.

[0112] As can be seen, when cleaning multiple fourth stains according to the priority of their respective areas within a group, the priority determination operation is performed only once, and the stains are cleaned sequentially based on the determined priority. Furthermore, considering that the camera's field of view may change if it can rotate, and the key areas corresponding to the glass surface may also change, thus changing the priority of the stain's area, the above method of cleaning multiple fourth stains based on their respective areas can also only clean the highest priority fourth stain, then re-determine the priority of the areas containing the remaining uncleaned fourth stains, and then clean the highest priority fourth stain based on the re-determined priority of the areas containing the remaining uncleaned fourth stains. This process is repeated until there are no more fourth stains in the group. In other words, for each stain cleaned, the priority of the areas containing the remaining uncleaned fourth stains needs to be re-determined, and a new cleaning strategy needs to be determined based on this re-determined priority to clean the stain.

[0113] It should be noted that when cleaning the fourth stain corresponding to the highest priority, if there are at least two fourth stains corresponding to the highest priority, the at least two fourth stains can be cleaned according to their respective height and / or size. The specific implementation is similar to the specific implementation of cleaning at least two fifth stains sequentially according to their respective height and / or size. Please refer to the relevant description above. Here, the embodiments of this application will not be repeated.

[0114] Furthermore, in this embodiment, when multiple stains are detected in the object to be processed, the stains can be cleaned directly according to the priority of the respective areas of the stains. For example, when cleaning multiple stains according to the priority of the respective areas of the stains, if at least two stains have the same priority in their respective areas, then the at least two stains can be cleaned according to their respective height and / or size. The specific implementation is similar to the above-described implementation of cleaning at least two fifth stains sequentially according to their respective height and / or size, as described above. Therefore, this embodiment will not repeat the details here.

[0115] For example, see Figure 6 As shown, Figure 6 This is a schematic diagram of stain distribution provided in an embodiment of this application, combined with... Figure 6 It can be seen that there are 8 stains on the glass surface. Among them, stains 1, 3, and 5 are located in critical areas, stains 2 and 4 are located in regions of interest, and stains 6, 7, and 8 are located in other areas. Therefore, when cleaning these 8 stains according to the priority of the areas where the stains are located, we can clean stains 2 and 4 in the regions of interest first, then clean stains 1, 3, and 5 in the critical areas, and finally clean stains 6, 7, and 8 in the other areas.

[0116] When cleaning stains 2 and 4 in the region of interest, assuming that height has a higher priority than stain size, and since stain 2 is at a higher height than stain 4, stain 2 can be treated first, followed by stain 4. It should be noted that after cleaning stain 2, the presence of stain 4 can be checked. If stain 4 is not found, it means that stain 4 was cleaned along with stain 2; if stain 4 is found, cleaning of stain 4 continues, thus achieving the cleaning of stains 2 and 4 in the region of interest.

[0117] When cleaning stains 1, 3, and 5 in the key areas, assuming that stain size has a higher priority than height, since stain 1 is larger than stain 5, and stain 5 is larger than stain 3, stain 1 can be cleaned first, followed by stain 5, and finally stain 3. Alternatively, stain 1 can be treated first based on its size, and then stain 5 can be treated first based on its height, followed by stain 3. The specific settings can be adjusted according to actual needs.

[0118] When cleaning stains 6, 7, and 8 in other areas, assuming that the height of the stain has a higher priority than its size, and considering that stain 6 is larger than stain 8, and stain 8 is larger than stain 7, stain 6 can be cleaned first, followed by stain 8, and finally stain 7. It should be noted that after cleaning stain 6, stains 7 and 8 can be checked for their presence. If stains 7 and 8 are not present, it means that stains 7 and 8 were cleaned along with stain 6; if stains 7 and 8 are present, then cleaning of stains 7 and 8 continues, thus achieving the cleaning of stains 6, 7, and 8 in other areas.

[0119] Based on any of the above embodiments, in order to provide a better stain cleaning effect, a water spraying device can be added to the camera. The water spraying device is used to spray cleaning agent on the upper part of the glass surface, and ultrasonic waves act on the cleaning liquid. This can not only effectively accelerate the cleaning of stains and improve the stain cleaning efficiency, but also help to improve the cleaning effect.

[0120] The stain cleaning apparatus provided in this application is described below. The stain cleaning apparatus described below can be referred to in correspondence with the stain cleaning method described above.

[0121] Figure 7 This is a schematic diagram of a stain cleaning device provided in an embodiment of this application. For an example, please refer to [link / reference]. Figure 7 As shown, the stain cleaning device 70 may include:

[0122] Construction unit 701 is used to construct interference ripple patterns corresponding to multiple stains when multiple stains are detected in the object to be processed.

[0123] Grouping unit 702 is used to group multiple stains according to the interference ripple pattern to obtain multiple groups.

[0124] Cleaning unit 703 is used to clean multiple stains based on multiple groups.

[0125] Optionally, the cleaning unit 703 is specifically used to determine the total weight of each group based on the area and quantity of stains included in the group; and to clean the stains in each group in descending order of the total weight of each group.

[0126] Optionally, the types of regions include regions of interest, key regions, and other regions; the cleaning unit 703 is specifically used to determine the number of first stains, the number of second stains, and the number of third stains according to the regions where the stains are located in the group; wherein, the region where the first stain is located is the region of interest, the region where the second stain is located is the key region, and the region where the first stain is located is the other region; the first product of the weight corresponding to the region of interest and the number of first stains, the second product of the weight corresponding to the key region and the number of second stains, and the third product of the weight corresponding to the other regions and the number of third stains are determined respectively; the sum of the first product, the second product, and the third product is determined as the total weight corresponding to the group.

[0127] Optionally, the cleaning unit 703 is specifically used to determine the priority of each area where the multiple fourth stains are located for each group, in the case where the group includes multiple fourth stains; and to clean the multiple fourth stains according to the priority of each area where the multiple fourth stains are located.

[0128] Optionally, the cleaning unit 703 is specifically used to determine the height and / or size of each of the at least two fifth stains if, among the multiple fourth stains, at least two fifth stains have the same priority in their respective areas; and to clean the at least two fifth stains sequentially according to their respective height and / or size.

[0129] Optionally, the cleaning unit 703 is specifically used to clean at least two fifth stains in descending order of their respective heights; if at least two sixth stains are at the same height among the at least two fifth stains, then the at least two sixth stains are cleaned in descending order of their respective stains; or, the at least two fifth stains are cleaned in descending order of their respective stains; if at least two seventh stains are at the same size among the at least two fifth stains, then the at least two seventh stains are cleaned in descending order of their respective heights.

[0130] The stain cleaning device 70 provided in this application embodiment can execute the technical solution of the stain cleaning method in any of the above embodiments. Its implementation principle and beneficial effects are similar to those of the stain cleaning method. Please refer to the implementation principle and beneficial effects of the stain cleaning method. It will not be repeated here.

[0131] Figure 8 This is a schematic diagram of the physical structure of an electronic device provided in an embodiment of this application, such as... Figure 8As shown, the electronic device may include a processor 810, a communications interface 820, a memory 880, and a communication bus 840, wherein the processor 810, the communications interface 820, and the memory 880 communicate with each other via the communication bus 840. The processor 810 can call logical instructions in the memory 880 to execute a stain cleaning method, which includes: when multiple stains are detected in the object to be processed, determining the priority of each area corresponding to the multiple stains; and cleaning the multiple stains according to the priorities corresponding to the areas of the multiple stains.

[0132] Furthermore, the logical instructions in the aforementioned memory 880 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or a portion of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0133] On the other hand, this application also provides a computer program product, which includes a computer program that can be stored on a non-transitory computer-readable storage medium. When the computer program is executed by a processor, the computer can perform the stain cleaning method provided by the above methods. The method includes: when multiple stains are detected in the object to be processed, determining the priority of each area where the multiple stains are located; and cleaning the multiple stains according to the priority of each area where the multiple stains are located.

[0134] In another aspect, this application also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, it is implemented to perform the stain cleaning methods provided by the above methods. The method includes: when multiple stains are detected in an object to be processed, determining the priority of each area where the multiple stains are located; and cleaning the multiple stains according to the priority of each area where the multiple stains are located.

[0135] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.

[0136] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.

[0137] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of this application, and are not intended to limit them. Although this application has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features. Such modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of this application.

Claims

1. A method of stain removal, characterized by, include: If multiple stains are detected in the object to be processed, an interference ripple pattern corresponding to the multiple stains is constructed. The multiple stains are grouped according to the interference ripple pattern to obtain multiple groups; Based on the multiple groups, the multiple stains are cleaned; The step of cleaning the multiple stains based on the multiple groups includes: For each group, the total weight corresponding to the group is determined based on the area where the stain is located and the number of stains included in the group; the total weight corresponding to the group is obtained by weighting the number of stains in the corresponding area based on the type and weight of each stain area in the group. The stains in each group are cleaned sequentially according to the total weight of each group from high to low.

2. The stain cleaning method of claim 1, wherein, The types of regions include regions of interest, key regions, and other regions. The determination of the total weight corresponding to each group, based on the region and number of stains included in the group, includes: Based on the areas where the stains are located in the group, the number of first stains, the number of second stains, and the number of third stains are determined respectively; wherein, the area where the first stain is located is the region of interest, the area where the second stain is located is the critical region, and the area where the first stain is located is the other region; The weights corresponding to the regions of interest are respectively multiplied by the first product of the number of the first stains, the weights corresponding to the key regions are multiplied by the second product of the number of the second stains, and the weights corresponding to the other regions are multiplied by the third product of the number of the third stains; The sum of the first product, the second product, and the third product is determined as the total weight corresponding to the group.

3. The stain cleaning method according to claim 1 or 2, characterized in that, The cleaning of stains in each group includes: For each group, if the group includes multiple fourth stains, the priority of the area where each of the multiple fourth stains is located is determined respectively; The multiple fourth stains are cleaned according to the priority of the area where each of the multiple fourth stains is located.

4. The stain removal method according to claim 3, characterized in that, The step of cleaning the plurality of fourth stains according to the priority of the areas where each of the plurality of fourth stains is located includes: If at least two of the fifth stains have the same priority in their respective areas, then the height and / or size of each of the at least two fifth stains shall be determined. Clean the at least two fifth stains sequentially based on their respective heights and / or sizes.

5. The stain removal method according to claim 4, characterized in that, The step of cleaning the at least two fifth stains sequentially based on their respective height and / or size includes: The at least two fifth stains are cleaned according to their respective heights from highest to lowest; if at least two sixth stains are at the same height among the at least two fifth stains, then the at least two sixth stains are cleaned according to their respective stains from largest to smallest. or, The at least two fifth stains are cleaned according to the order of their respective stains from largest to smallest; if at least two of the at least two fifth stains correspond to the same size seventh stains, then the at least two seventh stains are cleaned according to the order of their respective heights from highest to lowest.

6. A stain cleaning device, characterized in that, include: A construction unit is used to construct an interference ripple pattern corresponding to the multiple stains when multiple stains are detected in the object to be processed; A grouping unit is used to group the multiple stains according to the interference ripple pattern to obtain multiple groups; A cleaning unit is used to clean the multiple stains based on the multiple groups; Specifically, the cleaning unit is used to clean the multiple stains based on the multiple groups, including: For each group, the total weight corresponding to the group is determined based on the area where the stain is located and the number of stains included in the group; the total weight corresponding to the group is obtained by weighting the number of stains in the corresponding area based on the type and weight of each stain area in the group. The stains in each group are cleaned sequentially according to the total weight of each group from high to low.

7. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the stain cleaning method as described in any one of claims 1 to 5.

8. A non-transitory computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by a processor, it implements the stain cleaning method as described in any one of claims 1 to 5.

9. A computer program product, comprising a computer program, characterized in that, When the computer program is executed by a processor, it implements the stain cleaning method as described in any one of claims 1 to 5.