Defogging method and device of camera equipment, camera equipment and storage medium
By calculating the moisture permeation rate and heating time inside and outside the camera equipment, the problem of repeated fogging of the camera equipment window was solved, achieving efficient defogging and energy saving.
Patent Information
- Application Number
- CN202411169050.2
- Authority / Receiving Office
- CN · China
- Patent Type
- Applications(China)
- Current Assignee / Owner
- Filing Date
- 2024-08-23
- Publication Date
- 2026-03-03
AI Technical Summary
The existing camera equipment still has high internal humidity after the fog in the viewing window disappears and heating stops, causing repeated fogging and affecting the image acquisition effect.
By acquiring the internal temperature and relative humidity of the camera device, the moisture permeation rate between the inside and outside is determined, and the heating time is calculated based on this. The heating element is used to heat the window to remove fog, ensuring that the internal humidity is less than or equal to the preset value after heating.
It effectively prevents repeated fogging of the viewing window, improves the defogging effect, and maintains dryness through the heat of the camera equipment itself, avoiding the energy waste of repeated heating.
Smart Images

Figure CN121603753A_ABST
Abstract
Description
Technical Field
[0001] This invention relates to the field of camera technology, and more particularly to a method, apparatus, camera device, and storage medium for defogging a camera. Background Technology
[0002] The security industry typically uses video cameras as image acquisition devices. These cameras mainly consist of a housing and an image acquisition module located within a mounting cavity. The housing is primarily composed of a front panel and a rear panel. The front panel has a viewing window, which corresponds to the lens position. The lens identifies and acquires images through the viewing window. To ensure the clarity and accuracy of image acquisition, the viewing window is generally made of a material with good light transmittance, such as glass or transparent plastic. However, due to environmental factors, glass is prone to fogging, thus affecting image acquisition quality. Therefore, it is necessary to defog the viewing window of the video camera.
[0003] In related technologies, when it is determined that there is fog in the viewing window of the camera device, the heating element is controlled to heat up; when it is detected that there is no fog in the viewing window, the heating element is stopped.
[0004] However, the aforementioned technologies only remove fog from the viewing window by heating. Heating is stopped when no fog is detected in the viewing window. However, the humidity inside the camera device is still very high. Therefore, there is a risk of repeated fogging after heating is stopped, resulting in poor defogging effect of the camera device. Summary of the Invention
[0005] This invention provides a method, apparatus, camera device, and storage medium for defogging a camera, in order to solve the defects in the prior art that result in poor defogging performance of camera devices.
[0006] This invention provides a method for defogging a camera device, comprising: If it is determined that there is fog in the window of the camera device, or if it is predicted that there will be fog in the window of the camera device in the future, the internal temperature and first relative humidity of the camera device are obtained. The moisture permeation rate between the inside and outside of the camera device is determined based on the temperature, the first relative humidity, and the second relative humidity, wherein the second relative humidity is the expected value of the internal humidity of the camera device after the window heating is completed; The heating time is determined based on the moisture permeation rate; Based on the heating time, the viewing window of the camera device is heated to remove fog from the viewing window.
[0007] According to a defogging method for a camera device provided by the present invention, the step of determining the moisture permeation rate between the interior and exterior of the camera device based on the temperature, the first relative humidity, and the second relative humidity includes: The absolute moisture content of the air is determined based on the temperature and the first relative humidity. The target moisture content is determined based on the absolute moisture content of the air and the preset amount of water to be released from the internal structural components of the camera device. Determine the condensation temperature based on the target moisture content; The moisture permeation rate is determined based on the condensation temperature and the second relative humidity.
[0008] According to a defogging method for a camera device provided by the present invention, the step of determining the moisture permeation rate based on the dew condensation temperature and the second relative humidity includes: Obtain the surface area and moisture permeability coefficient of different materials in the housing of the camera device; Based on the condensation temperature and the second relative humidity, determine the target humidity control absolute moisture content; The moisture permeability rate is determined based on the target humidity control absolute moisture content, the air absolute moisture content, the surface area of each material, and the moisture permeability influence coefficient of each material.
[0009] According to a defogging method for a camera device provided by the present invention, the step of determining the moisture permeation rate based on the dew condensation temperature and the second relative humidity includes: Obtain the surface area and moisture permeability coefficient of different materials in the housing of the camera device; The moisture permeability rate is determined based on the second relative humidity, the first relative humidity, the condensation temperature, the temperature, the surface area of each material, and the moisture permeability influence coefficient of each material.
[0010] According to a defogging method for a camera device provided by the present invention, the step of determining the heating duration based on the moisture permeation rate includes: Based on the condensation temperature and the second relative humidity, determine the target humidity control absolute moisture content; The difference between the target moisture content and the target humidity-controlled absolute moisture content is determined as the moisture permeability of the camera device's outer casing. The heating duration is determined based on the amount of water permeable to the outer shell and the permeation rate.
[0011] According to a defogging method for a camera device provided by the present invention, the step of heating the viewing window of the camera device based on the heating time to defog the viewing window includes: Determine the target temperature difference between the condensation temperature and the first preset temperature, where the first preset temperature is the average internal temperature of the camera device after it is powered on. Based on the correspondence between temperature difference and heating power, the target heating power corresponding to the target temperature difference is determined; Based on the heating duration and the target heating power, the viewing window of the camera device is heated to remove fog from the viewing window.
[0012] According to a defogging method for a camera device provided by the present invention, the step of obtaining the corresponding temperature and first relative humidity inside the camera device includes: If the camera device includes a temperature and humidity detection module, and it is determined that the power outage duration of the camera device in the most recent historical period is greater than a first preset duration, the current temperature inside the camera device collected by the temperature and humidity detection module is determined as the temperature, and the current humidity inside the camera device is determined as the first relative humidity. If the camera device includes the temperature and humidity detection module, and it is determined that the power outage duration of the camera device in the most recent historical period is less than or equal to the first preset duration, then the second preset temperature is determined as the temperature, and the preset humidity is determined as the first relative humidity. The second preset temperature is the temperature of the preset environment in which the camera device is located, and the preset humidity is the relative humidity of the preset environment. If the temperature and humidity detection module is not included inside the camera device, the second preset temperature is determined as the temperature, and the preset humidity is determined as the first relative humidity.
[0013] The present invention also provides a defogging device for a camera, comprising: The acquisition unit is used to acquire the internal temperature and first relative humidity of the camera device when it is determined that there is fog in the window of the camera device, or when it is predicted that there will be fog in the window of the camera device in the future time period. The first determining unit is configured to determine the moisture permeation rate between the interior and exterior of the camera device based on the temperature, the first relative humidity, and the second relative humidity, wherein the second relative humidity is the expected value of the internal humidity of the camera device after the window heating is completed; The second determining unit is used to determine the heating duration based on the moisture permeation rate; A defogging unit is used to heat the viewing window of the camera device based on the heating time in order to defog the viewing window.
[0014] The present invention also provides a camera device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor executes the program to implement the defogging method of any of the camera devices described above.
[0015] The present invention also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the defogging method of any of the above-described camera devices.
[0016] The present invention also provides a computer program product, including a computer program that, when executed by a processor, implements the defogging method of any of the above-described camera devices.
[0017] The present invention provides a defogging method, apparatus, camera device, and storage medium for a camera device. When it is determined that fog exists in the viewport of the camera device, or when it is predicted that fog will exist in the viewport of the camera device in the future, the method acquires the internal temperature and a first relative humidity of the camera device. Based on the temperature, the first relative humidity, and a second relative humidity, it determines the moisture permeation rate between the inside and outside of the camera device. The second relative humidity is the expected value of the internal humidity of the camera device after the viewport heating is completed. Based on the moisture permeation rate, it determines the heating time required to exhaust the internal humid air through heating, ensuring that the internal humidity of the camera device after heating is less than or equal to the second relative humidity. Because the internal humidity of the camera device is low after heating, the heat generated by the camera device itself can be used to prevent fogging of the viewport, thus preventing repeated fogging and improving the defogging effect of the camera device. Attached Figure Description
[0018] To more clearly illustrate the technical solutions in this invention or the prior art, the drawings used in the description of the embodiments or the prior art will be briefly introduced below. Obviously, the drawings described below are some embodiments of this invention. For those skilled in the art, other drawings can be obtained from these drawings without creative effort.
[0019] Figure 1 This is one of the flowcharts illustrating the defogging method for a camera device provided in an embodiment of the present invention.
[0020] Figure 2 This is the second schematic flowchart of the defogging method for a camera device provided in the embodiments of the present invention.
[0021] Figure 3 This is the third flowchart illustrating the defogging method for a camera device provided in this embodiment of the invention.
[0022] Figure 4 This is the fourth flowchart illustrating the defogging method for a camera device provided in this embodiment of the invention.
[0023] Figure 5 This is a schematic diagram of the structure of the defogging device of the camera equipment provided in the embodiment of the present invention.
[0024] Figure 6 This is a schematic diagram of the physical structure of the camera device provided in an embodiment of the present invention. Detailed Implementation
[0025] To make the objectives, technical solutions, and advantages of this invention clearer, the technical solutions of this invention will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only some, not all, of the embodiments of this invention. All other embodiments obtained by those skilled in the art based on the embodiments of this invention without creative effort are within the scope of protection of this invention.
[0026] To ensure image clarity and accuracy, the viewing window is typically made of highly transparent materials, such as glass or transparent plastic. Since the glass is in direct contact with the external environment, when the external temperature is low, the low temperature is conducted through the glass itself and manifests on its inner surface. Inside the camera device, the air heats up due to the operation of the internal electronic components. This warm air (containing high humidity) condenses when it encounters the cool glass, affecting its light transmittance and causing fogging on the viewing window, thus impacting image acquisition. Therefore, defogging of the camera device's viewing window is necessary. Current technologies simply remove fog from the viewing window by heating, stopping heating once no fog is detected. However, this leaves the humidity inside the camera device high, increasing the risk of repeated fogging after heating stops, resulting in poor defogging performance.
[0027] Based on this, the present invention proposes a defogging method for camera equipment based on the following principle: The driving force for the diffusion of gaseous water molecules inside and outside the camera equipment is the concentration gradient. Therefore, even in a camera equipment with a well-sealed outer shell, microscopic molecular gaps exist in the outer shell, resulting in moisture exchange between the inside and outside of the camera equipment. However, the size of the microscopic molecular gaps varies depending on the outer shell material, and the permeation rate also differs. Therefore, for a specific camera equipment, when the outer shell materials involved in the sealing are fixed, the permeation rates inside and outside are related based on testing. The present invention determines the permeation rate between the inside and outside of the camera equipment based on the second relative humidity, the corresponding internal temperature of the camera equipment, and the first relative humidity. Based on the permeation rate, the heating time required to exhaust the internal humid air through heating is determined, ensuring that the internal humidity of the camera equipment is less than or equal to the second relative humidity after heating. Since the internal humidity of the camera equipment is low after heating, the heat generated by the camera equipment itself can be used to prevent fogging of the viewing window, thus preventing repeated fogging and improving the defogging effect of the camera equipment.
[0028] The known definitions involved in this invention are described below with reference to the following: relative humidity The partial pressure of water vapor in moist air, P s It can be expressed using the following formula (1): (1)
[0029] The curve for 100% relative humidity is the saturated vapor pressure curve of moist air, which is only related to the temperature value T. Therefore, the saturated water vapor partial pressure curve of moist air at temperature T can be expressed as: , It represents the partial pressure of saturated water vapor in moist air at temperature T.
[0030] The higher the partial pressure of water vapor in the air, the higher the moisture content. According to the law of partial pressure of gases, we have the following formula (2): (2)
[0031] in, B represents the partial pressure of dry air, and B represents atmospheric pressure.
[0032] Next, let's introduce the concept of moisture content d (unit: g / kg dry air): The amount of water vapor contained in 1 kg of dry air is expressed by the following formula (3): (3)
[0033] in, This represents the ratio of the molar mass of moist air to the molar mass of dry air, preferably... =622. Below, we combine... Figures 1-4 This invention describes a defogging method for a camera device. The defogging method is performed by various types of camera devices, such as network cameras (IP cameras, IPCs). Heating elements are provided around or on the viewing window of the camera device. Power is supplied to the heating elements to heat the viewing window, thereby achieving the purpose of defogging. The electrodes of the heating elements are electrically connected to the power supply module.
[0034] Figure 1 This is one of the flowcharts illustrating the defogging method for a camera device provided in an embodiment of the present invention, such as... Figure 1 As shown, the defogging method of this camera device includes the following steps: Step 101: If it is determined that there is fog in the window of the camera device, or if it is predicted that there will be fog in the window of the camera device in the future, obtain the corresponding internal temperature and first relative humidity of the camera device.
[0035] The specific value of the future time period can be set based on demand, and this invention does not limit it.
[0036] For example, images captured by a camera device are collected based on a preset period. Image analysis is used to determine whether fog exists in the camera device's viewport. Alternatively, based on preset internal temperature and humidity levels and the viewport temperature, a dew point calculation model is used to predict whether the viewport is at risk of fogging in the future. If it is determined that the viewport does not have fog or is predicted not to have fog in the future, subsequent steps are not performed. If it is determined that the viewport has fog or is predicted to have fog in the future, the internal temperature and humidity sensors can be controlled to collect the internal temperature T1 and the first relative humidity of the camera device. Alternatively, the temperature and humidity obtained from experimental testing can be defined as the corresponding temperature T1 and the first relative humidity. .
[0037] Step 102: Determine the moisture permeation rate between the inside and outside of the camera device based on the temperature, the first relative humidity, and the second relative humidity, where the second relative humidity is the expected value of the internal humidity of the camera device after the window heating is completed.
[0038] For example, a second relative humidity can be preset. The second relative humidity The maximum value is f(T2) / f(T3), where T2 refers to the average internal temperature of the camera device after it is powered on, which can be understood as the average internal temperature of the camera device when it is first powered on, and T3 refers to the temperature based on temperature T1 and the first relative humidity. The condensation temperature is defined as follows: f(T2) refers to the partial pressure of saturated water vapor in moist air at temperature T2, and f(T3) refers to the partial pressure of water vapor in moist air at temperature T3. A second relative humidity must be ensured. The corresponding partial pressure of water vapor in the moist air is less than or equal to the partial pressure of saturated water vapor in the moist air at temperature T2. Of course, this second relative humidity... The value of can also be any value less than the maximum value, that is, the second relative humidity can be expressed by formula (4). : (4)
[0039] Where D represents the set relative humidity safety margin. After obtaining the internal temperature T1 and the first relative humidity of the camera device and the second relative humidity At that time, it can be based on temperature T1 and the first relative humidity. Second relative humidity Determine the moisture permeation rate V4 between the inside and outside of the camera equipment.
[0040] Step 103: Determine the heating time based on the moisture permeation rate.
[0041] For example, when the moisture permeation rate V4 between the inside and outside of the camera device is obtained, the moisture permeation rate V4 can be used as a parameter to calculate the heating time, and the heating time can be calculated by combining it with the power of the heating element.
[0042] Step 104: Based on the heating time, heat the window of the camera device to defog the window.
[0043] For example, when the heating time is calculated, the heating element is powered on to heat the window. This heating causes moisture inside the camera to be expelled through the camera's casing, removing fog from the window. When the heating element's operating time is reached, it is powered off to end the heating process. At this point, the internal humidity of the camera is less than or equal to the second relative humidity. In other words, the inside of the camera is relatively dry after heating, and the internal humidity is low. The heat generated by the camera itself can be used to prevent fogging of the window, thus achieving the effect of preventing fogging of the window.
[0044] The defogging method for a camera device provided by this invention involves obtaining the internal temperature and a first relative humidity of the camera device when it is determined that fog exists in the camera device's viewing window, or when it is predicted that fog will exist in the viewing window. Based on the temperature, the first relative humidity, and a second relative humidity, the moisture permeation rate between the inside and outside of the camera device is determined. The second relative humidity is the expected value of the internal humidity of the camera device after the viewing window heating is completed. The heating time is determined based on the moisture permeation rate, and the viewing window of the camera device is heated based on the heating time to defog the window. It can be seen that this invention can determine the moisture permeation rate between the inside and outside of the camera device based on the temperature, the first relative humidity, and the second relative humidity, and determine the heating time required to exhaust the internal humid air through heating based on the moisture permeation rate. This ensures that the internal humidity of the camera device is less than or equal to the second relative humidity after heating. Because the internal humidity of the camera device is low after heating, the heat generated by the camera device itself can be used to prevent fogging of the viewing window, thus avoiding repeated fogging and improving the defogging effect of the camera device. In addition, since the present invention does not cause repeated fogging after heating is completed, there is no need to repeatedly turn the heating element on and off, thus achieving energy saving.
[0045] In one embodiment, Figure 2 This is a second schematic flowchart of the defogging method for a camera device provided in an embodiment of the present invention, as shown below. Figure 2 As shown, step 102 above determines the moisture permeation rate between the interior and exterior of the camera device based on the temperature, the first relative humidity, and the second relative humidity. This can be achieved through the following steps: Step 1021: Determine the absolute moisture content of the air based on the temperature and the first relative humidity.
[0046] For example, after obtaining temperature T1 and the first relative humidity At that time, the temperature T1 and the first relative humidity can be used. The absolute moisture content d1 of the air is obtained by inputting it into the absolute moisture content calculation model. Specifically, it can be expressed by the following formula (5): (5)
[0047] Where B represents atmospheric pressure. express Partial pressure of saturated water vapor in moist air at temperature.
[0048] Step 1022: Determine the target moisture content based on the absolute moisture content of the air and the preset amount of water released from the internal structural components of the camera device.
[0049] For example, other camera devices of the same model as this camera device can be used at a temperature and humidity of [missing information]. The storage time is a second preset duration in an environment where the temperature and humidity of the environment affect the internal temperature and humidity of other camera devices, causing the water vapor partial pressure inside the other camera devices to stabilize. For example, T=20 degrees Celsius. If the preset water content d0 of the internal structural components of the camera device is obtained through experimental testing, then when calculating the absolute water content d1 of the air, the absolute water content d1 of the air can be added to the preset water content d0 of the internal structural components of the camera device to obtain the target water content d3, that is, d3 = d1 + d0.
[0050] Step 1023: Determine the condensation temperature based on the target moisture content.
[0051] For example, when obtaining the target moisture content d3, the target moisture content d3 and the saturated relative humidity can be compared. The dew point calculation model is input to obtain the dew point temperature T3 output by the model, which can be expressed by the following formula (6): (6)
[0052] in, To provide a safety margin for the set heating temperature, C≥0, and saturated relative humidity. The value is 100%RH.
[0053] Step 1024: Determine the moisture permeation rate based on the condensation temperature and the second relative humidity.
[0054] For example, when calculating the dew point T3, it can be based on the dew point T3 and the second relative humidity. The moisture permeability rate is calculated by considering the surface area and moisture permeability influence coefficient of different materials in the casing of the camera device. These different materials may include plastic, metal, and sealing materials, etc., and this invention does not limit the specific materials used.
[0055] In this embodiment, when determining the dew point temperature, in addition to considering the absolute moisture content of the air determined based on temperature and the first relative humidity, the preset amount of water released from the internal structural components of the camera device is also considered, making the determined dew point temperature more accurate and further improving the accuracy of the moisture permeation rate determined based on the dew point temperature.
[0056] In one embodiment, step 1024 above determines the moisture permeation rate based on the condensation temperature and the second relative humidity, which can be implemented in the following way: Obtain the surface area and moisture permeability influence coefficient of different materials in the outer shell of the camera device; determine the target absolute moisture content based on the condensation temperature and the second relative humidity; determine the moisture permeability rate based on the target absolute moisture content, the absolute moisture content of the air, the surface area of each material and the moisture permeability influence coefficient of each material.
[0057] For example, the condensation temperature T3 and the second relative humidity... The target controlled absolute moisture content d4 output by the absolute moisture content calculation model is obtained by inputting the absolute moisture content into the model. Specifically, it can be expressed by the following formula (7): (7)
[0058] Based on experience, it is known that the moisture permeation rate between the inside and outside of a camera device is basically proportional to the absolute moisture content. Therefore, when the target humidity control absolute moisture content d4 is obtained, the target humidity control absolute moisture content d4, the air absolute moisture content d1, the surface area of different materials in the camera device's casing, and the material moisture permeation influence coefficient can all be input into the first casing moisture permeation rate calculation model to obtain the moisture permeation rate V4 output by the first casing moisture permeation rate calculation model. Taking the camera device casing as an example that includes plastic, metal, and sealing materials, the specific formula (8) can be used to express it: (8)
[0059] in, This indicates the surface area of the plastic material included in the casing of the camera device. Indicates the moisture permeability effect coefficient of plastic materials. This indicates the surface area of the metal material included in the casing of the camera device. Indicates the moisture permeability effect coefficient of metallic materials. This indicates the surface area of the sealing material included in the housing of the camera device. This indicates the moisture permeability effect coefficient of the sealing material.
[0060] In this embodiment, based on the conclusion that the moisture permeation rate between the inside and outside of the camera device is basically proportional to the absolute moisture content, the moisture permeation rate is determined based on the target humidity control absolute moisture content, the absolute moisture content of the air, the surface area of each material, and the moisture permeation influence coefficient of each material, so as to improve the accuracy of the determined moisture permeation rate.
[0061] In one embodiment, step 1024 above determines the moisture permeation rate based on the condensation temperature and the second relative humidity, which can be further implemented in the following ways: Obtain the surface area and moisture permeability influence coefficient of different materials in the housing of the camera device; determine the moisture permeability rate based on the second relative humidity, the first relative humidity, the condensation temperature, the temperature, the surface area of each material and the moisture permeability influence coefficient of each material.
[0062] For example, based on experience, it is known that the rate of moisture permeation between the inside and outside of a camera device is basically proportional to the partial pressure of water vapor; therefore, the slowest rate of moisture permeation is at time t4; the second relative humidity can be... First relative humidity The condensation temperature T3, temperature T1, the surface area of each material in the outer shell of the camera device, and the moisture permeability influence coefficient of each material are all input into the second outer shell moisture permeability calculation model to obtain the moisture permeability rate V4 output by the second outer shell moisture permeability calculation model. Taking the outer shell of the camera device as an example that includes plastic material, metal material and sealing material, it can be specifically expressed by the following formula (9): (9)
[0063] In this embodiment, based on the conclusion that the moisture permeation rate between the inside and outside of the camera device is basically proportional to the water vapor partial pressure, the moisture permeation rate is determined based on the second relative humidity, the first relative humidity, the condensation temperature, the temperature, the surface area of each material, and the moisture permeation influence coefficient of each material, so as to improve the accuracy of the determined moisture permeation rate.
[0064] In one embodiment, Figure 3 This is the third flowchart illustrating the defogging method for a camera device provided in this embodiment of the invention, as shown below. Figure 3 As shown, step 103 above determines the heating time based on the moisture permeation rate, which can be achieved through the following steps: Step 1031: Determine the target absolute moisture content for humidity control based on the condensation temperature and the second relative humidity.
[0065] For example, after obtaining the condensation temperature T3 and the second relative humidity... At that time, the condensation temperature T3 and the second relative humidity will be... Input the absolute moisture content into the absolute moisture content calculation model to obtain the target controlled humidity absolute moisture content d4 output by the absolute moisture content calculation model, as detailed in the above formula (7).
[0066] Step 1032: Determine the difference between the target moisture content and the target humidity-controlled absolute moisture content as the moisture permeability of the camera device's outer casing.
[0067] For example, when the target moisture content d3 and the target humidity-controlled absolute moisture content d4 are obtained, the difference between the target moisture content d3 and the target humidity-controlled absolute moisture content d4 is determined as the moisture permeation amount Δd of the camera device's casing, i.e., Δd = d3 - d4.
[0068] Step 1033: Determine the heating time based on the amount of water permeable to the outer shell and the permeation rate.
[0069] For example, when the amount of water permeable to the outer casing of the camera device Δd and the permeability rate V4 are obtained, the heating time t4 can be determined using the following formula (10): (10)
[0070] Where E is the safety margin for the duration, E≥0, Used to be equivalent to the above formula (8) .
[0071] In this embodiment, the target humidity control absolute moisture content is determined based on the dew point temperature and the second relative humidity. The difference between the target moisture content and the target humidity control absolute moisture content is determined as the moisture permeation rate of the camera device's outer casing. The heating time is determined based on the moisture permeation rate and the permeation rate of the outer casing. The determined heating time ensures that the internal humidity of the camera device is low after heating, so there will be no repeated fogging, thereby improving the defogging effect of the camera device.
[0072] In one embodiment, Figure 4 This is the fourth flowchart illustrating the defogging method for a camera device provided in this embodiment of the invention. Figure 4 As shown, in step 104 above, the viewing window of the camera device is heated based on the heating time to defog the viewing window. This is specifically achieved through the following steps: Step 1041: Determine the target temperature difference between the condensation temperature and the first preset temperature, wherein the first preset temperature is the average internal temperature of the camera device after it is powered on.
[0073] For example, based on experimental testing, the average internal temperature of the camera device after power-on is obtained in advance, and this average internal temperature is determined as a first preset temperature T2. For example, the first preset temperature T2 is 25 degrees Celsius. The target temperature difference ΔT between the condensation temperature T3 and the first preset temperature T2 is then determined. 23 .
[0074] Step 1042: Based on the correspondence between temperature difference and heating power, determine the target heating power corresponding to the target temperature difference.
[0075] For example, the relationship between temperature difference and heating power can be obtained in advance based on experiments, and the target temperature difference ΔT can be determined accordingly. 23 At that time, the target temperature difference ΔT can be obtained based on the correspondence between temperature difference and heating power. 23 The corresponding target heating power W2.
[0076] Step 1043: Based on the heating time and the target heating power, heat the window of the camera device to defog the window.
[0077] For example, when the heating duration and target heating power are obtained, the heating element is powered on, so that the heating element heats the window based on the target heating power. The heating causes the moisture inside the camera device to be discharged through the outer casing of the camera device, removing the fog generated on the window. When the working time of the heating element is reached, the heating element is powered off to end the heating. At this time, the internal humidity of the camera device is less than or equal to the second relative humidity. That is to say, after the heating is finished, the inside of the camera device is relatively dry and the internal humidity is low. The heat generated by the camera device itself can be used to prevent the window from fogging, thereby achieving the effect of preventing the window from fogging.
[0078] In this embodiment, the target temperature difference between the condensation temperature and the first preset temperature is determined. Based on the correspondence between the temperature difference and the heating power, the target heating power corresponding to the target temperature difference is determined. Then, based on the heating time and the target heating power, the window of the camera device is heated to defog the window and further improve the defogging effect of the window.
[0079] In one embodiment, step 101 above, which obtains the corresponding temperature and first relative humidity inside the camera device, can be implemented in the following way: If the camera device includes a temperature and humidity detection module, and it is determined that the power outage duration of the camera device in the most recent historical period is greater than a first preset duration, the current temperature inside the camera device collected by the temperature and humidity detection module is determined as the temperature, and the current humidity inside the camera device collected is determined as the first relative humidity.
[0080] If the camera device includes the temperature and humidity detection module, and it is determined that the power outage duration of the camera device in the most recent historical period is less than or equal to the first preset duration, then the second preset temperature is determined as the temperature, and the preset humidity is determined as the first relative humidity. The second preset temperature is the temperature of the preset environment in which the camera device is located, and the preset humidity is the relative humidity of the preset environment.
[0081] If the temperature and humidity detection module is not included inside the camera device, the second preset temperature is determined as the temperature, and the preset humidity is determined as the first relative humidity.
[0082] The temperature and humidity detection module can be a temperature and humidity sensor, and the preset environment can be the environment in which the camera equipment is transported or the harsh environment in which the camera equipment is stored.
[0083] For example, when the camera device includes a temperature and humidity detection module, after the camera device is powered on, it is determined whether the power outage duration of the camera device in the most recent historical period is greater than a first preset duration t1. If it is determined that the power outage duration is greater than the first preset duration t1, it indicates that the power outage time of the camera device is too long. The temperature and humidity inside the camera device can be indirectly equated to the temperature and humidity outside the camera device. Then, the current temperature inside the camera device collected by the internal temperature and humidity detection module is determined as the temperature, and the current humidity inside the camera device is determined as the first relative humidity.
[0084] When the power outage duration is less than or equal to the first preset duration t1, it indicates that the power outage time of the camera device is very short. At this time, the temperature and humidity inside the camera device may be significantly different from the temperature and humidity outside the camera device. Therefore, the temperature and humidity inside the camera device cannot be equated to the temperature and humidity outside the camera device. Thus, the second preset temperature in the preset environment where the camera device is located is determined as the temperature, and the preset humidity in the preset environment where the camera device is located is determined as the first relative humidity.
[0085] To reduce the cost of camera equipment, the temperature and humidity detection module may not be included inside the camera equipment. For camera equipment that does not include a temperature and humidity detection module, when defogging, the second preset temperature of the preset environment in which the camera equipment is located is directly determined as the temperature, and the preset humidity of the preset environment in which the camera equipment is located is determined as the first relative humidity.
[0086] In this embodiment, when the camera device includes a temperature and humidity detection module, the current temperature and humidity collected by the temperature and humidity detection module can be determined as temperature and first relative humidity, respectively, based on the analysis of the power outage duration. Alternatively, the second preset temperature of the preset environment in which the camera device is located can be determined as temperature, and the preset humidity of the preset environment in which the camera device is located can be determined as the first relative humidity. When the camera device does not include a temperature and humidity detection module, the second preset temperature of the preset environment in which the camera device is located can be directly determined as temperature, and the preset humidity of the preset environment in which the camera device is located can be determined as the first relative humidity, thereby reducing the cost of the camera device.
[0087] The defogging device for the camera equipment provided by the present invention is described below. The defogging device for the camera equipment described below can be referred to in correspondence with the defogging method for the camera equipment described above.
[0088] Figure 5 This is a schematic diagram of the structure of the defogging device of the camera equipment provided in the embodiment of the present invention, as shown below. Figure 5 As shown, the defogging device 500 of the camera equipment includes an acquisition unit 501, a first determination unit 502, a second determination unit 503, and a defogging unit 504; wherein: The acquisition unit 501 is used to acquire the internal temperature and first relative humidity of the camera device when it is determined that there is fog in the window of the camera device, or when it is predicted that there will be fog in the window of the camera device in the future time period. The first determining unit 502 is used to determine the moisture permeation rate between the inside and outside of the camera device based on the temperature, the first relative humidity, and the second relative humidity, wherein the second relative humidity is the expected value of the internal humidity of the camera device after the window heating is completed; The second determining unit 503 is used to determine the heating duration based on the moisture permeation rate; The defogging unit 504 is used to heat the window of the camera device based on the heating time in order to defog the window.
[0089] The defogging device for a camera provided by this invention, when determining that fog exists in the camera's viewing window, or predicting that fog will exist in the viewing window within a future time period, acquires the corresponding internal temperature and a first relative humidity of the camera. Based on the temperature, the first relative humidity, and a second relative humidity, it determines the moisture permeation rate between the inside and outside of the camera, where the second relative humidity is the expected value of the internal humidity of the camera after the viewing window heating is completed. Based on the moisture permeation rate, it determines the heating time required to exhaust the internal humid air through heating, ensuring that the internal humidity of the camera is less than or equal to the second relative humidity after heating. Because the internal humidity of the camera is low after heating, the heat generated by the camera itself can prevent fogging of the viewing window, thus preventing repeated fogging and improving the defogging effect of the camera.
[0090] Based on any of the above embodiments, the first determining unit 502 is specifically used for: The absolute moisture content of the air is determined based on the temperature and the first relative humidity. The target moisture content is determined based on the absolute moisture content of the air and the preset amount of water to be released from the internal structural components of the camera device. Determine the condensation temperature based on the target moisture content; The moisture permeation rate is determined based on the condensation temperature and the second relative humidity.
[0091] Based on any of the above embodiments, the first determining unit 502 is further specifically used for: Obtain the surface area and moisture permeability coefficient of different materials in the housing of the camera device; Based on the condensation temperature and the second relative humidity, determine the target humidity control absolute moisture content; The moisture permeability rate is determined based on the target humidity control absolute moisture content, the air absolute moisture content, the surface area of each material, and the moisture permeability influence coefficient of each material.
[0092] Based on any of the above embodiments, the first determining unit 502 is further specifically used for: Obtain the surface area and moisture permeability coefficient of different materials in the housing of the camera device; The moisture permeability rate is determined based on the second relative humidity, the first relative humidity, the condensation temperature, the temperature, the surface area of each material, and the moisture permeability influence coefficient of each material.
[0093] Based on any of the above embodiments, the second determining unit 503 is further specifically used for: Based on the condensation temperature and the second relative humidity, determine the target humidity control absolute moisture content; The difference between the target moisture content and the target humidity-controlled absolute moisture content is determined as the moisture permeability of the camera device's outer casing. The heating duration is determined based on the amount of water permeable to the outer shell and the permeation rate.
[0094] Based on any of the above embodiments, the defogging unit 504 is specifically used for: Determine the target temperature difference between the condensation temperature and the first preset temperature, where the first preset temperature is the average internal temperature of the camera device after it is powered on. Based on the correspondence between temperature difference and heating power, the target heating power corresponding to the target temperature difference is determined; Based on the heating duration and the target heating power, the viewing window of the camera device is heated to remove fog from the viewing window.
[0095] Based on any of the above embodiments, the acquisition unit 501 is specifically used for: If the camera device includes a temperature and humidity detection module, and it is determined that the power outage duration of the camera device in the most recent historical period is greater than a first preset duration, the current temperature inside the camera device collected by the temperature and humidity detection module is determined as the temperature, and the current humidity inside the camera device is determined as the first relative humidity. If the camera device includes the temperature and humidity detection module, and it is determined that the power outage duration of the camera device in the most recent historical period is less than or equal to the first preset duration, then the second preset temperature is determined as the temperature, and the preset humidity is determined as the first relative humidity. The second preset temperature is the temperature of the preset environment in which the camera device is located, and the preset humidity is the relative humidity of the preset environment. If the temperature and humidity detection module is not included inside the camera device, the second preset temperature is determined as the temperature, and the preset humidity is determined as the first relative humidity.
[0096] Figure 6 This is a schematic diagram of the physical structure of the camera device provided in the embodiment of the present invention, such as... Figure 6As shown, the camera device may include a processor 610, a communications interface 620, a memory 630, and a communication bus 640, wherein the processor 610, communications interface 620, and memory 630 communicate with each other via the communication bus 640. The processor 610 can call logical instructions in the memory 630 to execute a defogging method for the camera device. This method includes: when it is determined that fog exists in the viewport of the camera device, or when it is predicted that fog will exist in the viewport of the camera device in the future, acquiring the internal temperature and a first relative humidity of the camera device; determining the moisture permeation rate between the inside and outside of the camera device based on the temperature, the first relative humidity, and a second relative humidity, wherein the second relative humidity is the expected value of the internal humidity of the camera device after the viewport heating is completed; determining the heating duration based on the moisture permeation rate; and heating the viewport of the camera device based on the heating duration to defog the viewport.
[0097] Furthermore, the logical instructions in the aforementioned memory 630 can be implemented as software functional units and, when sold or used as independent products, can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of the present invention, in essence, or the part that contributes to the prior art, or a part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute all or part of the steps of the methods described in the various embodiments of the present invention. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.
[0098] On the other hand, the present invention also provides a computer program product, which includes a computer program that can be stored on a computer-readable storage medium. When the computer program is executed by a processor, the computer is able to execute the defogging method for a camera device provided by the methods described above. The method includes: when it is determined that there is fog in the viewport of the camera device, or when it is predicted that there will be fog in the viewport of the camera device in the future time period, obtaining the internal temperature and a first relative humidity of the camera device; determining the moisture permeation rate between the inside and outside of the camera device based on the temperature, the first relative humidity, and the second relative humidity, wherein the second relative humidity is an expected value of the internal humidity of the camera device after the viewport heating is completed; determining the heating duration based on the moisture permeation rate; and heating the viewport of the camera device based on the heating duration to defog the viewport.
[0099] In another aspect, the present invention also provides a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements a defogging method for a camera device provided by the methods described above. The method includes: when it is determined that fog exists in the viewport of the camera device, or when it is predicted that fog will exist in the viewport of the camera device within a future time period, acquiring a corresponding internal temperature and a first relative humidity of the camera device; determining a moisture permeation rate between the interior and exterior of the camera device based on the temperature, the first relative humidity, and a second relative humidity, wherein the second relative humidity is an expected value of the internal humidity of the camera device after the viewport heating is completed; determining a heating duration based on the moisture permeation rate; and heating the viewport of the camera device based on the heating duration to defog the viewport.
[0100] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate. The components shown as units may or may not be physical units; that is, they may be located in one place or distributed across multiple network units. Some or all of the modules can be selected to achieve the purpose of this embodiment according to actual needs. Those skilled in the art can understand and implement this without any creative effort.
[0101] Through the above description of the embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus necessary general-purpose hardware platforms, and of course, it can also be implemented by hardware. Based on this understanding, the above technical solutions, in essence or the part that contributes to the prior art, can be embodied in the form of a software product. This computer software product can be stored in a computer-readable storage medium, such as ROM / RAM, magnetic disk, optical disk, etc., and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) to execute the methods described in the various embodiments or some parts of the embodiments.
[0102] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present invention, and not to limit them; although the present invention has been described in detail with reference to the foregoing embodiments, those skilled in the art should understand that modifications can still be made to the technical solutions described in the foregoing embodiments, or equivalent substitutions can be made to some of the technical features; and these modifications or substitutions do not cause the essence of the corresponding technical solutions to deviate from the spirit and scope of the technical solutions of the embodiments of the present invention.
Claims
1. A method for defogging a camera device, characterized in that, include: If it is determined that there is fog in the window of the camera device, or if it is predicted that there will be fog in the window of the camera device in the future, the internal temperature and first relative humidity of the camera device are obtained. The moisture permeation rate between the inside and outside of the camera device is determined based on the temperature, the first relative humidity, and the second relative humidity, wherein the second relative humidity is the expected value of the internal humidity of the camera device after the window heating is completed; The heating time is determined based on the moisture permeation rate; Based on the heating time, the viewing window of the camera device is heated to remove fog from the viewing window.
2. The defogging method for a camera device according to claim 1, characterized in that, Determining the moisture permeation rate between the interior and exterior of the camera device based on the temperature, the first relative humidity, and the second relative humidity includes: The absolute moisture content of the air is determined based on the temperature and the first relative humidity. The target moisture content is determined based on the absolute moisture content of the air and the preset amount of water to be released from the internal structural components of the camera device. Determine the condensation temperature based on the target moisture content; The moisture permeation rate is determined based on the condensation temperature and the second relative humidity.
3. The defogging method for a camera device according to claim 2, characterized in that, Determining the moisture permeation rate based on the condensation temperature and the second relative humidity includes: Obtain the surface area and moisture permeability coefficient of different materials in the housing of the camera device; Based on the condensation temperature and the second relative humidity, determine the target humidity control absolute moisture content; The moisture permeability rate is determined based on the target humidity control absolute moisture content, the air absolute moisture content, the surface area of each material, and the moisture permeability influence coefficient of each material.
4. The defogging method for a camera device according to claim 2, characterized in that, Determining the moisture permeation rate based on the condensation temperature and the second relative humidity includes: Obtain the surface area and moisture permeability coefficient of different materials in the housing of the camera device; The moisture permeability rate is determined based on the second relative humidity, the first relative humidity, the condensation temperature, the temperature, the surface area of each material, and the moisture permeability influence coefficient of each material.
5. The defogging method for a camera device according to claim 2, characterized in that, The determination of heating duration based on the moisture permeation rate includes: Based on the condensation temperature and the second relative humidity, determine the target humidity control absolute moisture content; The difference between the target moisture content and the target humidity-controlled absolute moisture content is determined as the moisture permeability of the camera device's outer casing. The heating duration is determined based on the amount of water permeable to the outer shell and the permeation rate.
6. The defogging method for a camera device according to any one of claims 2-5, characterized in that, The step of heating the viewing window of the camera device based on the heating duration to defog the viewing window includes: Determine the target temperature difference between the condensation temperature and the first preset temperature, where the first preset temperature is the average internal temperature of the camera device after it is powered on. Based on the correspondence between temperature difference and heating power, the target heating power corresponding to the target temperature difference is determined; Based on the heating duration and the target heating power, the viewing window of the camera device is heated to remove fog from the viewing window.
7. The defogging method for a camera device according to any one of claims 1-5, characterized in that, The step of obtaining the corresponding temperature and first relative humidity inside the camera device includes: If the camera device includes a temperature and humidity detection module, and it is determined that the power outage duration of the camera device in the most recent historical period is greater than a first preset duration, the current temperature inside the camera device collected by the temperature and humidity detection module is determined as the temperature, and the current humidity inside the camera device is determined as the first relative humidity. If the camera device includes the temperature and humidity detection module, and it is determined that the power outage duration of the camera device in the most recent historical period is less than or equal to the first preset duration, then the second preset temperature is determined as the temperature, and the preset humidity is determined as the first relative humidity. The second preset temperature is the temperature of the preset environment in which the camera device is located, and the preset humidity is the relative humidity of the preset environment. If the temperature and humidity detection module is not included inside the camera device, the second preset temperature is determined as the temperature, and the preset humidity is determined as the first relative humidity.
8. A defogging device for a camera, characterized in that, include: The acquisition unit is used to acquire the internal temperature and first relative humidity of the camera device when it is determined that there is fog in the window of the camera device, or when it is predicted that there will be fog in the window of the camera device in the future time period. The first determining unit is configured to determine the moisture permeation rate between the interior and exterior of the camera device based on the temperature, the first relative humidity, and the second relative humidity, wherein the second relative humidity is the expected value of the internal humidity of the camera device after the window heating is completed; The second determining unit is used to determine the heating duration based on the moisture permeation rate; A defogging unit is used to heat the viewing window of the camera device based on the heating time in order to defog the viewing window.
9. A camera device, comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, characterized in that, When the processor executes the program, it implements the defogging method of the camera device as described in any one of claims 1 to 7.
10. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the defogging method of the camera device as described in any one of claims 1 to 7.