Alarm service control method and apparatus, and electronic device
By obtaining the calibrated lamp control safety power consumption and adaptively controlling the light intensity of the white light fill light, the image quality reduction caused by the increase in power consumption after the alarm is triggered is solved, and a more stable and high-quality monitoring picture is achieved.
Patent Information
- Application Number
- PCT/CN2024/090899
- Authority / Receiving Office
- WO · WO
- Patent Type
- Applications
- Current Assignee / Owner
- Priority Date
- 2023-11-29
- Filing Date
- 2024-04-30
- Publication Date
- 2025-06-05
AI Technical Summary
After the alarm is triggered, the intelligent dual-light monitoring device has an increase in instantaneous power consumption due to the superposition of the linked alarm service, which affects the stability of the device, and is prone to problems such as black screen on the monitoring screen and degradation of image quality.
By obtaining the calibrated lamp control safety power consumption, the white light fill light is controlled to be turned on when the alarm command information is triggered, and based on the lamp control safety power consumption, the power consumption of the fill light and pre-on power consumption, the light intensity of the white light fill light is adaptively controlled to avoid power consumption exceeding the standard and image quality degradation.
It effectively avoids the problem of black screen on the monitoring screen, improves the image quality after the alert intelligent dual-light monitoring device triggers the alarm, and ensures the improvement of the alarm monitoring effect.
Smart Images

