Camera lens anti-fogging method, camera device, electronic equipment and storage medium
By covering the heating film on the surface of the camera lens and monitoring the temperature difference with sensors, the water mist problem caused by the camera lens due to the temperature difference is solved, and image clarity is maintained and equipment power consumption is optimized.
Patent Information
- Application Number
- CN202211192935.5
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-09-28
- Publication Date
- 2025-05-13
- Estimated Expiration
- 2042-09-28
AI Technical Summary
During use, the camera lenses have a large temperature difference between the inside and outside due to internal heating, which causes water vapor to condense and form water mist, affecting the clarity of the captured image.
By covering the heating film on the first and second side surfaces of the camera lens and equipped with a first sensor and a second sensor, temperature data on both sides are obtained. When the temperature difference is greater than the preset value, the heating film on the higher temperature side is heated to adjust the temperature difference.
Effectively prevent water mist from occurring on the inner and outer surfaces of the camera lens, maintain image clarity, and reduce the impact on equipment power consumption and thermal management.
Smart Images

Figure CN115567764B_ABST
Abstract
Description
Technical Field
[0001] The present application relates to the field of camera technology, and in particular to a camera lens anti-fogging method, a camera device, an electronic device and a computer-readable storage medium. Background Art
[0002] With the increasing popularity of smart electronic devices, more and more electronic devices have shooting functions, and as a result, camera technology is also constantly developing.
[0003] With the continuous upgrading of cameras, the size of image sensors is getting bigger and bigger, the number and weight of camera lenses are increasing, the thrust required by the motor is also increasing, the current required is also greater, the power consumption of the entire camera is increasing, and the heat generated is also increasing. As a result, during the actual use of the camera, due to the temperature difference between the internal and external environments, water vapor condenses on the inner surface of the lens to produce water mist; or, when the electronic device is moved from a low temperature environment to a high temperature environment, the water vapor in the high temperature environment encounters the low temperature lens and is easy to condense on the outer surface of the lens to produce water mist. Whether the water mist is generated on the inner or outer surface of the lens, it will affect the clarity of the image captured by the camera. Summary of the invention
[0004] The embodiments of the present application provide a camera lens anti-fogging method, a camera device, an electronic device, and a computer-readable storage medium, which can prevent water mist from forming on the inner and outer surfaces of a camera.
[0005] In a first aspect, the present application provides a method for preventing fogging of a camera lens, which is applied to a camera device, wherein the camera device comprises a camera lens, and a first sensor located on a first side and a second sensor located on a second side of the camera lens, wherein the first side surface and the second side surface of the camera lens are both covered with a heating film; the method comprises:
[0006] Acquire a first temperature collected by the first sensor and a second temperature collected by the second sensor;
[0007] determining a temperature difference between a first side and a second side of the camera lens based on the first temperature and the second temperature;
[0008] When the temperature difference is greater than a preset temperature difference, the heating film on the side corresponding to the higher temperature between the first temperature and the second temperature is heated.
[0009] In a second aspect, the present application further provides a camera device. The camera device comprises:
[0010] A camera lens assembly, the camera lens assembly comprising a camera lens, and a heating film located on a first side surface and a second side surface of the camera lens, wherein the transmittance of the heating film exceeds a preset transmittance;
[0011] A first sensor, located on a first side of the camera lens, for collecting a first temperature;
[0012] A second sensor, located on a second side of the camera lens, for collecting a second temperature;
[0013] A controller is electrically connected to the first sensor, the second sensor and the heating film, and is used to obtain a first temperature collected by the first sensor and a second temperature collected by the second sensor, determine a temperature difference between the first side and the second side of the camera lens according to the first temperature and the second temperature, and when the temperature difference is greater than a preset temperature difference, heat the heating film on the side corresponding to the higher temperature between the first temperature and the second temperature.
[0014] In a third aspect, the present application further provides an electronic device, wherein the electronic device comprises the above-mentioned camera device.
[0015] In a fourth aspect, the present application further provides a camera device, the camera device comprising:
[0016] Camera lenses;
[0017] A heating film is located on a first side surface and a second side surface of the camera lens;
[0018] A first sensor, located on a first side of the camera lens, for collecting a first temperature;
[0019] A second sensor, located on a second side of the camera lens, for collecting a second temperature;
[0020] A controller is electrically connected to the first sensor, the second sensor and the heating film, and the controller is configured to execute the above-mentioned camera lens anti-fogging method.
[0021] In a fifth aspect, the present application further provides a computer-readable storage medium. The computer-readable storage medium stores a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0022] Acquire a first temperature collected by the first sensor and a second temperature collected by the second sensor;
[0023] determining a temperature difference between a first side and a second side of the camera lens based on the first temperature and the second temperature;
[0024] When the temperature difference is greater than a preset temperature difference, the heating film on the side corresponding to the higher temperature between the first temperature and the second temperature is heated.
[0025] In a sixth aspect, the present application further provides a computer program product. The computer program product includes a computer program, and when the computer program is executed by a processor, the following steps are implemented:
[0026] Acquire a first temperature collected by the first sensor and a second temperature collected by the second sensor;
[0027] determining a temperature difference between a first side and a second side of the camera lens based on the first temperature and the second temperature;
[0028] When the temperature difference is greater than a preset temperature difference, the heating film on the side corresponding to the higher temperature between the first temperature and the second temperature is heated.
[0029] The above-mentioned camera lens anti-fogging method, camera device, electronic device and computer-readable storage medium, computer program product can obtain the first temperature collected by the first sensor and the second temperature collected by the second sensor, and determine the temperature difference between the first side and the second side of the camera lens according to the first temperature and the second temperature. When the temperature difference is greater than the preset temperature difference, the heating film on the side corresponding to the higher temperature of the first temperature and the second temperature is heated. When there is a temperature difference between the inner and outer sides of the camera lens, water mist is prevented from being generated on the surface of the camera lens, thereby avoiding affecting the clarity of the captured image. BRIEF DESCRIPTION OF THE DRAWINGS
[0030] In order to more clearly illustrate the embodiments of the present application or the technical solutions in the prior art, the drawings required for use in the embodiments or the description of the prior art 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 paying creative work.
[0031] Figure 1 A diagram showing an application environment of a method for preventing a camera lens from fogging in one embodiment;
[0032] Figure 2 is a flow chart of a method for preventing fogging of a camera lens in one embodiment;
[0033] Figure 3 is a flow chart of a method for preventing a camera lens from fogging in another embodiment;
[0034] Figure 4 is a flow chart of a method for preventing a camera lens from fogging in another embodiment;
[0035] Figure 5 is a schematic structural diagram of a camera device in one embodiment;
[0036] Figure 6 is a schematic structural diagram of a camera device in another embodiment;
[0037] Figure 7 is a structural block diagram of a camera lens anti-fogging device in one embodiment;
[0038] Figure 8 FIG. 4 is a diagram showing the internal structure of a computer device in one embodiment. DETAILED DESCRIPTION
[0039] In order to make the purpose, technical solution and advantages of the present application more clearly understood, the present application is further described in detail below in conjunction with the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are only used to explain the present application and are not used to limit the present application.
[0040] It is understood that the terms "first", "second", etc. used in this application may be used herein to describe various elements, but these elements are not limited by these terms. These terms are only used to distinguish a first element from another element. For example, without departing from the scope of this application, a first sensor may be referred to as a second sensor, and similarly, a second sensor may be referred to as a first sensor. Both the first sensor and the second sensor are sensors, but they are not the same sensor.
[0041] Due to the continuous upgrading of camera technology, the size of image sensors is getting larger and larger, the number of camera lenses is also gradually increasing and the weight is increasing. The greater the thrust required by the camera's autofocus motor, the greater the current required, which makes the power consumption of the entire camera device larger and larger, and the heating during use is getting more and more serious. During the use of the camera, due to the internal heating, a large temperature difference is generated between the inside and outside of the camera lens, and the water vapor inside the camera device will condense on the inner surface of the camera lens to form water mist. The water mist formed on the inner surface of the camera lens cannot be removed by wiping. You can only wait for the temperature of the inside and outside of the camera lens to reach the same level, or turn off the camera device to remove it. At the same time, it will also have an adverse effect on the clarity of the photos taken.
[0042] In addition, when the camera is moved from a lower temperature environment to a higher temperature environment, the water vapor in the higher temperature environment will condense into water mist when it meets the camera at a lower temperature, causing water mist to form on the outer surface of the camera lens, which requires manual wiping and will also affect the clarity of the photos taken.
[0043] In view of the problem that water mist is easily generated on the inner and outer sides of the camera lens in the above scenario, an embodiment of the present application provides a method for preventing water mist from forming on the camera lens, which can prevent water mist from forming on the camera lens.
[0044] The camera lens anti-fogging method provided in the embodiment of the present application can be applied to Figure 1 In the electronic device shown. The electronic device includes a camera device, which includes a camera lens 102, and a first sensor 104 on the first side of the camera lens 102 and a second sensor 106 on the second side, wherein the first side surface and the second side surface of the camera lens 102 are covered with a heating film (not shown in the figure). The electronic device obtains the first temperature collected by the first sensor 104 and the second temperature collected by the second sensor 106, and determines the temperature difference between the first side and the second side of the camera lens according to the first temperature and the second temperature. When the temperature difference is greater than the preset temperature difference, the heating film on the side corresponding to the higher temperature of the first temperature and the second temperature is heated. The electronic device can be, but is not limited to, various personal computers, laptops, smart phones, tablet computers, cameras, Internet of Things devices and portable wearable devices. The Internet of Things devices can be smart speakers, smart TVs, smart air conditioners, smart car-mounted devices, etc. Portable wearable devices can be smart watches, smart bracelets, head-mounted devices, etc.
[0045] In one embodiment, Figure 2 As shown, a method for preventing camera lenses from fogging is provided, and the method is applied to Figure 1 Taking the electronic device in as an example, the method includes the following steps 202 to 206.
[0046] Step 202: Acquire a first temperature collected by a first sensor and a second temperature collected by a second sensor.
[0047] In this embodiment, the first sensor and the second sensor may be temperature sensors of the same model and the same parameters, for example, they may be thermistors; the first sensor and the second sensor are respectively located on both sides of the camera lens, wherein the first sensor and the second sensor may directly contact the camera lens, or may be at a certain distance from the camera lens, for example, the first sensor and the second sensor are respectively located on both sides at the same distance from the camera lens. The first sensor and the second sensor may be one or more.
[0048] The first sensor is used to collect a first temperature corresponding to the first side of the camera lens, and the second sensor is used to collect a second temperature corresponding to the second side of the camera lens. Optionally, the first sensor can be used to collect a first temperature of the first side surface of the camera lens, and the second sensor can be used to collect a second temperature of the second side surface of the camera lens. Optionally, the first sensor can be used to collect a first temperature at a preset distance from the first side surface of the camera lens, and the second sensor can be used to collect a second temperature at a preset distance from the second side surface of the camera lens.
[0049] Optionally, the first sensor collects the first temperature at the same frequency as the second sensor collects the second temperature, and they are kept synchronous. That is, when the first sensor collects the first temperature, the second sensor also collects the second temperature, and the collection frequencies are the same. For example, when the camera device is started, the first sensor and the second sensor start working at the same time, the first sensor collects the first temperature while the second sensor collects the second temperature, and then transmits the first temperature and the second temperature to the processor of the electronic device.
[0050] Step 204: Determine a temperature difference between a first side and a second side of the camera lens according to the first temperature and the second temperature.
[0051] The electronic device can determine the temperature difference between the first side and the second side of the camera lens according to the first temperature and the second temperature. Optionally, the absolute value of the difference between the first temperature and the second temperature is used as the temperature difference between the first side and the second side of the camera lens.
[0052] Optionally, when there are multiple first temperatures and multiple second temperatures, the average of the multiple first temperatures can be used as the first target temperature, the average of the multiple second temperatures can be used as the second target temperature, and then the difference between the first target temperature and the second target temperature can be used as the temperature difference between the first side and the second side of the camera lens.
[0053] It can be understood that data processing of the difference between the first temperature and the second temperature to obtain the temperature difference between the first side and the second side of the camera lens should be included in the protection scope of the embodiments of the present application.
[0054] Step 206: When the temperature difference is greater than the preset temperature difference, the heating film on the side corresponding to the higher temperature between the first temperature and the second temperature is heated.
[0055] When the temperature difference is greater than the preset temperature difference, the electronic device heats the heating film on the side corresponding to the higher temperature of the first temperature and the second temperature. The preset temperature difference can be set according to the specific application environment, and the preset temperature difference in different environments may be different. For example, the electronic device selects the preset temperature difference corresponding to the application environment type by identifying the application environment type. The preset temperature difference can also be a fixed value, for example, the preset temperature difference is 3°C (Celsius). It can be understood that when the temperature difference between the first side and the second side of the camera lens is greater than the preset temperature difference, it is determined that the current application environment will cause the camera lens to generate water mist, then the heating film on the side corresponding to the higher temperature of the first temperature and the second temperature is heated to prevent the generation of water mist.
[0056] Optionally, when a first temperature corresponding to the first side of the camera lens is higher than a preset temperature difference of a second temperature corresponding to the second side, it is determined that the current application environment will cause water mist to be generated on the first side surface of the camera lens, and the electronic device heats the heating film on the first side surface of the camera lens; when a second temperature corresponding to the second side of the camera lens is higher than a preset temperature difference of the first temperature corresponding to the first side, it is determined that the current application environment will cause water mist to be generated on the second side surface of the camera lens, and the electronic device heats the heating film on the second side surface of the camera lens.
[0057] Optionally, when the temperature difference is greater than a preset temperature difference, the corresponding electric heating parameters can be determined according to the temperature difference, and then the heating film on the side corresponding to the higher temperature of the first temperature and the second temperature is electrically heated according to the electric heating parameters. The electric heating parameters can be parameters such as heating power, heating current, and heating voltage. In addition, the electric heating parameters corresponding to the first side and the second side can be the same or different, for example, Figure 3 As shown, when the first temperature corresponding to the first side of the camera lens is higher than the preset temperature difference of the second temperature corresponding to the second side, the first electric heating parameter is determined according to the temperature difference between the first side and the second side, and the heating film on the first side surface is heated according to the first electric heating parameter; when the second temperature corresponding to the second side of the camera lens is higher than the preset temperature difference of the first temperature corresponding to the first side, the second electric heating parameter is determined according to the temperature difference between the first side and the second side, and the heating film on the second side surface is heated according to the second electric heating parameter.
[0058] In the above-mentioned method for preventing fogging of camera lenses, by obtaining the first temperature collected by the first sensor and the second temperature collected by the second sensor, the temperature difference between the first side and the second side of the camera lens is determined according to the first temperature and the second temperature. When the temperature difference is greater than the preset temperature difference, the heating film on the side corresponding to the higher temperature of the first temperature and the second temperature is heated. When there is a temperature difference between the inner and outer sides of the camera lens, the surface of the camera lens with a higher temperature is prevented from condensing into water mist when it is cold, thereby avoiding the camera lens from fogging and affecting the clarity of the captured image.
[0059] In one embodiment, heating the heating film on the side corresponding to the higher temperature between the first temperature and the second temperature includes: determining a first current according to the temperature difference, and electrically heating the heating film on the side corresponding to the higher temperature between the first temperature and the second temperature according to the first current.
[0060] Optionally, the corresponding relationship between the temperature difference and the first current can be obtained through preliminary experiments, and the corresponding relationship between the temperature difference and the first current can be stored in an electronic device or in a database. When the temperature difference is greater than a preset temperature difference, the corresponding first current is determined from the database according to the temperature difference, and the heating film on the side corresponding to the higher temperature of the first temperature and the second temperature is electrically heated according to the first current. Among them, the temperature difference is positively correlated with the first current. It can be understood that the greater the temperature difference, the greater the temperature increase required, and the greater the corresponding first current.
[0061] Optionally, the electronic device determines a first current according to the temperature difference, and electrically heats the heating film on the side corresponding to the higher temperature between the first temperature and the second temperature according to the first current, and stops heating when the temperature difference is less than or equal to a preset temperature difference.
[0062] Optionally, when the currently determined first temperature difference is greater than the preset temperature difference, the electronic device determines a first current corresponding to the first temperature difference based on the first temperature difference, and electrically heats the heating film on the side corresponding to the higher temperature of the first temperature and the second temperature according to the first current corresponding to the first temperature difference; when the electronic device obtains the first temperature and the second temperature collected next time, when the second temperature difference between the first temperature and the second temperature is greater than the preset temperature, the first current corresponding to the second temperature difference is determined based on the second temperature difference, and then the heating film on the side corresponding to the higher temperature of the first temperature and the second temperature is electrically heated according to the first current corresponding to the second temperature difference; when the first temperature and the second temperature collected next time are obtained, when the second temperature difference between the first temperature and the second temperature is greater than the preset temperature, the first current corresponding to the second temperature difference is determined based on the second temperature difference, and then the heating film on the side corresponding to the higher temperature of the first temperature and the second temperature is electrically heated according to the first current corresponding to the second temperature difference; when obtaining the first temperature and the second temperature collected by subsequent sensors, the same processing flow is adopted, which will not be repeated here.
[0063] In an optional embodiment, if Figure 4As shown, the electronic device obtains the first temperature collected by the first sensor and the second temperature collected by the second sensor, and determines the temperature difference between the first side and the second side of the camera lens according to the first temperature and the second temperature. When the temperature difference is greater than the preset temperature difference, the first current is determined according to the corresponding relationship between the temperature difference and the first current, and the heating film on the side corresponding to the higher temperature of the first temperature and the second temperature is energized and heated according to the first current to obtain the heating film temperature. The electronic device adjusts the first current according to the heating film temperature to control the temperature of the corresponding heating film to always be within a suitable temperature range. Optionally, the first current is adjusted according to the temperature difference between the heating film temperature and the ambient temperature, for example, according to the relationship between the temperature difference between the heating film temperature and the ambient temperature and the current adjustment amount, according to the temperature difference between the heating film temperature and the ambient temperature, the current adjustment amount is determined, thereby adjusting the first current by the corresponding current adjustment amount. Wherein, the ambient temperature may refer to the air temperature of the corresponding side that is not directly in contact with the heating film, for example, the air temperature at a preset distance from the heating film on the corresponding side.
[0064] Optionally, the collection frequency of the first temperature and the second temperature is lower than the collection frequency of the heating film temperature, that is, after the first current is determined by collecting the first temperature and the second temperature once, the heating film temperature can be collected multiple times to adjust the first current multiple times. It can be understood that when the heating film temperature is higher than the ambient temperature, the first current is reduced accordingly; when the heating film temperature is lower than the ambient temperature, the first current is increased accordingly. It should be noted that the thermal conductivity of the camera lens in this embodiment is low, thereby ensuring that the heating film temperatures on the first side and the second side of the camera lens do not affect each other.
[0065] The method for preventing fogging of the camera lens in the above embodiment determines the first current according to the temperature difference, and electrically heats the heating film on the side corresponding to the higher temperature between the first temperature and the second temperature according to the first current. The heating film on the side corresponding to the higher temperature can be electrically heated by the first current, thereby achieving efficient regulation of the temperature of the heating film on the high-temperature side, thereby avoiding the formation of water fog when the high-temperature side of the camera lens is exposed to cold.
[0066] In some embodiments, heating the heating film on the side corresponding to the higher temperature between the first temperature and the second temperature includes: electrically heating the heating film on the side corresponding to the higher temperature between the first temperature and the second temperature according to a preset second current.
[0067] In this embodiment, when the temperature difference is greater than the preset temperature difference, the heating film on the side corresponding to the higher temperature of the first temperature and the second temperature is electrically heated by the preset second current, and when it is detected that the temperature difference is not greater than the preset temperature difference, the heating of the heating film is stopped. The second current is set according to the application environment of the electronic device, and the second current can be used to conveniently realize the control of electrically heating the heating film on the high temperature side of the camera lens of the electronic device, and can also prevent the camera lens from generating water mist.
[0068] In one embodiment, there are multiple first sensors and multiple second sensors; obtaining a first temperature corresponding to the first sensor and a second temperature corresponding to the second sensor includes:
[0069] The first temperature is determined according to each first sub-temperature collected by the plurality of first sensors; and the second temperature is determined according to each second sub-temperature collected by the plurality of second sensors.
[0070] Optionally, without affecting the field of view of photographing, multiple first sensors and multiple second sensors may be respectively arranged at different positions on both sides of the camera lens, for example, multiple first sensors may be evenly arranged on the outer edge of the first side of the camera lens, and multiple second sensors may be evenly arranged on the outer edge of the second side of the camera lens. The electronic device may determine the first temperature according to each first sub-temperature collected by the multiple first sensors, and determine the second temperature according to each second sub-temperature collected by the multiple second sensors, for example, the arithmetic mean, weighted average, maximum value, minimum value or middle value of each first sub-temperature collected by the multiple first sensors may be used as the first temperature; similarly, the arithmetic mean, weighted average, maximum value, minimum value or middle value of each second sub-temperature collected by the multiple second sensors may be used as the second temperature.
[0071] In this embodiment, by setting up multiple first sensors and multiple second sensors, the first temperature is determined according to the first sub-temperatures collected by the multiple first sensors, and the second temperature is determined according to the second sub-temperatures collected by the multiple second sensors. A more accurate temperature value that can actually reflect the temperatures on both sides of the camera lens can be obtained, thereby determining a more accurate temperature difference, heating the heating film on the side corresponding to the higher temperature, and more accurately preventing the camera lens from fogging.
[0072] In one embodiment, the camera device includes a camera lens, and a first thermistor located on a first side of the camera lens and a second thermistor located on a second side, and the first side surface and the second side surface of the camera lens are covered with a conductive heating film. When the camera device is started, the first thermistor and the second thermistor start working, and the electronic device obtains the first temperature collected by the first thermistor and the second temperature collected by the second thermistor; when the first temperature is 3°C higher than the second temperature, it is determined that the current scene is likely to cause water mist to form on the first side surface of the camera lens, and the electronic device controls the conductive heating film on the first side surface to be energized and heated, wherein the energized current is determined according to the relationship between the predetermined temperature difference and the first current, so that the temperature of the first side surface is increased to prevent the first side surface from generating water mist when it is cold; when the second temperature is 3°C higher than the first temperature, it is determined that the current scene is likely to cause water mist to form on the second side surface of the camera lens, and the electronic device controls the conductive heating film on the second side surface to be energized and heated, wherein the energized current is determined according to the relationship between the predetermined temperature difference and the first current, so that the temperature of the second side surface is increased to prevent the second side surface from generating water mist when it is cold.
[0073] In one embodiment, Figure 5 As shown, a camera device is provided, which includes a camera lens assembly, a first sensor 508, a second sensor 510 and a controller 512, wherein the camera lens assembly includes a camera lens 502, and a heating film located on the first side surface and the second side surface of the camera lens 502, wherein the transmittance of the heating film exceeds a preset transmittance; the first sensor 508 is located on the first side of the camera lens and is used to collect a first temperature; the second sensor 510 is located on the second side of the camera lens and is used to collect a second temperature; the controller 512 is electrically connected to the first sensor 508, the second sensor 510 and the heating film, and the controller is used to obtain the first temperature collected by the first sensor 508 and the second temperature collected by the second sensor 510, determine the temperature difference between the first side and the second side of the camera lens 502 according to the first temperature and the second temperature, and when the temperature difference is greater than the preset temperature difference, heat the heating film on the side corresponding to the higher temperature of the first temperature and the second temperature.
[0074] Optionally, the camera lens assembly includes a camera lens 502, and a first heating film 504 located on the first side surface of the camera lens 502, and a second heating film 506 located on the second side surface of the camera lens 502, wherein the light transmittance of the first heating film 504 and the second heating film 506 both exceed the preset transmittance. The camera lens 502 is a transparent lens on an electronic device that protects the camera sensor. The material of the camera lens 502 can be glass or plastic. In order not to affect the effect of the camera sensor acquiring visible light for imaging, the light transmittance of the camera lens is greater than the preset transmittance. Further, the light transmittance of the first heating film located on the first side surface of the camera lens 502 and the second heating film located on the second side surface also need to be greater than the preset transmittance. The preset transmittance can be set according to the imaging requirements of the camera sensor, for example, the preset transmittance is 90%. It should be noted that the first side surface and the second side surface of the camera lens 502 in this embodiment refer to the planes perpendicular to the light entering the camera lens during shooting.
[0075] It can be understood that in this embodiment, the first heating film 504 located on the first side surface of the camera lens 502, or the second heating film 506 located on the second side surface of the camera lens 502, can be directly coated on the surface of the camera lens 502, or can be installed on both sides of the camera lens, and the heating film can heat the corresponding side surface of the camera lens 502 after being energized. The heating film can generate heat after being energized, and the heating circuit of the heating film can be set as a pure resistance circuit.
[0076] In this embodiment, the first sensor 508 and the second sensor 510 are temperature sensors, such as thermistors, thermocouples, platinum resistors, etc. Optionally, the first sensor 508 and the second sensor 510 are temperature sensors of the same model and specification.
[0077] Optionally, the controller is electrically connected to the whole consisting of the first sensor, the second sensor and the heating film through a metal dome.
[0078] The above-mentioned camera device can obtain the first temperature collected by the first sensor and the second temperature collected by the second sensor, and determine the temperature difference between the first side and the second side of the camera lens according to the first temperature and the second temperature. When the temperature difference is greater than the preset temperature difference, the heating film on the side corresponding to the higher temperature of the first temperature and the second temperature is heated. The heating film on the corresponding side heats up, which can effectively prevent the corresponding side surface of the camera lens from generating water mist when it is cold.
[0079] In one embodiment, the heating material of the heating film is a resistive material, and the resistive material includes at least one of an oxide heating material, a metal heating material, a carbon silicon heating material, a silicon molybdenum heating material or a ceramic heating material.
[0080] Optionally, the heating material of the heating film can be composed of one heating material or a mixture of multiple heating materials. The light transmittance of the heating film is greater than a preset transmittance, for example, the light transmittance for the visible light band of 380-750nm is greater than 90%.
[0081] Optionally, the heating film is an indium tin oxide (ITO) film, which is deposited on the surface by physical vapor deposition or sputtering deposition.
[0082] Optionally, the heating film can be formed by hot pressing conductive ink and metal current-carrying strips between insulating polyester films after processing. For example, the heating film is a film of a preset thickness formed by hot pressing a heating material into a polyimide film (PI film).
[0083] In some embodiments, the preset transmittance is 90%, which can meet the requirements of conventional camera sensors for receiving light.
[0084] In one embodiment, the camera device is Figure 6 As shown, the camera device includes a camera lens assembly 600, a spring 608 and a main board 610. The camera lens assembly 600 includes a camera lens 606, a first heating film 602 located on a first side surface of the camera lens 606, and a second heating film 606 on a second side surface; the camera lens assembly 600 is connected to the main board 610 through the spring 608, and further, the camera lens assembly 600 is electrically connected to a power supply 612 in the main board 610 through the spring 608. Optionally, the first heating film 602 is electrically connected to the power supply 612 through the spring 608, and the second heating film 606 is electrically connected to the power supply 612 through the spring 608.
[0085] Optionally, the mainboard 610 is also connected to a first sensor and a second sensor, wherein the first sensor is located on a first side of the camera lens and the second sensor is located on a second side of the camera lens 606 .
[0086] Optionally, a battery cover is provided outside the camera lens assembly, and the battery cover is used to support and fix the camera lens 606.
[0087] The above-mentioned camera device connects the main board and the camera lens assembly through a spring clip, which facilitates the installation and connection of the main board and the camera lens assembly. The main board obtains the first temperature collected by the first sensor and the second temperature collected by the second sensor, and determines the temperature difference between the first side and the second side of the camera lens based on the first temperature and the second temperature. When the temperature difference is greater than the preset temperature difference, the heating film on the side corresponding to the higher temperature of the first temperature and the second temperature is heated, so that the surface temperature of the camera lens on the side corresponding to the higher temperature is not lower than the ambient temperature, thereby preventing the generation of water mist.
[0088] In one embodiment, an electronic device is provided. The electronic device includes the camera device in the above embodiment.
[0089] In one embodiment, the electronic device includes a mainboard and the camera device in the above embodiment, the camera device is electrically connected to the mainboard via a spring, and the heating film of the camera device is powered by a power supply on the mainboard.
[0090] In the above embodiment, the electronic device can obtain the first temperature collected by the first sensor and the second temperature collected by the second sensor, and determine the temperature difference between the first side and the second side of the camera lens based on the first temperature and the second temperature. When the temperature difference is greater than the preset temperature difference, the heating film on the side corresponding to the higher temperature of the first temperature and the second temperature is heated, so that the surface temperature of the camera lens on the side corresponding to the higher temperature is not lower than the ambient temperature, thereby preventing the generation of water mist.
[0091] In one embodiment, a camera device is provided. Figure 5 The camera device includes a camera lens, a heating film, a first sensor, a second sensor and a controller; wherein the heating film is located on the first side and the second side of the camera lens, the first sensor is located on the first side of the camera lens, and is used to collect a first temperature, the second sensor is on the second side of the camera lens, and is used to collect a second temperature, the controller is electrically connected to the first sensor, the second sensor and the heating film, and the controller is configured to execute the camera lens anti-fogging method in the above-mentioned embodiments.
[0092] The camera device in this embodiment obtains the first temperature collected by the first sensor and the second temperature collected by the second sensor through the controller, and determines the temperature difference between the first side and the second side of the camera lens based on the first temperature and the second temperature. When the temperature difference is greater than the preset temperature difference, the heating film on the side corresponding to the higher temperature of the first temperature and the second temperature is heated, so that the surface temperature of the camera lens on the side corresponding to the higher temperature is not lower than the ambient temperature, thereby preventing the generation of water mist.
[0093] It should be understood that, although the various steps in the flowcharts involved in the above-mentioned embodiments are displayed in sequence according to the indication of the arrows, these steps are not necessarily executed in sequence according to the order indicated by the arrows. Unless there is a clear explanation in this article, the execution of these steps does not have a strict order restriction, and these steps can be executed in other orders. Moreover, at least a part of the steps in the flowcharts involved in the above-mentioned embodiments can include multiple steps or multiple stages, and these steps or stages are not necessarily executed at the same time, but can be executed at different times, and the execution order of these steps or stages is not necessarily to be carried out in sequence, but can be executed in turn or alternately with other steps or at least a part of the steps or stages in other steps.
[0094] Based on the same inventive concept, the embodiment of the present application also provides a camera lens anti-fogging device for implementing the above-mentioned camera lens anti-fogging method. The implementation scheme for solving the problem provided by the device is similar to the implementation scheme recorded in the above-mentioned method, so the specific limitations in one or more camera lens anti-fogging device embodiments provided below can refer to the limitations of the camera lens anti-fogging method above, and will not be repeated here.
[0095] In one embodiment, Figure 7 As shown, a camera lens anti-fogging device is provided, which is applied to a camera device, wherein the camera device comprises a camera lens, and a first sensor located on a first side and a second sensor located on a second side of the camera lens, wherein the first side surface and the second side surface of the camera lens are both covered with a heating film; the camera lens anti-fogging device comprises: a temperature acquisition module 702, a temperature difference determination module 704 and a heating determination module 706, wherein:
[0096] A temperature acquisition module 702, configured to acquire a first temperature acquired by the first sensor and a second temperature acquired by the second sensor;
[0097] a temperature difference determination module 704, configured to determine a temperature difference between a first side and a second side of the camera lens according to the first temperature and the second temperature;
[0098] The heating determination module 706 is used to heat the heating film on the side corresponding to the higher temperature between the first temperature and the second temperature when the temperature difference is greater than a preset temperature difference.
[0099] In one embodiment, the heating determination module 706 is further configured to:
[0100] A first current is determined according to the temperature difference, and the heating film on the side corresponding to the higher temperature between the first temperature and the second temperature is electrically heated according to the first current.
[0101] In one embodiment, the heating determination module 706 is further configured to:
[0102] The heating film on the side corresponding to the higher temperature between the first temperature and the second temperature is electrically heated according to a preset second current.
[0103] In one embodiment, the first sensor and the second sensor are both multiple; the temperature acquisition module 702 is further used to:
[0104] Determine the first temperature according to each first sub-temperature collected by a plurality of the first sensors;
[0105] The second temperature is determined according to each second sub-temperature collected by a plurality of the second sensors.
[0106] Each module in the above-mentioned camera lens anti-fogging device can be implemented in whole or in part by software, hardware and their combination. Each module can be embedded in or independent of the processor in the computer device in the form of hardware, or can be stored in the memory of the computer device in the form of software, so that the processor can call and execute the corresponding operations of each module.
[0107] In one embodiment, a computer device is provided. The computer device may be a server, and its internal structure diagram may be as follows: Figure 8 As shown. The computer device includes a processor, a memory, an input / output interface (Input / Output, referred to as I / O) and a communication interface. Among them, the processor, the memory and the input / output interface are connected through a system bus, and the communication interface is connected to the system bus through the input / output interface. Among them, the processor of the computer device is used to provide computing and control capabilities. The memory of the computer device includes a non-volatile storage medium and an internal memory. The non-volatile storage medium stores an operating system, a computer program and a database. The internal memory provides an environment for the operation of the operating system and the computer program in the non-volatile storage medium. The database of the computer device is used to store the corresponding relationship data between the temperature difference and the first current. The input / output interface of the computer device is used to exchange information between the processor and an external device. The communication interface of the computer device is used to communicate with an external terminal through a network connection. When the computer program is executed by the processor, a method for preventing fogging of a camera lens is implemented.
[0108] Those skilled in the art will understand that Figure 8 The structure shown in the figure is only a block diagram of a part of the structure related to the solution of the present application, and does not constitute a limitation on the computer device to which the solution of the present application is applied. The specific computer device may include more or fewer components than those shown in the figure, or combine certain components, or have a different arrangement of components.
[0109] The embodiment of the present application also provides a computer-readable storage medium. One or more non-volatile computer-readable storage media containing computer-executable instructions, when the computer-executable instructions are executed by one or more processors, the processors execute the steps of the camera lens anti-fogging method.
[0110] An embodiment of the present application also provides a computer program product comprising instructions, which, when executed on a computer, enables the computer to execute a method for preventing a camera lens from fogging.
[0111] 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 relevant laws, regulations and standards of relevant countries and regions.
[0112] Those skilled in the art can understand that all or part of the processes in the above-mentioned embodiment methods can be completed by instructing the relevant hardware through a computer program, and the computer program can be stored in a non-volatile computer-readable storage medium. When the computer program is executed, it can include the processes of the embodiments of the above-mentioned methods. Among them, any reference to the memory, database or other medium used in the embodiments provided in the present application can include at least one of non-volatile and volatile memory. Non-volatile memory can include read-only memory (ROM), magnetic tape, floppy disk, flash memory, optical memory, high-density embedded non-volatile memory, resistive random access memory (ReRAM), magnetoresistive random access memory (MRAM), ferroelectric random access memory (FRAM), phase change memory (PCM), graphene memory, etc. Volatile memory can include random access memory (RAM) or external cache memory, etc. As an illustration and not limitation, RAM can be in various forms, such as static random access memory (SRAM) or dynamic random access memory (DRAM). The database involved in each embodiment provided in this application may include at least one of a relational database and a non-relational database. Non-relational databases may include distributed databases based on blockchains, etc., but are not limited to this. The processor involved in each embodiment provided in this application may be a general-purpose processor, a central processing unit, a graphics processor, a digital signal processor, a programmable logic device, a data processing logic device based on quantum computing, etc., but are not limited to this.
[0113] The technical features of the above embodiments may be arbitrarily combined. To make the description concise, not all possible combinations of the technical features in the above embodiments are described. However, as long as there is no contradiction in the combination of these technical features, they should be considered to be within the scope of this specification.
[0114] The above-described embodiments only express several implementation methods of the present application, and the descriptions thereof are relatively specific and detailed, but they cannot be understood as limiting the scope of the present application. It should be pointed out that, for a person of ordinary skill in the art, several variations and improvements can be made without departing from the concept of the present application, and these all belong to the protection scope of the present application. Therefore, the protection scope of the present application shall be subject to the attached claims.
Claims
1. A method for preventing camera lenses from fogging, characterized in that: Applied to a camera device, the camera device comprises a camera lens, and a first sensor located on a first side and a second sensor located on a second side of the camera lens, wherein the first side surface and the second side surface of the camera lens are both covered with a heating film; the method comprises: Acquire a first temperature collected by the first sensor and a second temperature collected by the second sensor; determining a temperature difference between a first side and a second side of the camera lens based on the first temperature and the second temperature; When the temperature difference is greater than a preset temperature difference, the heating film on the side corresponding to the higher temperature between the first temperature and the second temperature is heated.
2. The method according to claim 1, characterized in that The step of heating the heating film on the side corresponding to the higher temperature between the first temperature and the second temperature comprises: Determine a first current from a database according to the temperature difference, and electrically heat the heating film on the side corresponding to the higher temperature between the first temperature and the second temperature according to the first current; The corresponding relationship between the temperature difference and the first current is obtained through experiments, and the corresponding relationship between the temperature difference and the first current is stored in a database.
3. The method according to claim 1, characterized in that The step of heating the heating film on the side corresponding to the higher temperature between the first temperature and the second temperature comprises: The heating film on the side corresponding to the higher temperature between the first temperature and the second temperature is electrically heated according to a preset second current; wherein the second current is set according to the application environment of the electronic device.
4. The method according to claim 1, characterized in that: There are multiple first sensors and multiple second sensors; the step of obtaining a first temperature collected by the first sensor and a second temperature collected by the second sensor includes: Determine the first temperature according to each first sub-temperature collected by a plurality of the first sensors; The second temperature is determined according to each second sub-temperature collected by a plurality of the second sensors.
5. A camera device, characterized in that: include: A camera lens assembly, the camera lens assembly comprising a camera lens, and a heating film located on a first side surface and a second side surface of the camera lens, wherein the transmittance of the heating film exceeds a preset transmittance; A first sensor, located on a first side of the camera lens, for collecting a first temperature; A second sensor, located on a second side of the camera lens, for collecting a second temperature; A controller is electrically connected to the first sensor, the second sensor and the heating film, and is used to obtain a first temperature collected by the first sensor and a second temperature collected by the second sensor, determine a temperature difference between the first side and the second side of the camera lens according to the first temperature and the second temperature, and when the temperature difference is greater than a preset temperature difference, heat the heating film on the side corresponding to the higher temperature between the first temperature and the second temperature.
6. The imaging device according to claim 5, characterized in that: The heating material of the heating film is a resistance material, and the resistance material includes at least one of an oxide heating material, a metal heating material, a carbon silicon heating material, a silicon molybdenum heating material or a ceramic heating material.
7. The imaging device according to claim 5, wherein: The preset transmittance is 90%.
8. An electronic device, characterized in that: The invention comprises the camera device as claimed in any one of claims 5 to 7.
9. A camera device, characterized in that: include: Camera lenses; A heating film is located on a first side surface and a second side surface of the camera lens; A first sensor, located on a first side of the camera lens, for collecting a first temperature; A second sensor, located on a second side of the camera lens, for collecting a second temperature; A controller is electrically connected to the first sensor, the second sensor and the heating film, and the controller is configured to execute the camera lens anti-fogging method according to any one of claims 1 to 4.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that: When the computer program is executed by a processor, the steps of the camera lens anti-fogging method according to any one of claims 1 to 4 are implemented.
11. A computer program product comprising instructions, which, when executed on a computer, enables the computer to execute the camera lens anti-fogging method according to any one of claims 1 to 4.
Citation Information
Patent Citations
Lens barrel and camera module comprising same
CN107690594A
Method for preventing camera lens from fogging and camera module
CN110248060A