Lens cleaning method, system, device, program product and storage medium
By using AC signal technology of piezoelectric ceramics and target circuits in the lens cleaning system, the stains on the lens are identified and cleaned, and the problems of high cost and low recognition accuracy in the prior art are solved, achieving an efficient and economical lens cleaning effect.
Patent Information
- Application Number
- CN202411736528.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2024-11-29
- Publication Date
- 2025-04-08
- Estimated Expiration
- 2044-11-29
AI Technical Summary
In the prior art, an image recognition device is used to identify the type of stain on the lens, but it is costly and has low recognition accuracy, resulting in poor cleaning effect.
By connecting the lens with the lens using piezoelectric ceramics in the lens cleaning system, different frequencies of AC signals are applied to the piezoelectric ceramics using the target circuit to identify and clean stains on the lens.
Reduce costs, improve the accuracy and efficiency of stain identification and cleaning, and achieve better lens cleaning results.
Smart Images

Figure CN119226892B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of computer technology, and in particular to a lens cleaning method, system, device, program product and storage medium. Background Art
[0002] With the continuous development of science and technology, cameras have been gradually applied to various fields, such as new energy vehicles and security, to obtain environmental information through cameras. During the use of cameras, various types of stains may appear on the lens of the camera, which will affect the camera effect.
[0003] In the related art, an image recognition device is usually used to identify the type of stains on the lens, and then a lens cleaning device cleans the lens using a corresponding cleaning method according to the type of stains.
[0004] However, on the one hand, the cost of the image recognition device is relatively high, and on the other hand, since image capture is easily affected by the environment, the accuracy of identifying the stain type is not high, which in turn leads to poor subsequent cleaning effects. Summary of the invention
[0005] The present application provides a lens cleaning method, system, device, program product and storage medium, which can reduce costs while improving lens cleaning effects. The technical solution is as follows:
[0006] In a first aspect, a lens cleaning method is provided, which is applied to a lens cleaning system, wherein the lens cleaning system comprises a first module, a second module and a piezoelectric ceramic, wherein the piezoelectric ceramic is connected to the lens, and the method comprises:
[0007] The first module applies a first AC signal to the piezoelectric ceramic through a target circuit within a preset time period;
[0008] The second module detects characteristic information of the target circuit and characteristic information of the first AC signal within the preset time period;
[0009] The second module determines the type of stain on the lens according to the characteristic information of the target circuit and the characteristic information of the first AC signal;
[0010] The second module applies a second AC signal to the piezoelectric ceramic through the target circuit according to the type of stain to clean the lens, and the frequency of the second AC signal is greater than the frequency of the first AC signal.
[0011] In the present application, the piezoelectric ceramic is connected to the lens. When the first module applies the first AC signal to the piezoelectric ceramic through the target circuit, the stain on the lens will change the vibration frequency of the piezoelectric ceramic, thereby changing the characteristic information of the target circuit and the characteristic information of the first AC signal. Therefore, the second module can more accurately determine the type of stain on the lens. After that, the second module can apply the second AC signal to the piezoelectric ceramic through the target circuit according to the type of stain to clean the lens. In this way, the stain can be identified and cleaned by inputting different AC signals to the piezoelectric ceramic, which can not only reduce costs, but also identify and clean stains more quickly and accurately, improving the lens cleaning efficiency and lens cleaning effect.
[0012] Optionally, the characteristic information of the target circuit includes a resonant frequency of the target circuit, the characteristic information of the first AC signal includes a phase angle of the first AC signal, and the second module determines the type of stain on the lens according to the characteristic information of the target circuit and the characteristic information of the first AC signal, including:
[0013] The second module determines a change in the resonant frequency according to the first preset resonant frequency and the resonant frequency of the target circuit;
[0014] The second module determines a phase angle variation according to an initial phase angle and a phase angle of the first AC signal;
[0015] The second module determines the type of stain according to the change in the resonant frequency and the change in the phase angle.
[0016] Optionally, the second module determines the stain type according to the resonant frequency change and the phase angle change, including:
[0017] The second module obtains the corresponding stain type from a first corresponding relationship according to the resonant frequency change amount and the phase angle change amount, wherein the first corresponding relationship is a corresponding relationship between the resonant frequency change range, the phase angle change range and the stain type.
[0018] Optionally, in the first corresponding relationship, the resonant frequency variation range greater than 0 and less than or equal to the first preset frequency, and the phase angle variation range greater than 0 and less than or equal to the first preset phase angle, correspond to the stain type of dust;
[0019] and / or,
[0020] In the first corresponding relationship, the resonant frequency variation range greater than the first preset frequency and less than or equal to the second preset frequency, and the phase angle variation range greater than 0 and less than or equal to the second preset phase angle, correspond to the type of stain is water mist, the second preset frequency is greater than the first preset frequency, and the second preset phase angle is greater than the first preset phase angle;
[0021] and / or,
[0022] In the first corresponding relationship, the resonant frequency variation range greater than the second preset frequency and the phase angle variation range greater than the second preset phase angle correspond to frost as the stain type.
[0023] Optionally, the second module applies a second AC signal to the piezoelectric ceramic through the target circuit according to the type of the stain to clean the lens, including:
[0024] The second module acquires a corresponding frequency range and working mode from a second corresponding relationship according to the stain type, wherein the second corresponding relationship is a corresponding relationship between the stain type and the frequency range and the working mode, and the frequency range in the second corresponding relationship is determined based on a first preset resonant frequency and a second preset resonant frequency, and the second preset resonant frequency is greater than the first preset resonant frequency;
[0025] The second module applies the second AC signal to the piezoelectric ceramic through the target circuit according to the frequency range and the working mode to clean the lens.
[0026] Optionally, the stain type includes dust;
[0027] In the second corresponding relationship, the frequency range corresponding to the dust is the first frequency range, and the working mode corresponding to the dust is: using the minimum frequency of the first frequency range as the starting frequency, the maximum frequency of the first frequency range as the ending frequency, the third preset frequency as the frequency change step, the first preset time length as the working time of each frequency, the second preset time length as the intermittent time of each frequency, and the third preset time length as the total cycle time to generate the second AC signal; the center frequency of the first frequency range is the first preset resonant frequency.
[0028] Optionally, the stain type includes water mist;
[0029] In the second corresponding relationship, the frequency range corresponding to the water mist is a first frequency range and a second frequency range, and the working mode corresponding to the water mist includes a first working mode and a second working mode in the order of execution. The first working mode is: using the minimum frequency of the first frequency range as the starting frequency, the maximum frequency of the first frequency range as the ending frequency, the third preset frequency as the frequency change step, the first preset time length as the working time of each frequency, the second preset time length as the intermittent time of each frequency, and the third preset time length as the total cycle time to generate the second AC signal. The second working mode is: using the minimum frequency of the second frequency range as the starting frequency, the maximum frequency of the second frequency range as the ending frequency, the fourth preset frequency as the frequency change step, the fourth preset time length as the working time of each frequency, the fifth preset time length as the intermittent time of each frequency, and the sixth preset time length as the total cycle time to generate the second AC signal; the center frequency of the first frequency range is the first preset resonant frequency, and the center frequency of the second frequency range is the second preset resonant frequency.
[0030] Optionally, the stain type includes frost;
[0031] In the second corresponding relationship, the frequency range corresponding to the frost is the first frequency range and the second frequency range, and the working modes corresponding to the frost include a third working mode and a fourth working mode in the order of execution. The third working mode is: using the minimum frequency of the second frequency range as the starting frequency, the maximum frequency of the second frequency range as the ending frequency, the fifth preset frequency as the frequency change step, the seventh preset time length as the working time of each frequency, the eighth preset time length as the intermittent time of each frequency, and the ninth preset time length as the total cycle time to generate the second AC signal; the fourth working mode is: using the minimum frequency of the first frequency range as the starting frequency, the maximum frequency of the first frequency range as the ending frequency, the sixth preset frequency as the frequency change step, the tenth preset time length as the working time of each frequency, the eleventh preset time length as the intermittent time of each frequency, and the twelfth preset time length as the total cycle time to generate the second AC signal; the center frequency of the first frequency range is the first preset resonant frequency, and the center frequency of the second frequency range is the second preset resonant frequency.
[0032] In a second aspect, a lens cleaning system is provided, the lens cleaning system comprising a first module, a second module and a piezoelectric ceramic, wherein the piezoelectric ceramic is connected to the lens;
[0033] The first module is used to apply a first AC signal to the piezoelectric ceramic through a target circuit within a preset time period;
[0034] The second module is used to detect the characteristic information of the target circuit and the characteristic information of the first AC signal within the preset time period; determine the type of stain on the lens according to the characteristic information of the target circuit and the characteristic information of the first AC signal; and apply a second AC signal to the piezoelectric ceramic through the target circuit according to the type of stain to clean the lens, wherein the frequency of the second AC signal is greater than the frequency of the first AC signal.
[0035] In a third aspect, a computer device is provided, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the lens cleaning method described in the first aspect when executed by the processor.
[0036] In a fourth aspect, a computer program product is provided. When the computer program product is run on a computer device, the computer device is enabled to execute the lens cleaning method described in the first aspect.
[0037] In a fifth aspect, a computer-readable storage medium is provided, wherein the computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the lens cleaning method described in the first aspect is implemented.
[0038] It can be understood that the beneficial effects of the second, third, fourth and fifth aspects mentioned above can be found in the relevant description of the first aspect mentioned above, and will not be repeated here. BRIEF DESCRIPTION OF THE DRAWINGS
[0039] In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings required for use in the description of the embodiments will be briefly introduced below. Obviously, the drawings described below are only some embodiments of the present application. For ordinary technicians in this field, other drawings can be obtained based on these drawings without creative work.
[0040] Figure 1 is a flow chart of a schematic diagram of a lens cleaning system provided in an embodiment of the present application;
[0041] Figure 2 is a structural schematic diagram of a camera provided in an embodiment of the present application;
[0042] Figure 3 is a flow chart of a lens cleaning method provided in an embodiment of the present application;
[0043] Figure 4 It is a structural diagram of a computer device provided in an embodiment of the present application. DETAILED DESCRIPTION
[0044] In order to make the objectives, technical solutions and advantages of the present application clearer, the implementation methods of the present application will be further described in detail below in conjunction with the accompanying drawings.
[0045] It should be understood that the "multiple" mentioned in this application refers to two or more. In the description of this application, unless otherwise specified, " / " means or, for example, A / B can mean A or B; "and / or" in this article is only a description of the association relationship of associated objects, indicating that there can be three relationships, for example, A and / or B can mean: A exists alone, A and B exist at the same time, and B exists alone. In addition, in order to facilitate the clear description of the technical solution of this application, the words "first" and "second" are used to distinguish between the same items or similar items with basically the same functions and effects. Those skilled in the art can understand that the words "first" and "second" do not limit the quantity and execution order, and the words "first" and "second" do not limit them to be different.
[0046] The phrases such as "one embodiment" or "some embodiments" described in the present application mean that the specific features, structures or characteristics described in the embodiment are included in one or more embodiments of the present application. Therefore, the phrases such as "in one embodiment", "in some embodiments", "in some other embodiments", "in some other embodiments" that appear in the differences in the present application do not necessarily refer to the same embodiment, but mean "one or more but not all embodiments", unless otherwise specifically emphasized in other ways. In addition, the terms "including", "comprising", "having" and their variations all mean "including but not limited to", unless otherwise specifically emphasized in other ways.
[0047] The lens cleaning system provided in the embodiment of the present application is described below.
[0048] Figure 1 is a schematic diagram of a lens cleaning system provided in an embodiment of the present application. Figure 1 The lens cleaning system 10 may include a first module 101 , a second module 102 , and a piezoelectric ceramic 103 .
[0049] For example, the lens cleaning system 10 can be applied to surveillance cameras, vehicle-mounted cameras and other cameras, or can be applied to other devices with lenses to clean the lenses therein.
[0050] The first module 101 may be electrically connected to the piezoelectric ceramic 103 .
[0051] The second module 102 may be electrically connected to the piezoelectric ceramic 103 .
[0052] The piezoelectric ceramic 103 may be connected to the lens. For example, the piezoelectric ceramic 103 may be directly in contact with the lens, or the piezoelectric ceramic 103 may be in contact with the lens through a conductive structure, which is not limited in the present embodiment.
[0053] For example, the piezoelectric ceramic 103 may be a piezoelectric ceramic ring, a piezoelectric ceramic column, etc., which is not limited in the embodiments of the present application.
[0054] Optionally, the lens cleaning system 10 may further include a target circuit, which may be electrically connected to the piezoelectric ceramic 103 , and the target circuit is a circuit that supplies power to the piezoelectric ceramic 103 .
[0055] In this case, the first module 101 may be electrically connected to the piezoelectric ceramic 103 through a target circuit; and the second module 102 may be electrically connected to the piezoelectric ceramic 103 through a target circuit.
[0056] The first module 101 is used to apply a first AC signal to the piezoelectric ceramic 103 through a target circuit. For example, the first module 101 may be a detection circuit module.
[0057] The first AC signal is a signal for detecting whether there is stain on the lens. For example, the first AC signal can be a low-voltage and low-frequency AC signal. The voltage and frequency of the first AC signal can be preset. For example, the voltage and frequency of the first AC signal can be set by a technician based on experiments. For example, the first AC signal can be a 1V (volt) and 1kHZ (kilohertz) AC signal.
[0058] The second module 102 is used to detect characteristic information of the target circuit and characteristic information of the first AC signal, determine the type of stain on the lens according to the characteristic information of the target circuit and the characteristic information of the first AC signal, and then apply a second AC signal to the piezoelectric ceramic 103 through the target circuit according to the type of stain.
[0059] By way of example, the characteristic information of the target circuit may include a resonant frequency of the target circuit.
[0060] By way of example, the characteristic information of the first AC signal may include a phase angle of the first AC signal.
[0061] For example, the stain type may include dust, water mist, or frost, etc., which is not limited in the embodiments of the present application.
[0062] It should be noted that in the embodiment of the present application, after the first module 101 applies the first AC signal to the piezoelectric ceramic 103, the piezoelectric ceramic 103 will vibrate, thereby driving the lens to vibrate. If there is stain on the lens, it will affect the vibration frequency of the piezoelectric ceramic 103, thereby changing the characteristic information of the target current and the characteristic information of the first AC signal, so that the second module 102 can determine the type of stain on the lens.
[0063] The second AC signal is used to clean the stains on the lens. For example, the second AC signal can be a high-voltage and high-frequency AC signal. The voltage and frequency of the second AC signal can be preset. For example, the voltage and frequency of the second AC signal can be set by a technician based on experiments. For example, the second AC signal can be a 250V, 75kHZ AC signal.
[0064] In the embodiment of the present application, after the second module 102 applies the second AC signal to the piezoelectric ceramic 103, it can generate a higher frequency vibration, thereby driving the lens to vibrate at a high frequency to clean the stains on the lens.
[0065] In some embodiments, the target circuit where the piezoelectric ceramic 103 is located has multiple resonant frequencies (such as the first preset resonant frequency and the second preset resonant frequency described below), and each of the multiple resonant frequencies corresponds to a resonance mode of the piezoelectric ceramic 103 .
[0066] By way of example, the resonance mode of the piezoelectric ceramic 103 may include one or more of a basic resonance mode, a higher-order resonance mode, and the like. The basic resonance mode is a resonance mode of the piezoelectric ceramic 103 when the frequency of the second AC signal is relatively low, and the higher-order resonance mode is a resonance mode of the piezoelectric ceramic 103 when the frequency of the second AC signal is relatively high. By way of example, the resonance frequency corresponding to the higher-order resonance mode (the first preset resonance frequency described below) may be an integer multiple of the resonance frequency corresponding to the basic resonance mode (the second preset resonance frequency described below). For example, the resonance frequency corresponding to the higher-order resonance mode may be twice the resonance frequency corresponding to the basic resonance mode.
[0067] In this case, when the frequency of the second AC signal applied to the piezoelectric ceramic 103 is close to or equal to the resonance frequency corresponding to the basic resonance mode, the piezoelectric ceramic 103 will vibrate in the basic resonance mode and drive the lens to vibrate with a smaller amplitude and frequency to clean the stains (such as dust) with a smaller mass on the lens. When the frequency of the second AC signal applied to the piezoelectric ceramic 103 is close to or equal to the resonance frequency corresponding to the high-order resonance mode, the piezoelectric ceramic 103 will vibrate in the high-order resonance mode and drive the lens to vibrate with a larger amplitude and frequency to clean the stains (such as water mist, frost, etc.) with a larger mass on the lens.
[0068] In some cases, when the piezoelectric ceramic 103 vibrates in a high-order resonance mode, the piezoelectric ceramic 103 will generate heat due to the vibration amplitude, frequency, internal loss of the material, etc. In this case, when water mist appears on the lens, the piezoelectric ceramic 103 can atomize the water mist on the lens through the high-order resonance mode to clean the water mist on the lens; when frost appears on the lens, the piezoelectric ceramic 103 can heat and melt the frost on the lens through the high-order resonance mode to clean the frost on the lens.
[0069] The piezoelectric ceramic 103 provided in the embodiment of the present application is described below using a camera as an example.
[0070] Figure 2 is a structural diagram of a camera provided in an embodiment of the present application. Figure 2 In (a) and (b), the camera may include a bottom shell 201, a piezoelectric ceramic ring 202, a lens 203, a pressure cover 204, a conductive ring 205, and a sealing ring 206, wherein the bottom shell 201 may include a second through hole 2011 and a limiting ring 2012, and the pressure cover 204 may include a first through hole 2041. The piezoelectric ceramic ring 202 may be Figure 1 The piezoelectric ceramic 103 in.
[0071] The pressure cover 204 is connected to the bottom shell 201 to enclose a mounting cavity, the piezoelectric ceramic ring 202 and the lens 203 are both in the mounting cavity, and the piezoelectric ceramic ring 202 is between the bottom shell 201 and the lens 203; the conductive rings 205 are respectively arranged on both sides of the piezoelectric ceramic ring 202, wherein one conductive ring 205 is between the lens 203 and the piezoelectric ceramic ring 202, and the other conductive ring 205 is between the piezoelectric ceramic ring 202 and the bottom shell 201; the sealing ring 206 is between the lens 203 and the pressure cover 204.
[0072] The bottom shell 201 is the outer shell of the camera, which is used to support and protect other components inside the camera.
[0073] The second through hole 2011 is a circular hole for the camera to collect images.
[0074] The limiting ring platform 2012 is used to fix the piezoelectric ceramic ring 202 , the lens 203 , and the conductive ring 205 .
[0075] The piezoelectric ceramic ring 202 is used to respond to the change of the electrical signal and generate mechanical movement to check the type of stains on the lens 203 or remove the stains on the lens 203 .
[0076] The lens 203 is used to refract light to capture images.
[0077] The pressure cover 204 is used to seal and protect the internal components of the camera to prevent dust, moisture, frost or other external substances from entering.
[0078] The first through hole 2041 is a circular hole for the camera to collect images.
[0079] The conductive ring 205 is used to transmit the vibration of the piezoelectric ceramic ring 202 to the lens 203 .
[0080] The sealing ring 206 is used to seal the camera to prevent dust, water vapor, etc. from entering the installation cavity.
[0081] Among them, the piezoelectric ceramic ring 202 is between the bottom shell 201 and the lens 203. It can be understood that the piezoelectric ceramic ring 202 can directly abut the bottom shell 201 and the lens 203; or, the piezoelectric ceramic ring 202 directly abuts the bottom shell 201, and the piezoelectric ceramic ring 202 abuts the lens 203 through a conductive structure; or, the piezoelectric ceramic ring 202 abuts the bottom shell 201 through a conductive structure, and the piezoelectric ceramic ring 202 directly abuts the lens 203; or, the piezoelectric ceramic ring 202 abuts the bottom shell 201 through a conductive structure, and the piezoelectric ceramic ring 202 abuts the lens 203 through a conductive structure. In the above manner, after power is turned on, the piezoelectric ceramic ring 202 produces contraction and expansion deformation to drive the lens 203 to vibrate.
[0082] For example, the piezoelectric ceramic ring 202 includes a plurality of ceramic ring sheets stacked together, that is, the piezoelectric ceramic ring 202 is a multilayer piezoelectric ceramic structure, which helps to increase the effective piezoelectric coefficient and improve the energy conversion efficiency. Two adjacent ceramic ring sheets are provided with an annular conductive layer, and after power is applied, the first AC signal or the second AC signal can be applied to the ceramic ring sheet through the annular conductive layer.
[0083] It can be understood that the annular conductive layer can be printed on the ceramic ring piece; or, the annular conductive layer can be sintered on the ceramic ring piece; or, the annular conductive layer can be bonded to the ceramic ring piece by conductive adhesive, which is not limited in the embodiments of the present application.
[0084] It should be noted that the embodiments of the present application are only Figure 2 The camera described in the embodiment is used as an example to illustrate the devices to which the lens cleaning system provided in the embodiment of the present application can be applied. In actual applications, the lens cleaning system provided in the embodiment of the present application can also be applied to other devices with lenses to clean their lenses, as long as the piezoelectric ceramics in the lens cleaning system can be connected to the lenses therein. The embodiment of the present application does not limit this.
[0085] The lens cleaning method provided in the embodiments of the present application is explained in detail below.
[0086] Figure 3: is a flow chart of a lens cleaning method provided in an embodiment of the present application. The lens cleaning method can be applied to a lens cleaning system, such as Figure 1 The lens cleaning system 10 in the embodiment of the present invention may include a first module, a second module and a piezoelectric ceramic, wherein the piezoelectric ceramic is connected to the lens. Figure 3 , the method comprises the following steps:
[0087] Step 301: The first module applies a first AC signal to the piezoelectric ceramic through a target circuit within a preset time period.
[0088] The preset duration can be set in advance.
[0089] The piezoelectric ceramic is connected in a target circuit.
[0090] The first module can continuously input the first AC signal to the target circuit within a preset time period, so as to continuously apply the first AC signal to the piezoelectric ceramic within the preset time period.
[0091] For example, the first AC signal may be a low-voltage and low-frequency AC signal.
[0092] Optionally, the first module may periodically apply a first AC signal to the piezoelectric ceramic to achieve periodic stain identification and cleaning. For example, the first module may apply the first AC signal to the piezoelectric ceramic at specified time intervals, the specified time period may be pre-set, the specified time period may be greater than the sum of the preset time period and the cleaning time period, and the cleaning time period is the maximum time period required to clean the lens.
[0093] When the first module applies the first AC signal to the piezoelectric ceramic through the target circuit, the piezoelectric ceramic can drive the lens to vibrate. During this process, the second module can detect characteristic information of the target circuit and characteristic information of the first AC signal.
[0094] Step 302: The second module detects characteristic information of the target circuit and characteristic information of the first AC signal within a preset time period.
[0095] For example, the second module can detect the characteristic information of the target circuit and the characteristic information of the first AC signal through electrical impedance spectroscopy technology. Of course, it is not limited to this. The characteristic information of the target circuit and the characteristic information of the first AC signal can also be detected by other methods, and the embodiments of the present application are not limited to this.
[0096] Since the first AC signal is an AC signal with fixed voltage and frequency, when there is no stain on the lens, the vibration frequency of the piezoelectric ceramic is a fixed frequency, and when there is stain on the lens, it will affect the vibration frequency of the piezoelectric ceramic, thereby causing the characteristic information of the target circuit and the characteristic information of the first AC signal to change. Based on this, the second module can detect the characteristic information of the target circuit and the characteristic information of the first AC signal during the period when the first module applies the first AC signal to the piezoelectric ceramic, that is, within the above-mentioned preset time length, so that the type of stain on the lens can be determined later.
[0097] Step 303: The second module determines the type of stain on the lens according to the characteristic information of the target circuit and the characteristic information of the first AC signal.
[0098] In an embodiment of the present application, during the process in which the first module applies the first AC signal to the piezoelectric ceramic through the target circuit, the second module can detect characteristic information of the target circuit and characteristic information of the first AC signal. Since the stains on the lens will affect the vibration frequency of the piezoelectric ceramic, thereby affecting the characteristic information of the target circuit and the characteristic information of the first AC signal, that is, the characteristic information of the target circuit and the characteristic information of the first AC signal can reflect the change in the vibration frequency of the piezoelectric ceramic, so the second module can determine the type of stains on the lens more accurately based on this.
[0099] In some embodiments, the characteristic information of the target circuit includes the resonant frequency of the target circuit, and the characteristic information of the first AC signal includes the phase angle of the first AC signal. The operation of step 303 may be: the second module determines the change in the resonant frequency based on the first preset resonant frequency and the resonant frequency of the target circuit; the second module determines the change in the phase angle based on the initial phase angle and the phase angle of the first AC signal; the second module determines the type of stain based on the change in the resonant frequency and the change in the phase angle.
[0100] The first preset resonant frequency is a resonant frequency (also referred to as an initial resonant frequency) of the target circuit when there is no stain on the lens. The first preset resonant frequency can be preset. For example, the first preset resonant frequency can be obtained by a technician based on an experiment. For example, the first preset resonant frequency can be set to 72 kHz.
[0101] The initial phase angle is the phase angle of the first AC signal when the first module generates the first AC signal. The initial phase angle can be preset. For example, the initial phase angle can be set by a technician based on an experiment. For example, the initial phase angle can be set to -65°.
[0102] The resonant frequency change amount may be a resonant frequency difference obtained by subtracting the first preset resonant frequency from the detected resonant frequency of the target circuit.
[0103] The phase angle variation may be a phase angle difference obtained by subtracting the initial phase angle from the detected phase angle of the first AC signal.
[0104] Since different types of contamination have different effects on the resonant frequency of the target circuit and the phase angle of the first AC signal, and one type of contamination has limited effects on the resonant frequency of the target circuit and the phase angle of the first AC signal, the second module can determine the contamination type based on the change in the resonant frequency and the change in the phase angle.
[0105] In this case, the second module can determine that there is no stain on the lens when the resonant frequency change and the phase angle change are both small; when the resonant frequency change and the phase angle change are both large, it can be determined that there is stain on the lens, and the specific type of stain can be determined based on the resonant frequency change and the phase angle change.
[0106] In some embodiments, the second module may include a first corresponding relationship, which is a corresponding relationship between a resonant frequency variation range, a phase angle variation range and a stain type, and one stain type corresponds to one resonant frequency variation range and one phase angle variation range.
[0107] The first corresponding relationship may be preset. For example, the first corresponding relationship may be set by a technician based on experiments.
[0108] In this case, the operation of the second module determining the stain type according to the resonant frequency change and the phase angle change may be: the second module obtains the corresponding stain type from the first corresponding relationship according to the resonant frequency change and the phase angle change.
[0109] In some embodiments, in the first corresponding relationship, the resonance frequency variation range greater than 0 and less than or equal to the first preset frequency and the phase angle variation range greater than 0 and less than or equal to the first preset phase angle correspond to dust as the corresponding stain type.
[0110] The first preset frequency can be preset. For example, the first preset frequency can be set to 0.5 kHz.
[0111] The first preset phase angle can be preset. For example, the first preset phase angle can be set to 1°.
[0112] Since the dust has a small mass and is usually a light particle, the effect on the vibration frequency of the piezoelectric ceramic when attached to the lens is small, so the determined resonant frequency change and phase angle change are small. In this case, if the determined resonant frequency change is greater than 0 and less than or equal to the first preset frequency, and the determined phase angle change is greater than 0 and less than or equal to the first preset phase angle, it can be determined that the type of stain on the lens is dust.
[0113] In some embodiments, in the first corresponding relationship, the resonance frequency variation range greater than the first preset frequency and less than or equal to the second preset frequency, and the phase angle variation range greater than 0 and less than or equal to the second preset phase angle, correspond to the stain type of water mist.
[0114] The second preset frequency can be preset. The second preset frequency is greater than the first preset frequency. For example, the second preset frequency can be set to 2 kHz.
[0115] The second preset phase angle can be preset. The second preset phase angle is greater than the first preset phase angle. For example, the second preset phase angle can be set to 2°.
[0116] Since water mist has a larger mass and smaller rigidity, compared to dust, when water mist adheres to the lens, it has a greater impact on the vibration frequency of the piezoelectric ceramic, so the determined resonant frequency change and phase angle change are larger. In this case, if the determined resonant frequency change is greater than the first preset frequency and less than or equal to the second preset frequency, and the determined phase angle change is greater than 0 and less than or equal to the second preset phase angle, it can be determined that the type of stain on the lens is water mist.
[0117] In some embodiments, in the first corresponding relationship, a resonance frequency variation range greater than the second preset frequency and a phase angle variation range greater than the second preset phase angle correspond to frost as the corresponding stain type.
[0118] Since the mass and rigidity of frost are both large, compared with water mist, when frost adheres to the lens, it has a greater impact on the vibration frequency of the piezoelectric ceramic, so the determined resonant frequency change and phase angle change are greater than the resonant frequency change and phase angle change when water mist is attached to the lens. In this case, when the determined resonant frequency change is greater than the second preset frequency, and the determined phase angle change is greater than the second preset phase angle, it can be determined that the type of stain on the lens is frost.
[0119] Step 304: The second module applies a second AC signal to the piezoelectric ceramic through a target circuit according to the type of the stain to clean the lens.
[0120] The second AC signal is an AC signal applied by the second module to the piezoelectric ceramic for removing stains on the lens. The frequency of the second AC signal is greater than the frequency of the first AC signal.
[0121] The voltage and frequency of the second AC signal can be preset. For example, the voltage and frequency of the second AC signal can be set by a technician based on experiments. For example, the second AC signal can be set to an AC signal of 250V and 75kHZ.
[0122] It should be noted that after the second module determines the type of the stain, the first module has stopped applying the first AC signal to the piezoelectric ceramic. At this time, the second module can apply the second AC signal to the piezoelectric ceramic to clean the lens.
[0123] For example, the first module can continuously apply a first AC signal for 10 seconds to the piezoelectric ceramic through the target circuit every 5 minutes, the second module can detect the characteristic information of the target circuit and the first AC signal within the 10 seconds and determine the type of stain on the lens accordingly, the first module stops applying the first AC signal after the 10 seconds, the second module can apply a second AC signal to the piezoelectric ceramic through the target circuit according to the type of stain to clean the lens, and the cleaning process takes up to 1 minute to complete. In this way, the lens detection and cleaning process is performed every 5 minutes, and the lens detection and cleaning process takes 1 minute and 10 seconds to complete each time.
[0124] In some cases, the operation of step 304 may be: when the stain type is dust, the second module generates a second AC signal with the first preset resonant frequency as the signal frequency, and applies the second AC signal to the piezoelectric ceramic through the target circuit within a first time period to clean the dust on the lens; or, when the stain type is water mist, the second module generates a second AC signal with the second preset resonant frequency as the signal frequency, and applies the second AC signal to the piezoelectric ceramic through the target circuit within a second time period to clean the water mist on the lens; or, when the stain type is frost, the second module generates a second AC signal with the second preset resonant frequency as the signal frequency, and applies the second AC signal to the piezoelectric ceramic through the target circuit within a third time period to clean the frost on the lens.
[0125] The first duration can be preset. For example, the first duration can be obtained by a technician based on experiments. For example, the first duration can be set to 10 seconds.
[0126] The second duration can be preset. The first duration can be the same as or different from the second duration. For example, the second duration can be set to 10s, 11s, etc., which is not limited in the embodiment of the present application.
[0127] The third duration can be preset. The third duration is greater than the second duration. For example, the third duration can be set to 50 seconds.
[0128] The second preset resonant frequency is another resonant frequency of the target circuit. The second preset resonant frequency is greater than the first preset resonant frequency. For example, the second preset resonant frequency can be an integer multiple of the first preset resonant frequency, such as 2 times.
[0129] The second preset resonant frequency can be preset. For example, the second preset resonant frequency can be obtained by a technician based on experiments. For example, the second preset resonant frequency can be set to 155 kHz, etc.
[0130] In this way, when it is determined that there is any type of stain such as dust, water mist or frost on the lens, different second AC signals can be selected for cleaning according to the type of stain, so that the efficiency of cleaning the stain is higher and the effect is better.
[0131] In other cases, the operation of step 304 may be: the second module obtains the corresponding frequency range and operating mode from the second corresponding relationship according to the stain type; the second module applies a second AC signal to the piezoelectric ceramic through the target circuit according to the frequency range and the operating mode to clean the lens.
[0132] The second correspondence is a correspondence between the stain type and the frequency range and the working mode, and the frequency range in the second correspondence is determined based on the first preset resonant frequency and the second preset resonant frequency. The second correspondence can be preset. For example, the second correspondence can be set by a technician based on experiments.
[0133] The frequency range corresponding to a stain type is the frequency range that the AC signal input to the target circuit must reach when removing the stain of that stain type.
[0134] The working mode corresponding to a stain type is an input mode of an AC signal input into a target circuit when removing stains of the stain type.
[0135] In this case, after the second module obtains the corresponding frequency range and working mode from the second corresponding relationship according to the stain type, it can control the second AC signal input into the target circuit according to the frequency range and the working mode to clean the stains on the lens.
[0136] In some embodiments, in the second corresponding relationship, the frequency range corresponding to the dust is the first frequency range, and the working mode corresponding to the dust is: using the minimum frequency of the first frequency range as the starting frequency, the maximum frequency of the first frequency range as the ending frequency, the third preset frequency as the frequency change step, the first preset time length as the working time of each frequency, the second preset time length as the intermittent time of each frequency, and the third preset time length as the total cycle time to generate a second AC signal; the center frequency of the first frequency range is the first preset resonant frequency.
[0137] The first frequency range can be preset. For example, the first frequency range can be set to 67kHz~77kHz, the minimum frequency of the first frequency range is 67kHz, the maximum frequency of the first frequency range is 77kHz, and the center frequency of the first frequency range (ie, the first preset resonant frequency) is 72kHz.
[0138] The third preset frequency can be preset. For example, the third preset frequency can be set to 200 Hz, 300 Hz, 400 Hz, 500 Hz, etc., which is not limited in the embodiment of the present application.
[0139] The first preset duration can be preset. For example, the first preset duration can be set to 5 ms (milliseconds), 6 ms, etc., which is not limited in the embodiment of the present application.
[0140] The second preset duration can be preset. The second preset duration can be the same as or different from the first preset duration. For example, the second preset duration can be set to 5ms, 6ms, etc., which is not limited in the embodiment of the present application.
[0141] The third preset duration can be preset. For example, the third preset duration can be set according to demand. For example, the third preset duration can be set to 9s (seconds), 10s, 11s, etc., which is not limited in the embodiment of the present application.
[0142] In this way, when the second module determines that the type of stain is dust, the dust on the lens can be cleaned according to the frequency range and working mode corresponding to the dust in the second corresponding relationship.
[0143] For example, if the second module determines that the type of stain on the lens is dust, the second module can generate a second AC signal with 67kHz as the starting frequency, 77kHz as the ending frequency, 500Hz as the frequency change step, 5ms as the working time of each frequency, 5ms as the interval time of each frequency, and 10s as the total cycle time, and apply the generated second AC signal to the piezoelectric ceramic through the target circuit to clean the dust on the lens.
[0144] In this case, the second module starts to input the second AC signal to the target circuit with a signal frequency of 67kHz as the starting frequency. After each continuous input of 5ms, it waits for 5ms. After each waiting period, the signal frequency is increased by 500Hz and the second AC signal is input again. The cleaning process ends after a cycle of 10s.
[0145] In this way, the piezoelectric ceramic can be made to vibrate intermittently at a relatively low frequency, thereby driving the lens to vibrate at a relatively low amplitude and frequency, so as to clean the dust on the lens.
[0146] In some embodiments, in the second corresponding relationship, the frequency range corresponding to the water mist is the first frequency range and the second frequency range, and the working mode corresponding to the water mist includes the first working mode and the second working mode in the order of execution; wherein, the first working mode is: using the minimum frequency of the first frequency range as the starting frequency, the maximum frequency of the first frequency range as the ending frequency, the third preset frequency as the frequency change step, the first preset time length as the working time of each frequency, the second preset time length as the intermittent time of each frequency, and the third preset time length as the total cycle time to generate a second AC signal; the second working mode is: using the minimum frequency of the second frequency range as the starting frequency, the maximum frequency of the second frequency range as the ending frequency, the fourth preset frequency as the frequency change step, the fourth preset time length as the working time of each frequency, the fifth preset time length as the intermittent time of each frequency, and the sixth preset time length as the total cycle time to generate a second AC signal; the center frequency of the first frequency range is the first preset resonant frequency, and the center frequency of the second frequency range is the second preset resonant frequency.
[0147] The second frequency range can be preset. For example, the second frequency range can be set to 150kHz~160kHz, the minimum frequency of the second frequency range is 150kHz, the maximum frequency of the second frequency range is 160kHz, and the center frequency of the second frequency range (ie, the second preset resonant frequency) is 155kHz.
[0148] The fourth preset frequency may be the same as or different from the third preset frequency. The fourth preset frequency may be preset. For example, the fourth preset frequency may be set to 200 Hz, 300 Hz, 400 Hz, 500 Hz, etc., which is not limited in the embodiment of the present application.
[0149] The fourth preset duration can be preset. The fourth preset duration can be the same as or different from the first preset duration. For example, the fourth preset duration can be set to 5ms, 6ms, etc.
[0150] The fifth preset duration can be preset. The fifth preset duration can be the same as or different from the second preset duration. For example, the fifth preset duration can be set to 6ms, 7ms, etc.
[0151] The sixth preset duration can be preset. The sixth preset duration can be the same as or different from the third preset duration. For example, the sixth preset duration can be set to 9s, 10s, 11s, etc., which is not limited in the embodiment of the present application.
[0152] In this way, when the second module determines that the type of stain is water mist, the water mist on the lens can be cleaned according to the frequency range and working mode corresponding to the water mist in the second corresponding relationship.
[0153] For example, if the second module determines that the type of stain on the lens is water mist, the second module can first use 67kHz as the starting frequency, 77kHz as the ending frequency, 500Hz as the frequency change step, 5ms as the working time of each frequency, 5ms as the intermittent time of each frequency, and 10s as the total cycle time to generate a second AC signal. Then use 150kHz as the starting frequency, 160kHz as the ending frequency, 400Hz as the frequency change step, 5ms as the working time of each frequency, 6ms as the intermittent time of each frequency, and 11s as the total cycle time to generate a second AC signal. The generated second AC signal is applied to the piezoelectric ceramic through the target circuit to clean the water mist on the lens.
[0154] In this case, the second module starts to input the second AC signal to the target circuit with a signal frequency of 67kHz as the starting signal frequency, waits for 5ms after each continuous input, and increases the signal frequency by 500Hz after each waiting, and then inputs the second AC signal again, and this cycle works for 10s. After that, the second AC signal is input to the target circuit with a signal frequency of 150kHz as the starting signal frequency, waits for 6ms after each continuous input of 5ms, and increases the signal frequency by 400Hz after each waiting, and then inputs the second AC signal again, and this cycle works for 11s before the cleaning process ends.
[0155] In this way, the piezoelectric ceramic can be made to vibrate intermittently at a relatively low frequency, thereby driving the lens to vibrate at a relatively low amplitude and frequency, so as to preliminarily clean the water mist on the lens. Then, the piezoelectric ceramic can be made to vibrate intermittently at a relatively high frequency, thereby driving the lens to vibrate at a relatively high amplitude and frequency, so as to deeply clean the water mist on the lens. Moreover, the piezoelectric ceramic generates a relatively high amount of heat when vibrating at a relatively high frequency, so as to atomize the water mist on the lens, thereby achieving a better cleaning effect.
[0156] In some embodiments, in the second corresponding relationship, the frequency range corresponding to frost is the first frequency range and the second frequency range, and the working modes corresponding to frost include a third working mode and a fourth working mode in the order of execution. The third working mode is: using the minimum frequency of the second frequency range as the starting frequency, the maximum frequency of the second frequency range as the ending frequency, the fifth preset frequency as the frequency change step, the seventh preset time length as the working time of each frequency, the eighth preset time length as the intermittent time of each frequency, and the ninth preset time length as the total cycle time to generate a second AC signal; the fourth working mode is: using the minimum frequency of the first frequency range as the starting frequency, the maximum frequency of the first frequency range as the ending frequency, the sixth preset frequency as the frequency change step, the tenth preset time length as the working time of each frequency, the eleventh preset time length as the intermittent time of each frequency, and the twelfth preset time length as the total cycle time to generate a second AC signal; the center frequency of the first frequency range is the first preset resonant frequency, and the center frequency of the second frequency range is the second preset resonant frequency.
[0157] The fifth preset frequency can be preset. For example, the fifth preset frequency can be set to 200 Hz, 300 Hz, 400 Hz, 500 Hz, etc., which is not limited in the embodiment of the present application.
[0158] The seventh preset duration can be preset. For example, the seventh preset duration can be set to 4ms, 5ms, 6ms, etc., which is not limited in the embodiment of the present application.
[0159] The eighth preset duration can be preset. For example, the eighth preset duration can be set to 4ms, 5ms, 6ms, etc., which is not limited in the embodiment of the present application.
[0160] The ninth preset duration may be preset. For example, the ninth preset duration may be set to 39s, 40s, 41s, etc. Optionally, the ninth preset duration may be greater than the sixth preset duration.
[0161] The sixth preset frequency can be preset. For example, the sixth preset frequency can be set to 200 Hz, 300 Hz, 400 Hz, 500 Hz, etc., which is not limited in the embodiment of the present application.
[0162] The tenth preset duration can be preset. For example, the tenth preset duration can be set to 4ms, 5ms, 6ms, etc., which is not limited in the embodiment of the present application.
[0163] The eleventh preset duration can be preset. For example, the eleventh preset duration can be set to 4ms, 5ms, 6ms, etc., which is not limited in the embodiment of the present application.
[0164] The twelfth preset duration can be preset. For example, the twelfth preset duration can be set to 9s, 10s, 11s, etc., which is not limited in the embodiment of the present application.
[0165] Thus, when the second module determines that the stain type is frost, the frost on the lens can be cleaned according to the frequency range and working mode corresponding to the frost in the second corresponding relationship.
[0166] For example, if the second module determines that the type of stain on the lens is frost, the second module can first use 150kHz as the starting frequency, 160kHz as the ending frequency, 400Hz as the frequency change step, 5ms as the working time of each frequency, 5ms as the intermittent time of each frequency, and 40s as the total cycle time to generate a second AC signal. Then use 67kHz as the starting frequency, 77kHz as the ending frequency, 500Hz as the frequency change step, 4ms as the working time of each frequency, 4ms as the intermittent time of each frequency, and 10s as the total cycle time to generate a second AC signal. The generated second AC signal is applied to the piezoelectric ceramic through the target circuit to clean the water mist on the lens.
[0167] In this case, the second module starts to input the second AC signal to the target circuit with a signal frequency of 150kHz as the starting signal frequency, waits for 5ms after each continuous input, and increases the signal frequency by 400Hz after each waiting, and then inputs the second AC signal again, and this cycle works for 40s. After that, the second AC signal is input to the target circuit with a signal frequency of 67kHz as the starting signal frequency, waits for 4ms after each continuous input, and increases the signal frequency by 500Hz after each waiting, and then inputs the second AC signal again, and this cycle works for 10s before the cleaning process ends.
[0168] In this way, the piezoelectric ceramic can be intermittently vibrated at a relatively high frequency first, thereby driving the lens to vibrate at a relatively high amplitude and frequency, so as to preliminarily clean the frost on the lens. Since the piezoelectric ceramic generates a relatively high amount of heat when vibrating at a relatively high frequency, the frost on the lens can be melted, thereby achieving a better cleaning effect. Afterwards, the piezoelectric ceramic can be intermittently vibrated at a relatively low frequency, thereby driving the lens to vibrate at a relatively low amplitude and frequency, so as to further clean the melted frost on the lens.
[0169] By the above method, when stains such as dust, water mist or frost appear on the lens, a second AC signal with different working modes can be generated according to the type of stain for cleaning. In addition, during the cleaning process, since the stains on the lens are continuously reduced as the cleaning progresses, the vibration frequency of the piezoelectric ceramic can be more accurately controlled by continuously adjusting the frequency of the second AC signal by frequency variation stepping, so as to achieve a better cleaning effect. In addition, by vibrating for a period of time and then pausing for a period of time, the loss of the lens and the piezoelectric ceramic can be reduced.
[0170] In an embodiment of the present application, the first module applies a first AC signal to the piezoelectric ceramic through a target circuit within a preset time length. The second module detects characteristic information of the target circuit and characteristic information of the first AC signal within the preset time length, and determines the type of stain on the lens according to the characteristic information of the target circuit and the characteristic information of the first AC signal. Afterwards, the second module applies a second AC signal to the piezoelectric ceramic through the target circuit according to the type of stain to clean the lens, and the frequency of the second AC signal is greater than the frequency of the first AC signal. Since the piezoelectric ceramic is connected to the lens, in the process of the first module applying the first AC signal to the piezoelectric ceramic through the target circuit, the stain on the lens will change the vibration frequency of the piezoelectric ceramic, thereby changing the characteristic information of the target circuit and the characteristic information of the first AC signal, so that the second module can more accurately determine the type of stain on the lens based on this, and then, the second module can apply the second AC signal to the piezoelectric ceramic through the target circuit according to the type of stain to clean the lens. In this way, stains can be identified and cleaned by inputting different AC signals into the piezoelectric ceramic, which not only reduces costs but also enables faster and more accurate identification and cleaning of stains, thereby improving lens cleaning efficiency and lens cleaning effects.
[0171] Figure 4 This is a schematic diagram of the structure of a computer device provided in an embodiment of the present application. Figure 4 As shown, the computer device 4 includes: a processor 40, a memory 41, and a computer program 42 stored in the memory 41 and executable on the processor 40. When the processor 40 executes the computer program 42, the steps of the lens cleaning method in the above embodiment are implemented.
[0172] The computer device 4 may be a general-purpose computer device or a dedicated computer device. In a specific implementation, the computer device 4 may be a desktop computer, a portable computer, a network server, a PDA, a mobile phone, a tablet computer, a wireless terminal device, a communication device or an embedded device. The embodiment of the present application does not limit the type of the computer device 4. Those skilled in the art will understand that Figure 4It is only an example of the computer device 4 and does not constitute a limitation on the computer device 4. It may include more or fewer components than shown in the figure, or a combination of certain components, or different components, such as input and output devices, network access devices, etc.
[0173] The processor 40 may be a central processing unit (CPU), or other general-purpose processors, a digital signal processor (DSP), an application specific integrated circuit (ASIC), a field-programmable gate array (FPGA) or other programmable logic devices, discrete gate or transistor logic devices, discrete hardware components, etc. The general-purpose processor may be a microprocessor or any conventional processor.
[0174] In some embodiments, the memory 41 may be an internal storage unit of the computer device 4, such as a hard disk or memory of the computer device 4. In other embodiments, the memory 41 may also be an external storage device of the computer device 4, such as a plug-in hard disk, a smart media card (SMC), a secure digital (SD) card, a flash card, etc. equipped on the computer device 4. Further, the memory 41 may also include both an internal storage unit and an external storage device of the computer device 4. The memory 41 is used to store an operating system, an application program, a boot loader, data, and other programs. The memory 41 may also be used to temporarily store data that has been output or is to be output.
[0175] An embodiment of the present application also provides a computer device, which includes: at least one processor, a memory, and a computer program stored in the memory and executable on the at least one processor, and when the processor executes the computer program, the steps in any of the above-mentioned method embodiments are implemented.
[0176] An embodiment of the present application further provides a computer-readable storage medium, which stores a computer program. When the computer program is executed by a processor, the steps in the above-mentioned method embodiments can be implemented.
[0177] An embodiment of the present application provides a computer program product, which, when executed on a computer, enables the computer to execute the steps in the above-mentioned method embodiments.
[0178] If the integrated unit is implemented in the form of a software functional unit and sold or used as an independent product, it can be stored in a computer-readable storage medium. Based on this understanding, the present application implements all or part of the processes in the above method embodiments, which can be completed by instructing the relevant hardware through a computer program. The computer program can be stored in a computer-readable storage medium. When the computer program is executed by the processor, the steps of the above method embodiments can be implemented. Among them, the computer program includes computer program code, which can be in source code form, object code form, executable file or some intermediate form. The computer-readable medium may at least include: any entity or device that can carry the computer program code to the camera / terminal device, recording medium, computer memory, ROM (read-only memory), RAM (random access memory), CD-ROM (compact disc read-only memory), magnetic tape, floppy disk and optical data storage device. The computer-readable storage medium mentioned in the present application can be a non-volatile storage medium, in other words, it can be a non-transient storage medium.
[0179] It should be understood that all or part of the steps to implement the above embodiments can be implemented by software, hardware, firmware or any combination thereof. When implemented using software, it can be implemented in whole or in part in the form of a computer program product. The computer program product includes one or more computer instructions. The computer instructions can be stored in the above-mentioned computer readable storage medium.
[0180] In the above embodiments, the description of each embodiment has its own emphasis. For parts that are not described or recorded in detail in a certain embodiment, reference can be made to the relevant descriptions of other embodiments.
[0181] Those of ordinary skill in the art will appreciate that the units and algorithm steps of each example described in conjunction with the embodiments disclosed herein can be implemented in electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are performed in hardware or software depends on the specific application and design constraints of the technical solution. Professional and technical personnel can use different methods to implement the described functions for each specific application, but such implementation should not be considered to be beyond the scope of this application.
[0182] In the embodiments provided in the present application, it should be understood that the disclosed devices / computer equipment and methods can be implemented in other ways. For example, the device / computer equipment embodiments described above are only schematic, for example, the division of modules or units is only a logical function division, and there may be other division methods in actual implementation, such as multiple units or components can be combined or integrated into another system, or some features can be ignored or not executed. Another point is that the mutual coupling or direct coupling or communication connection shown or discussed can be through some interfaces, indirect coupling or communication connection of devices or units, which can be electrical, mechanical or other forms.
[0183] The units described as separate components may or may not be physically separated, and the components shown as units may or may not be physical units, that is, they may be located in one place or distributed on multiple network units. Some or all of the units may be selected according to actual needs to achieve the purpose of the solution of this embodiment.
[0184] It should be noted that the user information (including but not limited to user device information, user personal information, etc.) and data (including but not limited to data used for analysis, stored data, displayed data, etc.) involved in this application are all information and data authorized by the user or fully authorized by all parties, and the collection, use and processing of relevant data must comply with the relevant regulations and standards of relevant countries and regions, and corresponding operation entrances are provided for users to choose to authorize or refuse.
[0185] The embodiments described above are only used to illustrate the technical solutions of the present application, rather than to limit them. Although the present application has been described in detail with reference to the aforementioned embodiments, a person skilled in the art should understand that the technical solutions described in the aforementioned embodiments may still be modified, or some of the technical features may be replaced by equivalents. Such modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of the embodiments of the present application, and should all be included in the protection scope of the present application.
Claims
1. A lens cleaning method, characterized in that: Applied to a lens cleaning system, the lens cleaning system comprises a first module, a second module and a piezoelectric ceramic, the piezoelectric ceramic is connected to the lens, and the method comprises: The first module applies a first AC signal to the piezoelectric ceramic through a target circuit within a preset time period; The second module detects characteristic information of the target circuit and characteristic information of the first AC signal within the preset time period; The second module determines the type of stain on the lens according to the characteristic information of the target circuit and the characteristic information of the first AC signal; The second module acquires a corresponding frequency range and working mode from a second corresponding relationship according to the stain type, wherein the second corresponding relationship is a corresponding relationship between the stain type and the frequency range and the working mode, and the frequency range in the second corresponding relationship is determined based on a first preset resonant frequency and a second preset resonant frequency, and the second preset resonant frequency is greater than the first preset resonant frequency; The second module applies a second AC signal to the piezoelectric ceramic through the target circuit according to the frequency range and the working mode to clean the lens, wherein the frequency of the second AC signal is greater than the frequency of the first AC signal; Wherein, the stain type includes frost; In the second corresponding relationship, the frequency range corresponding to the frost is the first frequency range and the second frequency range, and the working modes corresponding to the frost include a third working mode and a fourth working mode in the order of execution. The third working mode is: using the minimum frequency of the second frequency range as the starting frequency, the maximum frequency of the second frequency range as the ending frequency, the fifth preset frequency as the frequency change step, the seventh preset time length as the working time of each frequency, the eighth preset time length as the intermittent time of each frequency, and the ninth preset time length as the total cycle time to generate the second AC signal; the fourth working mode is: using the minimum frequency of the first frequency range as the starting frequency, the maximum frequency of the first frequency range as the ending frequency, the sixth preset frequency as the frequency change step, the tenth preset time length as the working time of each frequency, the eleventh preset time length as the intermittent time of each frequency, and the twelfth preset time length as the total cycle time to generate the second AC signal; the center frequency of the first frequency range is the first preset resonant frequency, and the center frequency of the second frequency range is the second preset resonant frequency.
2. The method according to claim 1, characterized in that The characteristic information of the target circuit includes the resonant frequency of the target circuit, the characteristic information of the first AC signal includes the phase angle of the first AC signal, and the second module determines the type of stain on the lens according to the characteristic information of the target circuit and the characteristic information of the first AC signal, including: The second module determines a change in the resonant frequency according to the first preset resonant frequency and the resonant frequency of the target circuit; The second module determines a phase angle variation according to an initial phase angle and a phase angle of the first AC signal; The second module determines the type of stain according to the change in the resonant frequency and the change in the phase angle.
3. The method according to claim 2, characterized in that The second module determines the stain type according to the resonant frequency change and the phase angle change, including: The second module obtains the corresponding stain type from a first corresponding relationship according to the resonant frequency change amount and the phase angle change amount, wherein the first corresponding relationship is a corresponding relationship between the resonant frequency change range, the phase angle change range and the stain type.
4. The method according to claim 3, characterized in that In the first corresponding relationship, the resonant frequency variation range greater than 0 and less than or equal to the first preset frequency, and the phase angle variation range greater than 0 and less than or equal to the first preset phase angle, correspond to the stain type of dust; and / or, In the first corresponding relationship, the resonant frequency variation range greater than the first preset frequency and less than or equal to the second preset frequency, and the phase angle variation range greater than 0 and less than or equal to the second preset phase angle, correspond to the type of stain is water mist, the second preset frequency is greater than the first preset frequency, and the second preset phase angle is greater than the first preset phase angle; and / or, In the first corresponding relationship, the resonant frequency variation range greater than the second preset frequency and the phase angle variation range greater than the second preset phase angle correspond to frost as the stain type.
5. The method according to any one of claims 1 to 4, characterized in that: The types of stains include dust; In the second corresponding relationship, the frequency range corresponding to the dust is the first frequency range, and the working mode corresponding to the dust is: taking the minimum frequency of the first frequency range as the starting frequency, taking the maximum frequency of the first frequency range as the ending frequency, taking the third preset frequency as the frequency change step, taking the first preset time length as the working time of each frequency, taking the second preset time length as the intermittent time of each frequency, and taking the third preset time length as the total cycle time to generate the second AC signal; The center frequency of the first frequency range is the first preset resonant frequency.
6. The method according to any one of claims 1 to 4, characterized in that: The types of stains include water spray; In the second corresponding relationship, the frequency range corresponding to the water mist is the first frequency range and the second frequency range, and the working mode corresponding to the water mist includes the first working mode and the second working mode in the order of execution. The first working mode is: using the minimum frequency of the first frequency range as the starting frequency, the maximum frequency of the first frequency range as the ending frequency, the third preset frequency as the frequency change step, the first preset time length as the working time of each frequency, the second preset time length as the intermittent time of each frequency, and the third preset time length as the total cycle time to generate the second AC signal. The second working mode is: using the minimum frequency of the second frequency range as the starting frequency, the maximum frequency of the second frequency range as the ending frequency, the fourth preset frequency as the frequency change step, the fourth preset time length as the working time of each frequency, the fifth preset time length as the intermittent time of each frequency, and the sixth preset time length as the total cycle time to generate the second AC signal. The center frequency of the first frequency range is the first preset resonant frequency, and the center frequency of the second frequency range is the second preset resonant frequency.
7. A lens cleaning system, characterized in that: The lens cleaning system comprises a first module, a second module and a piezoelectric ceramic, wherein the piezoelectric ceramic is connected to the lens; The first module is used to apply a first AC signal to the piezoelectric ceramic through a target circuit within a preset time period; The second module is used to detect the characteristic information of the target circuit and the characteristic information of the first AC signal within the preset time period; determine the type of stain on the lens according to the characteristic information of the target circuit and the characteristic information of the first AC signal; obtain the corresponding frequency range and working mode from a second corresponding relationship according to the type of stain, the second corresponding relationship is the correspondence between the stain type and the frequency range and the working mode, the frequency range in the second corresponding relationship is determined based on the first preset resonant frequency and the second preset resonant frequency, and the second preset resonant frequency is greater than the first preset resonant frequency; according to the frequency range and the working mode, apply a second AC signal to the piezoelectric ceramic through the target circuit to clean the lens, the frequency of the second AC signal is greater than the frequency of the first AC signal; Wherein, the stain type includes frost; In the second corresponding relationship, the frequency range corresponding to the frost is the first frequency range and the second frequency range, and the working modes corresponding to the frost include a third working mode and a fourth working mode in the order of execution. The third working mode is: using the minimum frequency of the second frequency range as the starting frequency, the maximum frequency of the second frequency range as the ending frequency, the fifth preset frequency as the frequency change step, the seventh preset time length as the working time of each frequency, the eighth preset time length as the intermittent time of each frequency, and the ninth preset time length as the total cycle time to generate the second AC signal; the fourth working mode is: using the minimum frequency of the first frequency range as the starting frequency, the maximum frequency of the first frequency range as the ending frequency, the sixth preset frequency as the frequency change step, the tenth preset time length as the working time of each frequency, the eleventh preset time length as the intermittent time of each frequency, and the twelfth preset time length as the total cycle time to generate the second AC signal; the center frequency of the first frequency range is the first preset resonant frequency, and the center frequency of the second frequency range is the second preset resonant frequency.
8. A computer device, characterized in that: The computer device comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the computer program implements the method according to any one of claims 1 to 6 when executed by the processor.
9. A computer program product, characterized in that When the computer program product is executed on a computer device, the computer device is caused to execute the method according to any one of claims 1 to 6.
10. A computer-readable storage medium, characterized in that: The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the method according to any one of claims 1 to 6 is implemented.
Citation Information
Patent Citations
Cleaning device, and image capturing apparatus including cleaning device
US20200057301A1