Figure CN2024090899_05062025_PF_FP_ABST
Abstract
Description
Alarm service control method, device and electronic equipment
[0001] CROSS-REFERENCE TO RELATED APPLICATIONS
[0002] This disclosure claims priority to Chinese patent application number 202311638754.5, filed on November 29, 2023, and disclosed in the publication entitled “Alarm service control method, device and electronic device,” which is incorporated herein by reference in its entirety. Technical Field
[0003] The present disclosure relates to the field of monitoring technology, and in particular to an alarm service control method, device, and electronic device. Background Art
[0004] With the development of intelligent security monitoring, surveillance equipment capable of intelligent coordinated alarms, such as intelligent dual-light surveillance systems, has become widely used. These devices can combine sound and light to generate coordinated alarms, better meeting security monitoring needs. However, the addition of alarm services can significantly impact camera power consumption, especially instantaneous power consumption, which can affect product stability and cause abnormalities such as reboots.
[0005] As shown in Figure 1, taking lighting linkage as an example, after an alarm is triggered, the switching of the dual filter switch (IR-CUT), the turning off or on of the infrared light, and the turning off or on of the white light are performed serially to ensure that no power consumption is added at the same time. However, this method can degrade image quality at the moment the alarm is triggered or the alarm ends, and can easily cause the monitoring screen to go black. This can also lead to poor image quality of key frames after the alarm is triggered, or even information loss, affecting the effectiveness of alarm monitoring.
[0006] Summary of the Invention
[0007] The present disclosure provides an alarm service control method, device and electronic device, which are used to solve the problem of black screen in monitoring screen when serial linkage alarm services are performed in the prior art, and improve the image quality of intelligent dual-light monitoring equipment after triggering an alarm.
[0008] The present disclosure provides an alarm service control method, comprising:
[0009] When an alarm instruction is detected, a calibrated safe power consumption of the light control is obtained; the alarm instruction instructs switching an imaging screen of the monitoring device from a first imaging color to a second imaging color and switching a fill light from a first fill light to a second fill light, wherein one of the first fill light and the second fill light is a white light fill light;
[0010] When it is determined that the light control safety power consumption is greater than the switching power consumption of the dual-filter switch, the white light fill light is controlled to be in an on state, and the light intensity of the white light fill light in the on state is controlled based on the light control safety power consumption, the power consumption of the first fill light, and the pre-startup power consumption of the second fill light;
[0011] On the basis that the white light fill light is in the turned-on state, an alarm service process corresponding to the alarm instruction information is executed.
[0012] The present disclosure also provides an alarm service control device, comprising:
[0013] a safety power consumption acquisition module configured to acquire a calibrated safety power consumption for light control when an alarm instruction information is detected; the alarm instruction information instructs switching an imaging screen of the monitoring device from a first imaging color to a second imaging color and switching a fill light from a first fill light to a second fill light; one of the first fill light and the second fill light is a white light fill light;
[0014] a fill light control module configured to, upon determining that the light control safety power consumption is greater than the switching power consumption of the dual-filter switch, control the white light fill light to be in an on state, and control the light intensity of the white light fill light in the on state based on the light control safety power consumption, the power consumption of the first fill light, and the pre-startup power consumption of the second fill light;
[0015] The service execution module is configured to execute the alarm service process corresponding to the alarm instruction information based on the white light fill light being in the turned-on state.
[0016] The present disclosure also provides an electronic device, including a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements any of the above-described alarm service control methods when executing the computer program.
[0017] The present disclosure also provides a non-transitory computer-readable storage medium having a computer program stored thereon. When the computer program is executed by a processor, the alarm service control method as described above is implemented.
[0018] The present disclosure also provides a computer program product, including a computer program, which implements any of the above-mentioned alarm service control methods when executed by a processor.
[0019] The present disclosure provides an alarm service control method, device, and electronic device. Upon detecting an alarm instruction indicating that the imaging screen of a monitoring device is switched from a first imaging color to a second imaging color and that the fill light is switched from a first fill light to a second fill light, the method, device, and electronic device obtain a calibrated light control safety power consumption, wherein one of the first fill light and the second fill light is a white fill light. Upon determining that the light control safety power consumption is greater than the switching power consumption of a dual-filter switcher, this indicates that there is sufficient power consumption within the light control safety power consumption range to ensure completion of the alarm service corresponding to the alarm instruction information. This surplus power consumption can be effectively utilized to control the white fill light. At this point, the white fill light is controlled to be turned on, and the light intensity of the white fill light in the turned-on state is controlled based on the light control safety power consumption, the power consumption of the first fill light, and the pre-startup power consumption of the second fill light. Based on the white fill light being turned on, the alarm service process corresponding to the alarm instruction information is executed. In this way, the fill light is present throughout the entire process, both before and after the alarm instruction information is triggered, effectively avoiding the problem of a black screen on the monitoring screen and thereby improving the image quality of the intelligent dual-light monitoring device after an alarm is triggered. BRIEF DESCRIPTION OF THE DRAWINGS
[0020] FIG1 is a schematic diagram of a process of a dual-optical alarm service after an alarm is triggered in the prior art;
[0021] FIG2 is a flow chart of an alarm service control method according to an embodiment of the present disclosure;
[0022] FIG3 is a second flow chart of the alarm service control method provided in an embodiment of the present disclosure;
[0023] FIG4 is a third flow chart of the alarm service control method provided in an embodiment of the present disclosure;
[0024] FIG5 is a schematic structural diagram of an alarm service control device provided in an embodiment of the present disclosure;
[0025] FIG6 is a schematic structural diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION
[0026] The technical solutions in the present disclosure will be described below in conjunction with the drawings in the present disclosure. The described embodiments are only part of the embodiments of the present disclosure, but not all of the embodiments.
[0027] Intelligent dual-light surveillance equipment for security purposes can operate in intelligent dual-light mode, using infrared imaging at night. In this mode, the image is black and white, supplemented by infrared fill lights, eliminating light pollution. When a person, face, or area intrusion alarm is detected, the image switches from black and white to color, and the fill lights switch from infrared to white light, providing a visual warning and enabling coordinated light alarms. In some scenarios, this can be combined with audio alarms and pan-tilt tracking to further ensure the authenticity and quality of the captured images after the alarm is triggered. These coordinated alarm actions can result in a transient increase in power consumption, which can affect the stability of the surveillance equipment and easily lead to abnormalities such as reboots. In addition, as shown in Figure 1, after the alarm is triggered, the imaging screen switches from black and white to color and the fill light switches from infrared fill light to white light, resulting in differences in scene illumination and light source sensitivity. When the alarm ends, the imaging screen switches from color to black and white, and the fill light switches from white light to infrared fill light. If there are other linked services such as sound and pan-tilt tracking, these linked services will also return to their original state.
[0028] If serial processing of the combined service shown in Figure 1 is adopted or light intensity is sacrificed, the image quality at the critical moment of alarm triggering will be degraded, and a black screen phenomenon will easily occur, resulting in loss of key frame information. The image at the critical moment of neighbor alarm triggering will also experience long-term brightness fluctuations, overexposure, or excessive darkness. Moreover, insufficient fill light intensity will also lead to a decrease in overall image clarity, as well as problems such as moving object ghosting and high noise, resulting in degraded image quality.
[0029] Based on this, the disclosed embodiment utilizes the lighting control safety power consumption based on image quality calibration to adaptively allocate the instantaneous power consumption of the lighting linkage service after the alarm is triggered and the alarm ends, so that the fill light is present throughout the process before and after the alarm command information is triggered, avoiding the occurrence of the black screen phenomenon, thereby improving the image quality and alarm effect at the critical moment when the alarm command information is triggered.
[0030] The alarm service control method disclosed herein is described below with reference to Figures 2-4. The alarm service control method can be applied to monitoring equipment or electronic devices such as terminal devices or servers that are communicatively connected to the monitoring equipment. The terminal devices may include mobile phones, computers, vehicle-mounted devices, tablet computers, wearable devices, etc.; the servers may include standalone servers, cluster servers, or cloud servers; and the monitoring equipment may be intelligent dual-light monitoring equipment. The alarm service control method can also be applied to an alarm service control device provided in an electronic device, which can be implemented by software, hardware, or a combination of both.
[0031] FIG2 exemplarily shows one of the flow charts of the alarm service control method provided by an embodiment of the present disclosure. Referring to FIG2 , the alarm service control method may include the following steps 210 to 230 .
[0032] Step 210: When the alarm instruction information is detected, the calibrated light control safety power consumption is obtained.
[0033] Among them, the alarm instruction information indicates that the imaging screen of the monitoring device is switched from the first imaging color to the second imaging color and the fill light is switched from the first fill light to the second fill light; one of the first fill light and the second fill light is a white light fill light, and the other is an infrared fill light.
[0034] Specifically, the alarm instruction information may include an alarm trigger instruction when an alarm is triggered or an alarm termination instruction when an alarm ends. The alarm instruction information may be determined based on analysis of surveillance images captured by the monitoring device. For example, stranger detection may be performed on surveillance images captured in a surveillance area, or human body or face detection may be performed on surveillance images captured in a set warning area. When a stranger is detected in the surveillance image or a face or human body appears in the warning area of the surveillance image, it is determined that an alarm trigger instruction has been detected. When a stranger or human body in the surveillance image is detected to have left the surveillance area or the set warning area, it is determined that an alarm termination instruction has been detected.
[0035] When the alarm instruction information is an alarm trigger instruction, the first imaging color is black and white, the second imaging color is color, the first fill light is an infrared fill light, and the second fill light is a white fill light. That is, the alarm instruction information instructs the monitoring device's imaging screen to be switched from black and white to color and the fill light to be switched from an infrared fill light to a white fill light. When the alarm instruction information is an alarm end instruction, the first imaging color is color, the second imaging color is black and white, the first fill light is a white fill light, and the second fill light is an infrared fill light. That is, the alarm instruction information instructs the monitoring device's imaging screen to be switched from color to black and white and the fill light to be switched from a white fill light to an infrared fill light.
[0036] For intelligent dual-light surveillance equipment, power consumption primarily comes from base power consumption, IR-CUT switching, infrared fill light, and white light fill light. If other linked services, such as microphones, speakers, and pan-tilt tracking, are also included. IR-CUT switching, the on / off operation of the fill light, speakers, and pan-tilt tracking consume relatively high power, but they are not always present. Therefore, the total power consumption of a surveillance device is not the sum of these power sources; rather, it fluctuates within a certain range based on real-time service activity. For example, the instantaneous power consumption of the fill light combined with IR-CUT switching can cause the instantaneous power consumption to exceed the specified limit.
[0037] Based on this, in the disclosed embodiments, the power consumption of each module with power overlay services can be determined based on analysis of the alarm service process and testing of the power consumption of the overlay modules. For modules with non-real-time maximum power consumption, such as sound and fill light, since their power consumption can change in real time, the maximum safe power consumption of these modules can be calibrated, allowing for phased control of these modules.
[0038] Specifically, for the dual-light alarm service, it includes the superposition of IR-CUT switching and fill light. Analyzing the process of the dual-light alarm service in conjunction with Figure 1, it can be seen that when the alarm is triggered, the operation sequence between the IR-CUT, the infrared fill light, and the white light fill light will cause the imaging screen to appear black, reddish, and overexposed, resulting in a decrease in image quality. Moreover, the operation sequence of these three will directly affect the instantaneous power consumption of the device. Once the power consumption exceeds the standard, there will be a risk of device crash, affecting the normal operation of the monitoring service. In addition, during the operation of the monitoring device, the intensity of the fill light is related to the illumination of the scene, and it does not work at the maximum intensity in real time. Therefore, in the embodiment of the present disclosure, the light control safety power consumption can be calibrated first, and then the calibrated light control safety power consumption can be saved. When the alarm instruction information is detected, the light control safety power consumption can be obtained.
[0039] During the lighting control safety power consumption calibration process, the safe power consumption value can be measured based on the combination of each service module in the dual-light alarm service. In the dual-light alarm service, variable power consumption includes the light intensity of the white light fill light and the infrared fill light. During testing, power consumption calibration can be based on image quality and / or service configuration, rather than simply taking the maximum power consumption value of each module. Moreover, each service module is not tested at the same time, so there is a safe power consumption range.
[0040] For example, in the dual-light alarm service, based on the maximum power consumption allowed by the monitoring equipment, the maximum current value allowed when the infrared fill light is superimposed on the white light fill light when the IR-CUT is switched can be tested. The maximum current value corresponds to a fill light safety power consumption value. The sum of the fill light safety power consumption value and the switching power of the IR-CUT can be determined as the light control safety power consumption, or the maximum current value can be used to represent the light control safety power consumption.
[0041] It can be understood that the calibrated light control safety power consumption can be expressed as "fill light safety power consumption value + IR-CUT switching power consumption". During the real-time operation of the monitoring equipment, after the alarm is triggered, the instantaneous power consumption when the IR-CUT and the fill light are superimposed can be expressed as "IR-CUT switching power consumption + infrared fill light current power consumption + pre-turned white light fill light power consumption". Because the calibrated light control safety power consumption and the instantaneous power consumption during the real-time operation of the monitoring equipment both include the IR-CUT switching power consumption, they can offset each other in the power consumption comparison. Therefore, the fill light safety power consumption value can be used to characterize the light control safety power consumption. In actual applications, the sum of the current power consumption of the infrared fill light detected in real time and the power consumption of the pre-turned white light fill light can be compared with the fill light safety power consumption value to determine whether the superimposed instantaneous power consumption exceeds the light control safety power consumption.
[0042] For example, in a scenario where the dual-light alarm service is further superimposed with at least one of the following linked alarm services, such as pan-tilt tracking, audio alarm, and day / night switching, the above calibration process can be performed on the basis of enabling the superimposed linked alarm service. That is, on the basis of enabling the superimposed linked alarm service, the safe power consumption value of the fill light when the infrared fill light is superimposed with the white fill light during IR-CUT switching is tested, thereby determining the safe power consumption of the light control. It is understandable that the safe power consumption of the light control determined in this scenario is less than the safe power consumption of the light control when the linked alarm services, such as pan-tilt tracking, audio alarm, and day / night switching, are not superimposed.
[0043] Based on this, in an example embodiment, when alarm instruction information is detected, it is possible to first determine whether the dual-light alarm service is superimposed with an additional linkage alarm service. If not, the lighting control safety power consumption corresponding to the dual-light alarm service is obtained; if an additional linkage alarm service is superimposed, the lighting control safety power consumption calibrated when the additional linkage alarm service is superimposed can be obtained.
[0044] Step 220: When it is determined that the light control safety power consumption is greater than the switching power consumption of the dual filter switch, the white light fill light is controlled to be in the on state, and the light intensity of the white light fill light in the on state is controlled based on the light control safety power consumption, the power consumption of the first fill light and the pre-start power consumption of the second fill light.
[0045] In the case where the alarm instruction information is an alarm trigger instruction for triggering an alarm, the first fill light is an infrared fill light, and the second fill light is a white light fill light. It is necessary to switch the fill light from the infrared fill light to the white light fill light. At this time, it is possible to first determine whether the light control safety power consumption is greater than the IR-CUT switching power consumption. If it is greater, it means that there is a margin power consumption within the light control safety power consumption range to ensure that the alarm service corresponding to the alarm instruction information is completed. The margin power consumption can be used to control the light intensity of the white light fill light in the turned-on state to ensure that the total power consumption superimposed after the white light fill light is turned on is within the light control safety power consumption range. Specifically, the white light fill light can be turned on, and the margin power consumption can be determined based on the light control safety power consumption, the current power consumption of the infrared fill light, and the pre-turn-on power consumption of the white light fill light. The margin power consumption is used to control the light intensity of the white light fill light in the turned-on state before the infrared fill light is turned off. If the light control safety power consumption is less than or equal to the IR-CUT switching power consumption, the control can be performed according to the process after the alarm is triggered as shown in Figure 1, that is, the process of turning off the infrared fill light, switching the IR-CUT to not allow infrared light to pass, restoring the image saturation to the saturation of the color image, and turning on the white light fill light is executed in sequence.
[0046] In the case where the alarm instruction information is an alarm end instruction, the first fill light is a white light fill light, and the second fill light is an infrared fill light. The fill light needs to be switched from the white light fill light to the infrared fill light, that is, the white light fill light is currently in the on state. At this time, if it is determined that the light control safety power consumption is greater than the IR-CUT switching power consumption, the margin power consumption can be determined based on the light control safety power consumption, the current white light fill light power consumption, and the infrared fill light pre-start power consumption, and the margin power consumption is used to adjust the current light intensity of the white light fill light. If the light control safety power consumption is less than or equal to the IR-CUT switching power consumption, the control can be carried out according to the process after the alarm ends as shown in Figure 1, that is, the process of turning off the white light fill light, switching the IR-CUT to allow infrared light to pass, clearing the image saturation, and turning on the infrared fill light is executed in sequence.
[0047] Step 230: Based on the white light fill light being in the on state, executing the alarm service process corresponding to the alarm instruction information.
[0048] In one exemplary embodiment, if the alarm instruction information is an alarm trigger instruction, executing the alarm service process corresponding to the alarm instruction information may include: turning off the infrared fill light; controlling the dual filter switcher to perform a first switching action to cut off infrared light and restore the saturation of the image to that of a color image. In this way, the fill light can be switched from an infrared fill light to a white light fill light, and the image of the monitoring device can be switched from black and white to color, to meet the linkage alarm requirements after the alarm is triggered.
[0049] The IR-CUT includes two filters: one is an infrared cutoff filter or an infrared absorption filter, and the other is a full-spectrum filter. Controlling the dual-filter switch to perform the first switching action switches the filter to the infrared cutoff filter or the infrared absorption filter to cut off infrared light, i.e., not allow infrared light to pass through.
[0050] Optionally, while controlling the dual-filter switch to perform the first switching action to cut off infrared light, the intensity of the white light fill light can also be increased based on the power consumption released after the infrared fill light is turned off, that is, the increased light intensity does not exceed the power consumption released after the infrared fill light is turned off. The increased light intensity can be determined by automatic exposure (AE) adjustment, such as by an equal exposure algorithm.
[0051] In an exemplary embodiment, when the alarm instruction information is an alarm end instruction, executing the alarm service process corresponding to the alarm instruction information may include: controlling the dual-filter switch to perform a second switching action to allow infrared light to pass; determining a second target intensity of the infrared fill light based on the light control safety power consumption and the current power consumption of the white light fill light; turning on the infrared fill light and controlling the intensity of the infrared fill light to the second target intensity; turning off the white light fill light and clearing the saturation of the image. In this way, the fill light can be switched from the white light fill light to the infrared fill light, and the image of the monitoring device can be switched from color to black and white.
[0052] The second switching action of controlling the dual filter switcher is to switch the filter to a full spectrum filter to allow infrared light to pass through.
[0053] For example, determining the second target light intensity of the infrared fill light based on the light control safety power consumption and the current power consumption of the white light fill light may include: determining the power consumption difference between the light control safety power consumption and the current power consumption of the white light fill light; and determining the light intensity corresponding to the power consumption difference as the second target light intensity.
[0054] The alarm service control method provided by the disclosed embodiment obtains a calibrated light control safety power consumption when detecting alarm instruction information indicating that the imaging screen of the monitoring device is switched from a first imaging color to a second imaging color and that the fill light is switched from the first fill light to the second fill light, wherein one of the first fill light and the second fill light is a white fill light. If it is determined that the light control safety power consumption is greater than the switching power consumption of the dual-filter switcher, this indicates that there is sufficient power consumption within the light control safety power consumption range to ensure that the alarm service corresponding to the alarm instruction information is completed. This surplus power consumption can be effectively used to control the white fill light. At this time, the white fill light is controlled to be turned on, and the light intensity of the white fill light in the turned-on state is controlled based on the light control safety power consumption, the power consumption of the first fill light, and the pre-startup power consumption of the second fill light. Based on the white fill light being in the turned-on state, the alarm service process corresponding to the alarm instruction information is executed. In this way, the fill light is always on before and after the alarm instruction information is triggered, effectively avoiding the problem of a black screen on the monitoring screen, thereby improving the image quality of the intelligent dual-light monitoring device after the alarm is triggered.
[0055] In the alarm service control method according to the embodiment of FIG1 , when the alarm instruction information is an alarm trigger instruction, that is, in the alarm trigger scenario, the first fill light is an infrared fill light and the second fill light is a white fill light. The alarm service includes a dual-light alarm service, requiring the image to be switched from black and white to color and the fill light to be switched from the infrared fill light to the white fill light. The corresponding alarm service process includes turning off the infrared fill light, switching to the IR-CUT, changing the image to color, and turning on the white fill light. In this disclosed embodiment, before turning off the infrared fill light, a determination can be made based on the light control safety power consumption, the power consumption of the first fill light, and the pre-startup power consumption of the second fill light to determine whether there is sufficient power consumption to simultaneously turn on the white fill light. If so, the white fill light can be turned on simultaneously and the light intensity of the white fill light in the turned-on state can be controlled in stages based on the sufficient power consumption. Subsequently, with the white fill light turned on, the process of turning off the infrared light, switching to the IR-CUT, changing the image to color, and keeping the white fill light turned on is executed.
[0056] Specifically, controlling the light intensity of the white light fill light in the turned-on state based on the light control safety power consumption, the power consumption of the first fill light and the pre-turn-on power consumption of the second fill light may include: when a first total power consumption between the power consumption of the first fill light, the pre-turn-on power consumption of the second fill light and the switching power consumption is less than the light control safety power consumption, determining the light intensity corresponding to the pre-turn-on power consumption of the second fill light as the first target light intensity of the white light fill light, and controlling the light intensity of the white light fill light (second fill light) in the turned-on state before turning off the infrared fill light (first fill light) to be at the first target light intensity.
[0057] The pre-startup power consumption of the second fill light can be determined based on the illumination of the current environment using an AE algorithm to ensure the quality of the imaging picture.
[0058] Furthermore, it also includes: when the first total power consumption is greater than or equal to the light control safety power consumption, determining the safety margin power consumption of the white light fill light (the second fill light) based on the light control safety power consumption and the current power consumption of the first fill light; determining the first target light intensity of the white light fill light based on the safety margin power consumption and the pre-turn-on power consumption of the second fill light, and controlling the light intensity of the white light fill light in the turned-on state before turning off the infrared fill light to be at the first target light intensity.
[0059] Exemplarily, determining the safety margin power consumption of the white light fill light based on the light control safety power consumption and the current power consumption of the first fill light may include: determining a first power consumption difference between the light control safety power consumption and the current power consumption of the first fill light when it is determined that the fourth total power consumption between the current power consumption of the first fill light and the switching power consumption of the IR-CUT is less than the light control safety power consumption, and determining the first power consumption difference as the safety margin power consumption of the white light fill light; determining the minimum turn-on power consumption of the white light fill light and the fifth total power consumption between the current power consumption of the first fill light and the switching power consumption of the IR-CUT when it is determined that the fourth total power consumption between the current power consumption of the first fill light and the switching power consumption of the IR-CUT is greater than or equal to the light control safety power consumption, and the light control safety power consumption is greater than the switching power consumption of the IR-CUT; determining a second power consumption difference between the light control safety power consumption and the fifth total power consumption; determining the second power consumption difference as the power consumption corresponding to the light intensity reduction of the first fill light, and determining the minimum turn-on power consumption of the white light fill light as the safety margin power consumption of the white light fill light.
[0060] For example, determining the first target light intensity of the white fill light based on the safety margin power consumption and the pre-startup power consumption of the second fill light may include: determining the light intensity corresponding to the minimum value between the safety margin power consumption and the pre-startup power consumption of the second fill light as the first target light intensity.
[0061] In this way, when an alarm trigger is detected, the light intensity of the white light fill light can be adaptively controlled in stages based on the light control safety power consumption, the current power consumption of the first fill light, and the pre-start power consumption of the second fill light, so that the white light fill light works in the best state allowed by the power consumption, providing the best fill light effect for the imaging picture, and ensuring the image quality of the imaging picture.
[0062] For example, taking the example where the alarm service includes a dual-light alarm service and the imaging screen needs to be switched from black and white to color and the fill light needs to be switched from an infrared fill light to a white fill light, Figure 3 exemplarily shows the second flow chart of the alarm service control method provided by an embodiment of the present disclosure. As shown in Figure 3, the alarm service control method may include the following steps 301 to 315.
[0063] Step 301: When an alarm triggering instruction is detected, a calibrated light control safety power consumption is obtained.
[0064] Step 302: Determine whether a first total power consumption of the switching power consumption of the IR-CUT, the current power consumption of the infrared fill light, and the pre-start power consumption of the white light fill light is less than the light control safety power consumption.
[0065] If the first total power consumption is less than the light control safety power consumption, step 303 is executed; otherwise, step 304 is executed.
[0066] Step 303: Turn on the white light fill light and control the light intensity of the white light fill light to the light intensity corresponding to the pre-startup power consumption of the white light fill light. Then, execute step 310.
[0067] Step 304: Determine whether a fourth total power consumption between the switching power consumption of the IR-CUT and the current power consumption of the infrared fill light is less than the light control safety power consumption.
[0068] If the fourth total power consumption is less than the lighting control safety power consumption, execute step 305 ; otherwise, execute step 307 .
[0069] Step 305: Turn on the white light fill light, and determine a first power consumption difference between the light control safety power consumption and the current power consumption of the infrared fill light.
[0070] Step 306: Determine the light intensity corresponding to the minimum value of the first power consumption difference and the pre-startup power consumption of the white light fill light as the first target light intensity, and control the light intensity of the white light fill light to the first target light intensity.
[0071] Step 307: Determine whether the IR-CUT switching power consumption is less than the light control safety power consumption.
[0072] If the switching power consumption of the IR-CUT is less than the light control safety power consumption, step 308 is executed; otherwise, step 312 is executed.
[0073] Step 308: Turn on the white light fill light, determine the fifth total power consumption between the minimum turn-on power consumption of the white light fill light, the current power consumption of the infrared fill light and the switching power consumption of the IR-CUT, and determine the second power consumption difference between the light control safety power consumption and the fifth total power consumption, determine the second power consumption difference as the power consumption corresponding to the reduction in light intensity of the infrared fill light, and determine the minimum turn-on power consumption of the white light fill light as the safety margin power consumption of the white light fill light.
[0074] Step 309: Determine the light intensity corresponding to the minimum value between the safety margin power consumption and the pre-startup power consumption of the white light fill light as the first target light intensity, and control the light intensity of the white light fill light to the first target light intensity.
[0075] Step 310: Turn off the infrared fill light.
[0076] Step 311: Switch the IR-CUT filter to an infrared cut filter, and enhance the light intensity of the white light fill light based on AE adjustment. Then, execute step 314.
[0077] The increased light intensity does not exceed the power consumption released after the infrared fill light is turned off. When the infrared cutoff filter is working, infrared light is not allowed to pass through, which can avoid color distortion in the white light environment and enable the image sensor of the monitoring device to restore true color.
[0078] Step 312: Turn off the infrared fill light.
[0079] Step 313: Switch the IR-CUT filter to an infrared cutoff filter.
[0080] Step 314: restore the saturation of the imaging picture to the saturation of the color image.
[0081] Step 315: Increase the light intensity of the white light fill light.
[0082] Specifically, the light intensity of the white light fill light can be enhanced by AE adjustment or equal exposure method.
[0083] The alarm service control method provided by the disclosed embodiments can, when an alarm trigger is detected, perform adaptive, phased lighting control using safe lighting power consumption based on image quality calibration. Specifically, in the first phase, the white light fill light is turned on and its intensity is adaptively controlled. This is followed by the second phase of IR-CUT switching, white light fill light fill light fill and saturation restoration. Finally, the third phase of white light fill light enhancement is performed, ensuring that the image is fully filled with light, avoiding the problem of a black screen and improving image quality. Furthermore, the fill light intensity can be adaptively adjusted based on real-time power consumption, improving exposure smoothness when an alarm is triggered and further enhancing image quality.
[0084] In the alarm service control method according to the embodiment of FIG1 , when the alarm instruction information is an alarm termination instruction, i.e., when the alarm is terminated, the first fill light is a white fill light and the second fill light is an infrared fill light. The alarm service includes a dual-light alarm service, requiring the image to be switched from color to black and white and the fill light to be switched from a white fill light to an infrared fill light. The corresponding alarm service process includes IR-CUT switching, activating the infrared fill light, deactivating the white fill light, and clearing the saturation. Before the IR-CUT switching, a determination can be made based on the light control safety power consumption, the power consumption of the first fill light, and the pre-activation power consumption of the second fill light to determine whether there is sufficient power consumption to activate the white fill light simultaneously. If so, the intensity of the white fill light can be controlled in stages based on this sufficient power consumption. Subsequently, the IR-CUT switching, activating the infrared fill light, deactivating the white fill light, and clearing the saturation are executed while the white fill light is operating.
[0085] Specifically, controlling the light intensity of the white light fill light in the turned-on state based on the light control safety power consumption, the power consumption of the first fill light and the pre-turn-on power consumption of the second fill light may include: when the second total power consumption between the power consumption of the first fill light, the pre-turn-on power consumption of the second fill light and the switching power consumption is less than the light control safety power consumption, determining the pre-turn-on power consumption of the second fill light as the power consumption increment of the white light fill light, and determining the first light intensity increment of the white light fill light based on the power consumption increment; enhancing the light intensity of the white light fill light based on the first light intensity increment to obtain the light intensity of the white light fill light in the turned-on state.
[0086] The pre-startup power consumption of the second fill light can be determined based on the illumination of the current environment using an AE algorithm to ensure the quality of the imaging picture.
[0087] Furthermore, it also includes: when the second total power consumption is greater than or equal to the light control safety power consumption, and the third total power consumption between the power consumption of the first fill light and the switching power consumption is less than the light control safety power consumption, determining the second light intensity increment of the white light fill light based on the light control safety power consumption and the third total power consumption; enhancing the light intensity of the white light fill light based on the second light intensity increment to obtain the light intensity of the white light fill light when it is on.
[0088] Among them, determining the second light intensity increment of the white light fill light based on the light control safety power consumption and the third total power consumption includes: determining a third power consumption difference between the light control safety power consumption and the third total power consumption, and determining the third power consumption difference as the second light intensity increment of the white light fill light.
[0089] Furthermore, it also includes: when the third total power consumption is greater than or equal to the light control safety power consumption, determining the amount of reduction in the light intensity of the white light fill light based on the light control safety power consumption and the third total power consumption; reducing the light intensity of the white light fill light based on the amount of light intensity reduction to obtain the light intensity of the white light fill light when it is on.
[0090] Among them, determining the intensity reduction amount of the white light fill light based on the light control safety power consumption and the third total power consumption includes: determining a fourth power consumption difference between the third total power consumption and the light control safety power consumption, and determining the fourth power consumption difference as the intensity reduction amount of the white light fill light.
[0091] In this way, when the end of the alarm is detected, the light intensity of the white light fill light can be adaptively controlled in stages based on the light control safety power consumption, the current power consumption of the first fill light and the pre-start power consumption of the second fill light, so that the white light fill light works in the best state allowed by the power consumption, providing the best fill light effect for the imaging picture and ensuring the image quality of the imaging picture.
[0092] For example, taking the example where the alarm service includes a dual-light alarm service and the imaging screen needs to be switched from color to black and white and the fill light needs to be switched from a white light fill light to an infrared fill light, Figure 4 exemplarily shows the third flow chart of the alarm service control method provided by the embodiment of the present disclosure. As shown in Figure 4, the alarm service control method may include the following steps 401 to 414.
[0093] Step 401: When an alarm end instruction is detected, a calibrated light control safety power consumption is obtained.
[0094] Step 402: Determine whether a second total power consumption of the switching power consumption of the IR-CUT, the current power consumption of the white light fill light, and the pre-start power consumption of the infrared fill light is less than the light control safety power consumption.
[0095] If the second total power consumption is less than the light control safety power consumption, step 403 is executed; otherwise, step 404 is executed.
[0096] Step 403: Control the light intensity of the white light fill light to the light intensity corresponding to the pre-startup power consumption of the infrared fill light. Then, execute step 408.
[0097] Step 404: Determine whether a third total power consumption between the switching power consumption of the IR-CUT and the current power consumption of the white light fill lamp is less than the light control safety power consumption.
[0098] If the third total power consumption is less than the lighting control safety power consumption, step 405 is executed; otherwise, step 406 is executed.
[0099] Step 405: Determine the difference between the light control safety power consumption and the third total power consumption as the second light intensity increment, and enhance the light intensity of the white light fill light based on the second light intensity increment.
[0100] Step 406: Determine whether the switching power consumption of the IR-CUT is less than the light control safety power consumption.
[0101] If the switching power consumption of the IR-CUT is less than the light control safety power consumption, then execute step 407 ; otherwise, execute step 411 .
[0102] Step 407: Determine the power consumption difference between the third total power consumption and the light control safety power consumption as the light intensity reduction amount of the white light fill light, and reduce the light intensity of the white light fill light based on the light intensity reduction amount.
[0103] Step 408: Switch the IR-CUT filter to a full-spectrum filter.
[0104] Among them, when the full-spectral filter is working, infrared light is allowed to pass through, which allows the image sensor of the monitoring equipment to make full use of all light, effectively improving the low-light performance and making the night vision effect clearer.
[0105] Step 409: Turn on the infrared fill light, and control the light intensity of the infrared fill light to the second target light intensity.
[0106] The second target light intensity may be a light intensity corresponding to a power consumption difference between the light control safety power consumption and the current power consumption of the white light fill light.
[0107] Step 410: Turn off the white light fill light.
[0108] Thus, the purpose of switching the fill light from the white fill light to the infrared fill light is achieved, and during the process of switching the fill light, the infrared fill light is turned on first and then the white fill light is turned off, and the fill light is on throughout the whole process. Then, step 413 is executed.
[0109] Step 411: Turn off the white light fill light.
[0110] Step 412: Switch the IR-CUT filter to a full-spectrum filter.
[0111] For example, the exposure can be temporarily turned off while the white fill light is turned off in step 411, and the exposure can be turned on when the fill light is switched to the infrared fill light through the IR-CUT switch. This can avoid overexposure of the image when the white fill light is switched to the infrared fill light.
[0112] Step 413: Clear the saturation of the imaging image to zero.
[0113] At this point, the imaging image can be switched from color to black and white.
[0114] Step 414: Increase the light intensity of the infrared fill light.
[0115] Specifically, the light intensity of the infrared fill light can be enhanced by AE adjustment or equal exposure method.
[0116] The alarm service control method provided by the disclosed embodiment can, upon detecting the end of an alarm, perform adaptive, phased lighting control using safe lighting power consumption based on image quality calibration. Specifically, the first phase involves increasing the intensity of the white light fill light or reducing it to a certain level, rather than completely shutting off the white light. This is followed by the second phase of IR-CUT switching and clearing the fill light and saturation of the infrared fill light. Finally, the third phase of infrared fill light enhancement ensures that the image is fully filled with light, avoiding the problem of a black screen and improving the image quality of the image. Furthermore, the fill light intensity can be adaptively adjusted based on real-time power consumption, improving exposure smoothness when the alarm is triggered and further enhancing the image quality of the image.
[0117] The alarm service control device provided by the present disclosure is described below. The alarm service control device described below and the alarm service control method described above can refer to each other.
[0118] Figure 5 exemplarily shows a structural diagram of the alarm service control device provided by an embodiment of the present disclosure. As shown in Figure 5, the alarm service control device may include: a safety power consumption acquisition module 510, configured to obtain a calibrated light control safety power consumption when an alarm instruction information is detected, wherein the alarm instruction information indicates that the imaging screen of the monitoring device is switched from a first imaging color to a second imaging color and the fill light is switched from a first fill light to a second fill light, and one of the first fill light and the second fill light is a white light fill light; a fill light control module 520, configured to control the white light fill light to be in the on state when it is determined that the light control safety power consumption is greater than the switching power consumption of the dual filter switch, and control the light intensity of the white light fill light in the on state based on the light control safety power consumption, the power consumption of the first fill light and the pre-start power consumption of the second fill light; a service execution module 530, configured to execute the alarm service process corresponding to the alarm instruction information on the basis that the white light fill light is in the on state.
[0119] In an exemplary embodiment, the alarm instruction information is an alarm trigger instruction, the first imaging color is black and white, the second imaging color is color, the first fill light is an infrared fill light, and the second fill light is a white light fill light. Accordingly, the service execution module 530 may include: a first shutoff unit configured to shut off the infrared fill light; and a first switching unit configured to control the dual-filter switch to perform a first switching action to cut off infrared light and restore the saturation of the imaging image to that of a color image.
[0120] In an example embodiment, the fill light control module 520 may include: a first control unit, configured to determine the light intensity corresponding to the pre-turn-on power consumption of the second fill light as the first target light intensity of the white light fill light when a first total power consumption between the power consumption of the first fill light, the pre-turn-on power consumption of the second fill light and the switching power consumption is less than the light control safety power consumption, and control the light intensity of the white light fill light in the turned-on state before turning off the infrared fill light to be at the first target light intensity.
[0121] In an exemplary embodiment, the fill light control module 520 further includes a second control unit. The second control unit is configured to: determine a safety margin power consumption of the white light fill light based on the light control safety power consumption and the current power consumption of the first fill light when the first total power consumption is greater than or equal to the light control safety power consumption; determine a first target light intensity of the white light fill light based on the safety margin power consumption and the pre-startup power consumption of the second fill light; and control the light intensity of the white light fill light in the turned-on state before the infrared fill light is turned off to the first target light intensity.
[0122] In an exemplary embodiment, the alarm instruction information is an alarm end instruction, the first imaging color is color, the second imaging color is black and white, the first fill light is a white fill light, and the second fill light is an infrared fill light. Accordingly, the service execution module 530 may include: a second switching unit, configured to control the dual-filter switch to perform a second switching action to allow infrared light to pass; a light intensity determination unit, configured to determine a second target light intensity of the infrared fill light based on the light control safety power consumption and the current power consumption of the white fill light; a third control unit, configured to turn on the infrared fill light and control the light intensity of the infrared fill light to the second target light intensity; and a fourth control unit, configured to turn off the white fill light and clear the saturation of the imaging image.
[0123] In an exemplary embodiment, the fill light control module 520 may include a fifth control unit. The fifth control unit is configured to: when a second total power consumption of the first fill light, the pre-startup power consumption of the second fill light, and the switching power consumption is less than the light control safety power consumption, determine the pre-startup power consumption of the second fill light as the power consumption increment of the white light fill light, determine a first light intensity increment of the white light fill light based on the power consumption increment; and enhance the light intensity of the white light fill light based on the first light intensity increment to obtain the light intensity of the white light fill light when it is turned on.
[0124] In an exemplary embodiment, the fill light control module 520 further includes a sixth control unit. The sixth control unit is configured to: determine a second light intensity increment of the white light fill light based on the light control safety power consumption and the third total power consumption when the second total power consumption is greater than or equal to the light control safety power consumption and a third total power consumption between the power consumption of the first fill light and the switching power consumption is less than the light control safety power consumption; and enhance the light intensity of the white light fill light based on the second light intensity increment to obtain the light intensity of the white light fill light when it is turned on.
[0125] In an exemplary embodiment, the fill light control module 520 further includes a seventh control unit. The seventh control unit is configured to: determine an amount of reduction in the light intensity of the white light fill light based on the light control safety power consumption and the third total power consumption when the third total power consumption is greater than or equal to the light control safety power consumption;
[0126] The light intensity of the white light fill light is reduced based on the light intensity reduction amount to obtain the light intensity of the white light fill light in the turned-on state.
[0127] FIG6 illustrates a schematic structural diagram of an electronic device. As shown in FIG6 , the electronic device may include: a processor 610, a communication interface 620, a memory 630, and a communication bus 640. The processor 610, the communication interface 620, and the memory 630 communicate with each other via the communication bus 640. The processor 610 may call the logic instructions in the memory 630 to execute the alarm service control method provided by any of the above method embodiments.
[0128] In addition, the logic instructions in the above-mentioned memory 630 can be implemented in the form of a software functional unit and can be stored in a computer-readable storage medium when sold or used as an independent product. Based on this understanding, the technical solution of the present disclosure is essentially or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including a number of instructions for enabling a computer device (which can be a personal computer, a server, or a network device, etc.) to perform all or part of the steps of the method described in each embodiment of the present disclosure. The aforementioned storage medium includes: a U disk, a mobile hard disk, a read-only memory (ROM, Read-Only Memory), a random access memory (RAM, Random Access Memory), a disk or an optical disk, etc., each medium that can store program code.
[0129] On the other hand, the present disclosure also provides a computer program product, which includes a computer program. The computer program can be stored on a computer-readable storage medium. When the computer program is executed by a processor, the computer can execute the alarm service control method provided by any of the above method embodiments.
[0130] On the other hand, the present disclosure further provides a non-transitory computer-readable storage medium having a computer program stored thereon, which is implemented when the computer program is executed by a processor to execute the alarm service control method provided by any of the above method embodiments.
[0131] Illustratively, computer-readable storage media include non-transitory computer-readable storage media.
[0132] The device embodiments described above are merely illustrative. The units described as separate components may or may not be physically separate, and the components shown as units may or may not be physical units, i.e., they may be located in one location or distributed across multiple network units. Some or all of the modules may be selected based on actual needs to achieve the objectives of the present embodiment. Persons of ordinary skill in the art will be able to understand and implement the present invention without inventive effort.
[0133] Through the description of the above embodiments, those skilled in the art can clearly understand that each embodiment can be implemented by means of software plus the necessary general hardware platform, or of course, by hardware. Based on this understanding, the essence of the above technical solution or the part that contributes to the existing technology 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, a magnetic disk, an optical disk, etc., and includes a number of instructions for causing a computer device (which can be a personal computer, a server, or a network device, etc.) to execute the method described in each embodiment or certain parts of the embodiment.
[0134] Finally, it should be noted that the above embodiments are only used to illustrate the technical solutions of the present disclosure, rather than to limit them. Although the present disclosure has been described in detail with reference to the aforementioned embodiments, those skilled in the art should understand that they can still modify the technical solutions described in each of the aforementioned embodiments, or make equivalent replacements for some of the technical features therein. However, these modifications or replacements do not deviate the essence of the corresponding technical solutions from the spirit and scope of the technical solutions of each embodiment of the present disclosure.
Claims
1. An alarm service control method, comprising: When the alarm command information is detected, the calibrated light control safety power consumption is obtained; The alarm instruction information instructs to switch the imaging picture of the monitoring device from the first imaging color to the second imaging color and to switch the fill light from the first fill light to the second fill light, wherein one of the first fill light and the second fill light is a white light fill light; When it is determined that the light control safety power consumption is greater than the switching power consumption of the dual filter switch, the white light fill light is controlled to be in an on state, and the light intensity of the white light fill light in the on state is controlled based on the light control safety power consumption, the power consumption of the first fill light and the pre-on power consumption of the second fill light; On the basis that the white light fill light is in the turned-on state, an alarm service process corresponding to the alarm instruction information is executed.
2. The alarm service control method according to claim 1, wherein: The alarm instruction information is an alarm trigger instruction, the first imaging color is black and white, the second imaging color is color, the first fill light is an infrared fill light, and the second fill light is the white light fill light; The execution of the alarm service process corresponding to the alarm instruction information includes: Turn off the infrared fill light; The dual filter switch is controlled to perform a first switching action to cut off infrared light and restore the saturation of the imaging picture to the saturation of a color image.
3. The alarm service control method according to claim 2, wherein: The controlling the light intensity of the white light fill light in the turned-on state based on the light control safety power consumption, the power consumption of the first fill light, and the pre-turn-on power consumption of the second fill light includes: In the case where a first total power consumption among the power consumption of the first fill light, the pre-on power consumption of the second fill light and the switching power consumption is less than the light control safety power consumption, the light intensity corresponding to the pre-on power consumption of the second fill light is determined as the first target light intensity of the white light fill light, and the light intensity of the white light fill light in the turned-on state before turning off the infrared fill light is controlled to be within the first target light intensity.
1. Target light intensity.
4. The alarm service control method according to claim 3, wherein: Also includes: When the first total power consumption is greater than or equal to the light control safety power consumption, determining the safety margin power consumption of the white light fill light based on the light control safety power consumption and the current power consumption of the first fill light; The first target light intensity of the white light fill light is determined based on the safety margin power consumption and the pre-turn-on power consumption of the second fill light, and the light intensity of the white light fill light in the turned-on state before turning off the infrared fill light is controlled to be within the first target light intensity.
5. The alarm service control method according to claim 1, wherein: The alarm instruction information is an alarm end instruction, the first imaging color is color, the second imaging color is black and white, the first fill light is the white light fill light, and the second fill light is an infrared fill light; The execution of the alarm service process corresponding to the alarm instruction information includes: Controlling the dual filter switch to perform a second switching action to allow infrared light to pass; Determining a second target light intensity of the infrared fill light based on the light control safety power consumption and the current power consumption of the white light fill light; Turning on the infrared fill light, and controlling the light intensity of the infrared fill light to the second target light intensity; The white light fill light is turned off, and the saturation of the imaging picture is cleared.
6. The alarm service control method according to claim 5, wherein: The controlling the light intensity of the white light fill light in the turned-on state based on the light control safety power consumption, the power consumption of the first fill light, and the pre-turn-on power consumption of the second fill light includes: In the case where a second total power consumption between the power consumption of the first fill light, the pre-startup power consumption of the second fill light and the switching power consumption is less than the light control safety power consumption, the pre-startup power consumption of the second fill light is determined as the power consumption increment of the white light fill light, and a first light intensity increment of the white light fill light is determined based on the power consumption increment; The light intensity of the white light fill light is enhanced based on the first light intensity increment to obtain the light intensity of the white light fill light in the turned-on state.
7. The alarm service control method according to claim 6, wherein: Also includes: When the second total power consumption is greater than or equal to the light control safety power consumption, and a third total power consumption between the power consumption of the first fill light and the switching power consumption is less than the light control safety power consumption, determining a second light intensity increment of the white light fill light based on the light control safety power consumption and the third total power consumption; The light intensity of the white light fill light is enhanced based on the second light intensity increment to obtain the light intensity of the white light fill light in the turned-on state.
8. The alarm service control method according to claim 7, wherein: Also includes: When the third total power consumption is greater than or equal to the light control safety power consumption, determining the light intensity reduction amount of the white light fill lamp based on the light control safety power consumption and the third total power consumption; The light intensity of the white light fill light is reduced based on the light intensity reduction amount to obtain the light intensity of the white light fill light in the turned-on state.
9. An alarm service control device, comprising: A safety power consumption acquisition module, configured to acquire a calibrated light control safety power consumption when an alarm instruction message is detected; The alarm instruction information instructs to switch the imaging picture of the monitoring device from the first imaging color to the second imaging color and to switch the fill light from the first fill light to the second fill light; one of the first fill light and the second fill light is a white light fill light; A fill light control module is configured to control the white light fill light to be in an on state when it is determined that the light control safety power consumption is greater than the switching power consumption of the dual filter switcher, and control the light intensity of the white light fill light in the on state based on the light control safety power consumption, the power consumption of the first fill light, and the pre-on power consumption of the second fill light; The service execution module is configured to execute the alarm service process corresponding to the alarm instruction information on the basis that the white light fill light is in the turned-on state.
10. An electronic device comprising a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the alarm service control method according to any one of claims 1 to 8 when executing the computer program.
Citation Information
Patent Citations
Camera shooting mode switching optimization method and apparatus, computer device and storage medium
CN108401116A
Solar camera control method and device, solar camera and storage medium
CN116320732A
Camera
CN202374337U
Circuit of infrared white light automatic switch -over of pulse constant voltage control
CN207753894U
Color / Black-and-white switchable camera
JP2002135788A