Method, apparatus, electronic device and computer-readable medium for dynamic adjustment of infrared light brightness for wireless cameras
By dynamically adjusting the brightness of the infrared lights in the wireless camera, the issues of standby time and image clarity are resolved, achieving efficient power management and improved image quality for the wireless camera.
Patent Information
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- SHENZHEN ADDX INNOVATION TECH CO LTD
- Filing Date
- 2024-08-09
- Publication Date
- 2026-04-17
AI Technical Summary
The infrared lights of wireless cameras reduce standby time when in high brightness, and adjusting brightness by simply reducing power consumption will reduce image clarity.
By controlling the wireless camera to turn on the infrared lights according to a preset duty cycle threshold, the exposure value is determined, and the brightness of the infrared lights is dynamically adjusted to the minimum brightness based on the scene image and the exposure value range to meet the shooting conditions.
It extends the standby time of the wireless camera, while improving image clarity and contrast and reducing power consumption.
Smart Images

Figure CN119052656B_ABST
Abstract
Description
Technical Field
[0001] Embodiments of this disclosure relate to the field of computer technology, and more specifically to a method, apparatus, electronic device, and computer-readable medium for dynamically adjusting the brightness of infrared lights for wireless cameras. Background Technology
[0002] Infrared lights can be used to assist camera shooting. Currently, when a camera is shooting, the brightness of the infrared lights is often adjusted to a high level in order to ensure that the camera captures a clearer image.
[0003] However, in practice, it has been found that when the above method is applied to wireless camera shooting, the following technical problems often occur:
[0004] First, since the built-in battery of a wireless camera has a limited lifespan, if the infrared light (for example, running at maximum power) remains at a high brightness for an extended period, it can easily lead to a reduction in the standby time of the wireless camera.
[0005] Secondly, if the brightness of the infrared lamp is adjusted only to reduce energy consumption, the image contrast, saturation and other values may be reduced due to the low brightness, and too much noise may be generated in the image, thereby reducing the image clarity.
[0006] The information disclosed in this background section is only intended to enhance the understanding of the background of the inventive concept, and therefore may contain information that does not constitute prior art known to those skilled in the art. Summary of the Invention
[0007] The summary portion of this disclosure is intended to provide a brief overview of the concepts, which will be described in detail in the detailed description portion that follows. This summary portion is not intended to identify key or essential features of the claimed technical solutions, nor is it intended to limit the scope of the claimed technical solutions.
[0008] Some embodiments of this disclosure provide a method, apparatus, electronic device, and computer-readable medium for dynamically adjusting the brightness of infrared lights for wireless cameras to solve one or more of the technical problems mentioned in the background section above.
[0009] In a first aspect, some embodiments of this disclosure provide a method for dynamically adjusting the brightness of an infrared lamp for a wireless camera. The method includes: controlling the wireless camera to turn on an infrared lamp according to a first preset duty cycle threshold and to capture a scene image, wherein the first preset duty cycle threshold represents a preset pulse duty cycle of the infrared lamp in the on state; determining the exposure value of the wireless camera when capturing the scene image; adjusting the brightness of the infrared lamp based on the scene image, the exposure value, and a preset exposure value range, wherein the adjustment involves adjusting the brightness of the infrared lamp to the minimum brightness that meets the shooting conditions, the shooting conditions dynamically changing according to the scene image captured by the wireless camera and the corresponding exposure value; and, in response to determining that the exposure value of the wireless camera corresponding to the adjusted infrared lamp meets the preset exposure value conditions, determining that the infrared lamp brightness adjustment is complete, and controlling the wireless camera to continue capturing images.
[0010] Secondly, some embodiments of this disclosure provide a dynamic brightness adjustment device for an infrared lamp of a wireless camera. The device includes: a shooting control unit configured to control the wireless camera to turn on the infrared lamp on the wireless camera according to a first preset duty cycle threshold and to capture a scene image, wherein the first preset duty cycle threshold represents a preset pulse duty cycle of the infrared lamp in the on state; a determining unit configured to determine the exposure value of the wireless camera when capturing the scene image; an adjusting unit configured to adjust the brightness of the infrared lamp based on the scene image, the exposure value, and a preset exposure value range, wherein the adjustment adjusts the brightness of the infrared lamp to the minimum brightness that meets the shooting conditions, the shooting conditions dynamically changing according to the scene image captured by the wireless camera and the corresponding exposure value; and a completion and control unit configured to, in response to determining that the adjusted exposure value of the wireless camera corresponding to the infrared lamp meets the preset exposure value conditions, determine that the infrared lamp brightness adjustment is complete, and control the wireless camera to continue capturing.
[0011] Thirdly, some embodiments of this disclosure provide an electronic device, including: one or more processors; and a storage device having one or more programs stored thereon, wherein when the one or more programs are executed by the one or more processors, the one or more processors implement the method described in any implementation of the first aspect above.
[0012] Fourthly, some embodiments of this disclosure provide a computer-readable medium having a computer program stored thereon, wherein the program, when executed by a processor, implements the method described in any of the implementations of the first aspect above.
[0013] The above-described embodiments of this disclosure have the following beneficial effects: The infrared light brightness dynamic adjustment method for a wireless camera according to some embodiments of this disclosure can improve the standby time of the wireless camera. Specifically, the reason for the reduced standby time of the wireless camera is that, since the built-in battery of the wireless camera has a certain usage time, if the infrared light (e.g., operating at maximum power) remains at a high brightness for a long time, it easily leads to a reduction in the standby time of the wireless camera. Based on this, the infrared light brightness dynamic adjustment method for a wireless camera according to some embodiments of this disclosure first controls the wireless camera to turn on the infrared light and take a picture according to a first preset duty cycle threshold to obtain a scene image. Here, the first preset duty cycle threshold represents the preset pulse duty cycle of the infrared light in the on state. By setting the duty cycle of the infrared light to take a picture of the scene, the variable of the infrared light brightness can be controlled to determine the effect of the scene image. Then, the exposure value of the wireless camera when taking the scene image is determined. Afterwards, based on the scene image, the exposure value, and the preset exposure value range, the brightness of the infrared light is adjusted. The adjustment process involves setting the brightness of the infrared lamp to the minimum brightness required to meet the shooting conditions. These shooting conditions dynamically change based on the scene image captured by the wireless camera and the corresponding exposure value. This dynamic adjustment of the infrared lamp brightness, based on the scene image and exposure value, achieves the goal of dynamic brightness regulation. Furthermore, by adjusting the infrared lamp brightness to the minimum required for the shooting conditions, the power consumption of the infrared lamp is further reduced, thus minimizing the power consumption of the wireless camera. Finally, upon confirming that the adjusted exposure value of the wireless camera meets the preset exposure conditions, the brightness adjustment is completed, and the wireless camera continues shooting. Therefore, by dynamically adjusting the infrared lamp brightness, the power consumption of the wireless camera during shooting is reduced, thereby extending the standby time of the wireless camera. Attached Figure Description
[0014] The above and other features, advantages, and aspects of the embodiments of this disclosure will become more apparent from the accompanying drawings and the following detailed description. Throughout the drawings, the same or similar reference numerals denote the same or similar elements. It should be understood that the drawings are schematic, and elements are not necessarily drawn to scale.
[0015] Figure 1 This is a flowchart of some embodiments of the method for dynamically adjusting the brightness of infrared lights for a wireless camera according to the present disclosure;
[0016] Figure 2 This is a schematic diagram of the structure of some embodiments of the infrared light brightness dynamic adjustment device for a wireless camera according to the present disclosure;
[0017] Figure 3This is a schematic diagram of the structure of an electronic device suitable for implementing some embodiments of the present disclosure. Detailed Implementation
[0018] Embodiments of this disclosure will now be described in more detail with reference to the accompanying drawings. While some embodiments of this disclosure are shown in the drawings, it should be understood that this disclosure can be implemented in various forms and should not be construed as limited to the embodiments set forth herein. Rather, these embodiments are provided to provide a more thorough and complete understanding of this disclosure. It should be understood that the accompanying drawings and embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of protection of this disclosure.
[0019] It should also be noted that, for ease of description, only the parts relevant to the invention are shown in the accompanying drawings. Unless otherwise specified, the embodiments and features described in this disclosure can be combined with each other.
[0020] It should be noted that the concepts of "first" and "second" mentioned in this disclosure are used only to distinguish different devices, modules or units, and are not used to limit the order of functions performed by these devices, modules or units or their interdependencies.
[0021] It should be noted that the terms "a" and "a plurality of" used in this disclosure are illustrative rather than restrictive, and those skilled in the art should understand that, unless otherwise expressly indicated in the context, they should be understood as "one or more".
[0022] The names of messages or information exchanged between multiple devices in the embodiments of this disclosure are for illustrative purposes only and are not intended to limit the scope of such messages or information.
[0023] This disclosure will now be described in detail with reference to the accompanying drawings and embodiments.
[0024] Figure 1 A flowchart 100 is shown, illustrating some embodiments of a method for dynamically adjusting the brightness of an infrared lamp for a wireless camera according to the present disclosure. This method for dynamically adjusting the brightness of an infrared lamp for a wireless camera includes the following steps:
[0025] Step 101: Control the wireless camera to turn on the infrared light on the wireless camera and take pictures according to the first preset duty cycle threshold to obtain a scene image.
[0026] In some embodiments, the execution entity of the infrared light brightness dynamic adjustment method for a wireless camera can control the wireless camera to turn on the infrared light and capture images according to a first preset duty cycle threshold to obtain a scene image. The first preset duty cycle threshold characterizes the preset pulse duty cycle of the infrared light in the on state. Here, the preset pulse duty cycle can be a maximum pulse duty cycle of 100% or a minimum pulse duty cycle of 0%. At the maximum pulse duty cycle, the infrared light is at its brightest, resulting in a lower exposure value for the captured scene image. Conversely, if the infrared light is at its brightest, the exposure value for the captured scene image is higher. Furthermore, the wireless camera may include a battery-powered camera or a rechargeable camera.
[0027] Specifically, the pulse duty cycle of an infrared lamp refers to the ratio of the high-level time to the total pulse period in the infrared lamp pulse signal. This ratio is usually expressed as a percentage, ranging from 0% to 100%. For example, if a pulse signal has a period of 4 microseconds, with a high-level time of 1 microsecond, then the duty cycle of this pulse signal is 25%.
[0028] Additionally, in the same scene, the darker the ambient light, the higher the EV (Exposure Values) and the greater the image noise; conversely, the brighter the ambient light, the lower the EV and the less image noise. The EV value can be used to determine the quality of the current image.
[0029] Step 102: Determine the exposure value of the wireless camera when capturing the scene image.
[0030] In some embodiments, the execution entity may determine the exposure value of the wireless camera when capturing the scene image. This exposure value is referred to as the EV value.
[0031] Specifically, when adjusting the brightness of the infrared LEDs, image quality must be considered. Therefore, the initial step is to control the infrared LED brightness to the target value. Then, the brightness can be adjusted back based on the exposure value of the wireless camera by controlling variables.
[0032] Step 103: Adjust the brightness of the infrared lamp based on the scene image, exposure value, and preset exposure value range.
[0033] In some embodiments, the execution entity can adjust the brightness of the infrared lamp based on the scene image, the exposure value, and a preset exposure value range. The adjustment may involve setting the brightness of the infrared lamp to the minimum brightness required to meet the shooting conditions. The shooting conditions can dynamically change based on the scene image captured by the wireless camera and the corresponding exposure value.
[0034] As an example, the sharpness of the scene image varies with the exposure value of the wireless camera. Therefore, the brightness conditions of the infrared lamp should be such that the exposure value of the wireless camera varies within a preset exposure value range, ensuring that the infrared lamp brightness is at its lowest when the sharpness of the captured scene image is greater than a preset sharpness threshold.
[0035] Here, the preset exposure range can be the range of exposure values for the wireless camera. The preset exposure range can be pre-set to ensure the camera's exposure is within a certain range while maintaining image sharpness.
[0036] As an example, the preset exposure value range can be [36000, 44000].
[0037] In some optional implementations of certain embodiments, the execution entity adjusts the brightness of the infrared lamp based on the scene image, the exposure value, and a preset exposure value range, which may include the following steps:
[0038] The first step is to adjust the preset exposure range based on the current time and camera orientation to obtain the adjusted exposure range. If the wireless camera is a directional camera, the camera orientation remains constant, so there's no need to adjust the preset exposure range. However, if it's a surround-view camera, the camera orientation changes, and different directions can easily result in significant brightness variations in natural light. Therefore, adjusting the preset exposure range can speed up the adjustment of the infrared light brightness based on exposure.
[0039] Optionally, the aforementioned execution entity adjusts the preset exposure value range based on the current time and camera orientation to obtain the adjusted exposure value range, which may include the following steps:
[0040] Step 1. In response to determining that the aforementioned wireless camera is a surround-view camera, acquire scene videos captured by the aforementioned wireless camera at different times to obtain a scene video set. The different times can be various time points within a pre-set day at equal intervals. The captured scene videos can include videos with a preset number of frames or a preset duration.
[0041] The second step involves performing luminance sampling detection on each frame of the scene image in each scene video within the aforementioned scene video set to generate a luminance detection value sequence, thus obtaining a luminance exposure value sequence set. Each luminance exposure value sequence can correspond to one scene video. The steps for performing luminance sampling detection on each scene video can be as follows:
[0042] First, the scene images in each frame of the scene video are sampled at equal intervals to obtain a group of sampled scene images. Equal interval sampling can be performed by sampling from consecutive frames of images.
[0043] Then, each sampled scene image in the sampled scene image group is cropped according to a preset image position to obtain the cropped scene image group. The preset image position can be the location of the center region of the image, such as the 200-pixel-wide area in the very center of the image. Therefore, image cropping can be performed by cropping out the 200-pixel-wide area in the very center of the image to obtain the cropped scene image.
[0044] Finally, brightness detection is performed on each cropped scene image in the cropped scene image group to obtain a brightness exposure value sequence. Brightness detection determines the exposure of the wireless camera at the time of capture for each cropped scene image, which is then used as the brightness exposure value.
[0045] The third step is to determine the camera optical axis vector corresponding to each brightness exposure value in the above brightness exposure value sequence, thus obtaining the camera optical axis vector sequence. Here, the camera optical axis vector in the above camera optical axis vector sequence is the vector in the camera coordinate system of the wireless camera. Secondly, the camera orientation vector can be solved using the camera pose matrix and used as the camera optical axis vector. Alternatively, the normal vector of the wireless camera's optical axis in the camera coordinate system can also be used as the camera optical axis vector.
[0046] The fourth step involves equally dividing the scanning sector arc of the aforementioned wireless camera's optical axis according to the respective camera optical axis vector sequences in the aforementioned camera optical axis vector sequence, to generate a sequence of divided scanning arcs. Each divided scanning arc in the sequence has the same numerical value but a different arc direction, and the camera optical axis vector corresponds to the center line of the divided scanning arc.
[0047] The fifth step involves combining each of the divided scanning arcs in the above sequence with the corresponding camera optical axis vector to form exposure adjustment range information. This exposure adjustment range information can characterize a shooting arc range of the wireless camera.
[0048] Step 6: For each brightness exposure value in the aforementioned brightness exposure value sequence, using the brightness exposure value as the midpoint of the brightness axis, the area extended by a preset length in both the forward and reverse directions of the brightness axis is defined as the adjusted exposure value range. Furthermore, the exposure value adjustment interval information corresponding to the aforementioned brightness exposure value is associated with this range. This is used to determine when the shooting direction of the wireless camera falls within the interval corresponding to the exposure value adjustment interval information, and then adjusting the preset exposure value range according to the adjusted exposure value range. The brightness axis can be a number axis representing brightness values arranged from smallest to largest. Secondly, the association can be establishing a correlation between the brightness exposure value and the shooting arc range represented by the exposure value adjustment interval information. This allows for exposure value adjustment according to the adjusted exposure value range corresponding to the aforementioned brightness exposure value when the camera swings within this shooting arc range during shooting. This addresses situations where the brightness of different areas varies significantly when shooting with a surround-view camera, thereby improving the image clarity.
[0049] The second step involves adjusting the pulse duty cycle of the infrared lamp to obtain the adjusted duty cycle in response to the determination that the exposure value is less than the adjusted exposure value range. Specifically, if the pulse duty cycle of the infrared lamp is at its maximum value, it can be lowered by a preset value (e.g., 1%, 2%, etc., without specific limitation) each time to obtain the adjusted duty cycle. If the pulse duty cycle of the infrared lamp is at its minimum value, it can be increased by a preset value (e.g., 1%, 2%, etc., without specific limitation) each time to obtain the adjusted duty cycle.
[0050] Specifically, by sequentially adjusting the pulse duty cycle of the infrared lights, the brightness of the infrared lights can be adjusted in reverse order, from brightest to darkest. This causes the exposure of the wireless camera to change accordingly when capturing images, ensuring the exposure remains within the adjusted range.
[0051] The third step is to determine that the brightness adjustment of the infrared light is complete when the infrared light is in a state of reduced duty cycle and the exposure value of the wireless camera is detected to be within the range of the adjusted exposure value.
[0052] Optionally, after the execution entity adjusts the brightness of the infrared lamp based on the scene image, the exposure value, and the preset exposure value range, the following steps may also be included:
[0053] The first step is to perform quality inspection on the aforementioned scene images to generate inspection results. This quality inspection includes, but is not limited to, performing at least one of the following on the scene images: contrast detection, structural similarity detection, resolution detection, color gamut saturation detection, image noise quantity detection, image peak signal-to-noise ratio (PSNR) detection, and image subjective quality inspection, to obtain the aforementioned inspection results, including: quality contrast value, structural similarity value, color gamut saturation, image noise quantity, image PSNR, and image subjective quality inspection value.
[0054] Specifically, the contrast of the scene image can be detected using an image contrast function to obtain a quality contrast value. The SSIM (Structural Similarity) algorithm can be used to determine the structural similarity between the scene image and an image captured by a wireless camera at the same location with a sharpness greater than a preset sharpness threshold. The color gamut saturation of the scene image can be detected using a red-green-blue color model to obtain the color gamut saturation. The number of image noises in the scene image can be detected using a Fourier transform algorithm to obtain the number of image noises. The peak signal-to-noise ratio (PSNR) algorithm can be used to detect the peak signal-to-noise ratio (PSNR) of the scene image to obtain the peak signal-to-noise ratio (PSNR). The subjective quality of the scene image can be detected using a MOS (Meanopin-ionscore) model or a DMOS (Differential Mean Opinion Score) model to obtain the subjective quality detection value.
[0055] The second step involves generating an image quality detection value based on the aforementioned detection results, including quality contrast, structural similarity, resolution, color gamut saturation, image noise level, peak signal-to-noise ratio (PSNR), and subjective image quality detection value. This involves normalizing these values. Then, the normalized values are weighted and summed according to preset weighting coefficients to obtain the final image quality detection value. This image quality detection value can be used to characterize the quality level of the image in the aforementioned scene.
[0056] The third step involves performing dynamic detection on the aforementioned scene images to generate dynamic detection results. These results indicate whether the wireless camera has detected a moving target. Furthermore, a preset dynamic detection algorithm can be used to perform dynamic detection on the scene images to generate dynamic detection results. These results can be expressed using numerical values, labels, or other methods to indicate whether a moving target is detected in the scene image.
[0057] As an example, dynamic detection algorithms may include, but are not limited to, at least one of the following: convolutional neural networks, recurrent neural networks, support vector machines, etc.
[0058] Fourthly, in response to determining that the dynamic detection result represents information indicating the detection of a moving target, and determining that the image quality detection value is less than a preset quality threshold, the preset exposure value of the wireless camera is adjusted to obtain the adjusted exposure value. Specifically, if a moving target is detected in the scene image, the image quality can be improved by adjusting the preset exposure value after adjusting the infrared light brightness.
[0059] Specifically, adjusting the preset exposure value can involve lowering it so that the current exposure value exceeds the preset range, thereby triggering the infrared lights to increase brightness. As external light intensity increases, the wireless camera's built-in Image Signal Processor (ISP) module or chip then adjusts the camera's current exposure value again to ensure stable image contrast. This, in turn, improves the clarity of the captured image.
[0060] Optionally, the above-mentioned preset exposure value range can be generated through the following steps:
[0061] The first step is to acquire sampled scene image groups corresponding to different brightness values, resulting in a set of sampled scene image groups. The brightness value of each sampled scene image is pre-detected. Each sampled scene image in each sampled scene image group corresponds to a continuous camera exposure. Here, the camera exposure can be continuous by incrementing by 1 sequentially, or it can be continuous at preset exposure intervals. Different brightness values correspond to different infrared light brightness. Secondly, each sampled scene image group consists of multiple images corresponding to the same infrared light brightness but with different exposures.
[0062] The second step is to select sampled scene images with image clarity greater than a preset clarity threshold from the above sampled scene image set to generate a target sampled scene image set.
[0063] The third step is to determine the average camera exposure value corresponding to each target sampling scene image in the above target sampling scene image set as the calibration exposure value.
[0064] The fourth step is to determine the preset exposure range centered on the above-mentioned calibrated exposure as the preset exposure value range.
[0065] As an example, the calibrated exposure is 40000. The preset exposure range is a fluctuation range of ±10%. Therefore, the preset exposure value range is [36000, 44000]. Thus, if the calibrated exposure (i.e., the preset exposure value) is adjusted, the preset exposure value range can be adjusted accordingly.
[0066] Step 104: In response to determining that the exposure value of the wireless camera corresponding to the adjusted infrared light meets the preset exposure value condition, determine that the infrared light brightness adjustment is complete, and control the wireless camera to continue shooting.
[0067] In some embodiments, the execution entity may, in response to determining that the exposure value of the wireless camera corresponding to the adjusted infrared light meets a preset exposure value condition, determine that the infrared light brightness adjustment is complete, and control the wireless camera to continue shooting. The preset exposure value condition may be that the exposure value is within a preset exposure range.
[0068] Optionally, the aforementioned implementing entity may also include the following steps:
[0069] The first step is to determine the power consumption rate of the wireless camera when the infrared light is at a first preset duty cycle threshold. Here, the first preset duty cycle threshold can be the maximum pulse percentage. This allows us to determine the power of the infrared light, and thus the overall power of the wireless camera. Therefore, the power consumption rate of the wireless camera can be determined using electrical formulas.
[0070] The second step is to determine the remaining working time of the wireless camera at the aforementioned power consumption rate, based on the remaining battery power of the wireless camera.
[0071] The third step involves triggering a battery swapping reminder operation in response to the determination that the remaining working time is less than a preset time threshold. This battery swapping reminder operation includes sending a battery swapping reminder message and the remaining working time to the user terminal. For example, the preset time threshold could be 2 hours.
[0072] Optionally, the aforementioned implementing entity may also include the following steps:
[0073] The first step, after adjusting the infrared light brightness, involves periodically detecting the image exposure value of the images captured by the wireless camera at preset time intervals to obtain the adjusted image exposure value. The preset time interval can be 1 second or 1 minute, without specific limitation. The exposure value detection obtains the exposure level at the time the wireless camera was capturing the image.
[0074] The second step involves re-exercising the brightness of the infrared lamp in response to the detection of an image exposure value outside the preset exposure range. This brightness adjustment step can be step 103 or any subsequent steps and implementations described above.
[0075] The aforementioned 104 and related content, as an inventive point of this disclosure, solves the second technical problem mentioned in the background art: "If the brightness of the infrared lamp is adjusted only to reduce energy consumption, it is easy for the image contrast, saturation, and other values to decrease due to excessive brightness, and excessive image noise, thereby reducing image clarity." Factors leading to reduced image clarity often include: if the brightness of the infrared lamp is adjusted only to reduce energy consumption, it is easy for the image contrast, saturation, and other values to decrease due to excessive brightness, and excessive image noise. Solving these factors can improve the clarity of images captured by the wireless camera after adjusting the infrared lamp brightness. To achieve this effect, firstly, considering that even after adjusting the brightness of the infrared lamp to a suitable level, there is still a situation where the image clarity is low, the wireless camera's aperture size, shutter speed, ISO, and other settings can be automatically adjusted to determine the adjusted exposure value when capturing the image. This achieves the purpose of adjusting the exposure value. Furthermore, considering the significant differences in natural light sensitivity due to the varying orientation of the surround-view camera, corresponding exposure value ranges were set for different curvature directions. Therefore, the adjusted exposure value range can be used depending on the camera's orientation. This avoids issues such as reduced image contrast and saturation, and excessive image noise caused by exceeding the adjusted exposure range. Thus, this implementation method can improve image clarity by controlling the exposure of the wireless camera, while simultaneously increasing its standby time.
[0076] The above-described embodiments of this disclosure have the following beneficial effects: The infrared light brightness dynamic adjustment method for a wireless camera according to some embodiments of this disclosure can improve the standby time of the wireless camera. Specifically, the reason for the reduced standby time of the wireless camera is that, since the built-in battery of the wireless camera has a certain usage time, if the infrared light (e.g., operating at maximum power) remains at a high brightness for a long time, it easily leads to a reduction in the standby time of the wireless camera. Based on this, the infrared light brightness dynamic adjustment method for a wireless camera according to some embodiments of this disclosure first controls the wireless camera to turn on the infrared light and take a picture according to a first preset duty cycle threshold to obtain a scene image. Here, the first preset duty cycle threshold represents the preset pulse duty cycle of the infrared light in the on state. By setting the duty cycle of the infrared light to take a picture of the scene, the variable of the infrared light brightness can be controlled to determine the effect of the scene image. Then, the exposure value of the wireless camera when taking the scene image is determined. Afterwards, based on the scene image, the exposure value, and the preset exposure value range, the brightness of the infrared light is adjusted. The adjustment process involves setting the brightness of the infrared lamp to the minimum brightness required to meet the shooting conditions. These shooting conditions dynamically change based on the scene image captured by the wireless camera and the corresponding exposure value. This dynamic adjustment of the infrared lamp brightness, based on the scene image and exposure value, achieves the goal of dynamic brightness regulation. Furthermore, by adjusting the infrared lamp brightness to the minimum required for the shooting conditions, the power consumption of the infrared lamp is further reduced, thus minimizing the power consumption of the wireless camera. Finally, upon confirming that the adjusted exposure value of the wireless camera meets the preset exposure conditions, the brightness adjustment is completed, and the wireless camera continues shooting. Therefore, by dynamically adjusting the infrared lamp brightness, the power consumption of the wireless camera during shooting is reduced, thereby extending the standby time of the wireless camera.
[0077] Further reference Figure 2 As an implementation of the methods shown in the above figures, this disclosure provides some embodiments of an infrared lamp brightness dynamic adjustment device for a wireless camera. These device embodiments are similar to... Figure 1 Corresponding to the method embodiments shown, the device can be specifically applied to various electronic devices.
[0078] like Figure 2As shown, an infrared light brightness dynamic adjustment device 200 for a wireless camera in some embodiments includes: a control and shooting unit 201, a determination unit 202, an adjustment unit 203, and a completion and control unit 204. The control and shooting unit 201 is configured to control the wireless camera to turn on the infrared light on the wireless camera according to a first preset duty cycle threshold and to capture a scene image, wherein the first preset duty cycle threshold represents a preset pulse duty cycle of the infrared light in the on state; the determination unit 202 is configured to determine the exposure value of the wireless camera when capturing the scene image; the adjustment unit 203 is configured to adjust the brightness of the infrared light based on the scene image, the exposure value, and a preset exposure value range, wherein the adjustment is to adjust the brightness of the infrared light to the minimum brightness that meets the shooting conditions, the shooting conditions dynamically changing according to the scene image captured by the wireless camera and the corresponding exposure value; the completion and control unit 204 is configured to, in response to determining that the adjusted infrared light exposure value of the wireless camera meets the preset exposure value conditions, determine that the infrared light brightness adjustment is complete, and control the wireless camera to continue capturing.
[0079] It is understandable that the units described in the device 200 are related to the reference. Figure 1 The steps in the described method correspond to each other. Therefore, the operations, features, and beneficial effects described above for the method also apply to the device 200 and the units contained therein, and will not be repeated here.
[0080] The following is for reference. Figure 3 It shows a schematic diagram of the structure of an electronic device (e.g., a computing device) 300 suitable for implementing some embodiments of the present disclosure. Figure 3 The electronic device shown is merely an example and should not be construed as limiting the functionality and scope of the embodiments of this disclosure.
[0081] like Figure 3 As shown, the electronic device 300 may include a processing unit (e.g., a central processing unit, a graphics processing unit, etc.) 301, which can perform various appropriate actions and processes according to a program stored in a read-only memory 302 or a program loaded from a storage device 308 into a random access memory 303. The random access memory 303 also stores various programs and data required for the operation of the electronic device 300. The processing unit 301, the read-only memory 302, and the random access memory 303 are interconnected via a bus 304. An input / output interface 305 is also connected to the bus 304.
[0082] Typically, the following devices can be connected to I / O interface 305: input devices 306 including, for example, touchscreens, touchpads, keyboards, mice, cameras, microphones, accelerometers, gyroscopes, etc.; output devices 307 including, for example, liquid crystal displays (LCDs), speakers, vibrators, etc.; storage devices 308 including, for example, magnetic tapes, hard disks, etc.; and communication devices 309. Communication device 309 allows electronic device 300 to communicate wirelessly or wiredly with other devices to exchange data. Although Figure 3 An electronic device 300 with various devices is shown; however, it should be understood that it is not required to implement or possess all of the devices shown. More or fewer devices may be implemented or possessed alternatively. Figure 3 Each box shown can represent a device or multiple devices as needed.
[0083] In particular, according to some embodiments of this disclosure, the processes described above with reference to the flowcharts can be implemented as computer software programs. For example, some embodiments of this disclosure include a computer program product comprising a computer program carried on a computer-readable medium, the computer program containing program code for performing the methods shown in the flowcharts. In such embodiments, the computer program can be downloaded and installed from a network via a communication device 309, or installed from a storage device 308, or installed from a read-only memory 302. When the computer program is executed by the processing device 301, it performs the functions defined in the methods of some embodiments of this disclosure.
[0084] It should be noted that, in some embodiments of this disclosure, the computer-readable medium may be a computer-readable signal medium or a computer-readable storage medium, or any combination thereof. A computer-readable storage medium may be, for example,—but not limited to—an electrical, magnetic, optical, electromagnetic, infrared, or semiconductor system, apparatus, or device, or any combination thereof. More specific examples of a computer-readable storage medium may include, but are not limited to: an electrical connection having one or more wires, a portable computer disk, a hard disk, random access memory (RAM), read-only memory (ROM), erasable programmable read-only memory (EPROM or flash memory), optical fiber, portable compact disk read-only memory (CD-ROM), optical storage device, magnetic storage device, or any suitable combination thereof. In some embodiments of this disclosure, a computer-readable storage medium may be any tangible medium containing or storing a program that can be used by or in conjunction with an instruction execution system, apparatus, or device. In some embodiments of this disclosure, a computer-readable signal medium may include a data signal propagated in baseband or as part of a carrier wave, carrying computer-readable program code. Such propagated data signals may take various forms, including but not limited to electromagnetic signals, optical signals, or any suitable combination thereof. A computer-readable signal medium can be any computer-readable medium other than a computer-readable storage medium, which can send, propagate, or transmit a program for use by or in connection with an instruction execution system, apparatus, or device. The program code contained on the computer-readable medium can be transmitted using any suitable medium, including but not limited to: wires, optical fibers, RF (radio frequency), etc., or any suitable combination thereof.
[0085] In some implementations, clients and servers can communicate using any currently known or future-developed network protocol such as HTTP (Hypertext Transfer Protocol) and can interconnect with digital data communication (e.g., communication networks) of any form or medium. Examples of communication networks include local area networks (“LANs”), wide area networks (“WANs”), the Internet (e.g., the Internet of Things), and end-to-end networks (e.g., ad hoc end-to-end networks), as well as any currently known or future-developed networks.
[0086] The aforementioned computer-readable medium may be included in the aforementioned electronic device; or it may exist independently without being assembled into the electronic device. The aforementioned computer-readable medium carries one or more programs that, when executed by the electronic device, cause the electronic device to: control a wireless camera to turn on its infrared light according to a first preset duty cycle threshold and to capture a scene image, wherein the first preset duty cycle threshold represents the preset pulse duty cycle of the infrared light in the on state; determine the exposure value of the wireless camera when capturing the scene image; adjust the brightness of the infrared light based on the scene image, the exposure value, and a preset exposure value range, wherein the adjustment involves adjusting the brightness of the infrared light to the minimum brightness that meets the shooting conditions, the shooting conditions dynamically changing according to the scene image captured by the wireless camera and the corresponding exposure value; and, in response to determining that the adjusted exposure value of the wireless camera corresponding to the infrared light meets the preset exposure value conditions, determine that the infrared light brightness adjustment is complete and control the wireless camera to continue capturing images.
[0087] Computer program code for performing operations of some embodiments of this disclosure can be written in one or more programming languages or a combination thereof, including object-oriented programming languages such as Java, Smalltalk, and C++, and conventional procedural programming languages such as the "C" language or similar programming languages. The program code can be executed entirely on the user's computer, partially on the user's computer, as a standalone software package, partially on the user's computer and partially on a remote computer, or entirely on a remote computer or server. In cases involving remote computers, the remote computer can be connected to the user's computer via any type of network—including a local area network (LAN) or a wide area network (WAN)—or can be connected to an external computer (e.g., via the Internet using an Internet service provider).
[0088] The flowcharts and block diagrams in the accompanying drawings illustrate the architecture, functionality, and operation of possible implementations of systems, methods, and computer program products according to various embodiments of this disclosure. In this regard, each block in a flowchart or block diagram may represent a module, segment, or portion of code containing one or more executable instructions for implementing a specified logical function. It should also be noted that in some alternative implementations, the functions indicated in the blocks may occur in a different order than those indicated in the drawings. For example, two consecutively indicated blocks may actually be executed substantially in parallel, and they may sometimes be executed in reverse order, depending on the functions involved. It should also be noted that each block in the block diagrams and / or flowcharts, and combinations of blocks in the block diagrams and / or flowcharts, can be implemented using a dedicated hardware-based system that performs the specified function or operation, or using a combination of dedicated hardware and computer instructions.
[0089] The units described in some embodiments of this disclosure can be implemented in software or hardware. The described units can also be housed in a processor; for example, a processor may be described as including a control unit for capturing images, a determination unit, an adjustment unit, and a completion and control unit. The names of these units do not necessarily limit the specific unit itself; for example, the control unit for capturing images may also be described as "a unit that controls a wireless camera to turn on its infrared lights and capture images according to a first preset duty cycle threshold."
[0090] The functions described above in this document can be performed, at least in part, by one or more hardware logic components. For example, exemplary types of hardware logic components that can be used, without limitation, include: Field Programmable Gate Arrays (FPGAs), Application-Specific Integrated Circuits (ASICs), Application Standard Products (ASSPs), System-on-Chip (SoCs), Complex Programmable Logic Devices (CPLDs), and so on.
[0091] The above description is merely a selection of preferred embodiments of this disclosure and an explanation of the technical principles employed. Those skilled in the art should understand that the scope of the invention involved in the embodiments of this disclosure is not limited to technical solutions formed by specific combinations of the above-described technical features, but should also cover other technical solutions formed by arbitrary combinations of the above-described technical features or their equivalents without departing from the above-described inventive concept. For example, technical solutions formed by substituting the above-described features with (but not limited to) technical features with similar functions disclosed in the embodiments of this disclosure.
Claims
1. A method for dynamically adjusting the brightness of an infrared lamp in a wireless camera, comprising: The wireless camera is controlled to turn on the infrared light on the wireless camera and take pictures according to the first preset duty cycle threshold to obtain a scene image. The first preset duty cycle threshold represents the preset pulse duty cycle of the infrared light in the on state. Determine the exposure value of the wireless camera when capturing the scene image; Based on the scene image, the exposure value, and the preset exposure value range, the brightness of the infrared lamp is adjusted. The adjustment involves setting the brightness of the infrared lamp to the minimum brightness required to meet the shooting conditions. These shooting conditions dynamically change based on the scene image captured by the wireless camera and the corresponding exposure value. This includes: adjusting the preset exposure value range according to the current time point and camera orientation to obtain an adjusted exposure value range; in response to determining that the exposure value is less than the adjusted exposure value range, reducing the pulse duty cycle of the infrared lamp to obtain an adjusted duty cycle; and in response to determining that, while the infrared lamp is in the adjusted duty cycle state, the exposure value of the wireless camera is within the adjusted exposure value range, confirming that the brightness adjustment of the infrared lamp is complete. In response to determining that the exposure value of the wireless camera corresponding to the adjusted infrared light meets the preset exposure value condition, the system determines that the infrared light brightness adjustment is complete and controls the wireless camera to continue shooting.
2. The method according to claim 1, wherein, The method further includes: Determine the power consumption rate of the wireless camera when the infrared light is in the state of a first preset duty cycle threshold. Based on the remaining battery power of the wireless camera, determine the remaining working time of the wireless camera at the stated power consumption rate; In response to determining that the remaining working time is less than a preset time threshold, a battery swapping reminder operation is triggered, wherein the battery swapping reminder operation includes sending a battery swapping reminder message and the remaining working time to the user terminal.
3. The method according to claim 1, wherein, The method further includes: After the infrared light brightness is adjusted, the image exposure value of the image captured by the wireless camera is detected at preset time intervals to obtain the adjusted image exposure value. In response to detecting an image exposure value outside the preset exposure range, the brightness adjustment step of the infrared lamp is executed again.
4. The method according to claim 3, wherein, The preset exposure value range is generated through the following steps: Obtain sampled scene image groups corresponding to different brightness values to obtain a set of sampled scene image groups. The brightness value of each sampled scene image is pre-detected, and each sampled scene image in each sampled scene image group corresponds to a continuous camera exposure. Select sampled scene images with image clarity greater than a preset clarity threshold from the sampled scene image set to generate a target sampled scene image set; The average camera exposure value corresponding to each target sampling scene image in the target sampling scene image set is determined as the calibration exposure value; The preset exposure range centered on the calibrated exposure is defined as the preset exposure value range.
5. A device for dynamically adjusting the brightness of an infrared lamp for a wireless camera, comprising: The control shooting unit is configured to control the wireless camera to turn on the infrared light on the wireless camera and take pictures according to a first preset duty cycle threshold to obtain a scene image, wherein the first preset duty cycle threshold represents the preset pulse duty cycle of the infrared light in the on state. The determining unit is configured to determine the exposure value of the wireless camera when capturing the scene image; An adjustment unit is configured to adjust the brightness of the infrared lamp based on the scene image, the exposure value, and a preset exposure value range. The adjustment involves setting the brightness of the infrared lamp to the minimum brightness required to meet the shooting conditions. These shooting conditions dynamically change based on the scene image captured by the wireless camera and the corresponding exposure value. The adjustments include: adjusting the preset exposure value range based on the current time point and camera orientation to obtain an adjusted exposure value range; reducing the pulse duty cycle of the infrared lamp in response to determining that the exposure value is less than the adjusted exposure value range to obtain an adjusted duty cycle; and determining that the brightness adjustment of the infrared lamp is complete in response to determining that the exposure value of the wireless camera is within the adjusted exposure value range while the infrared lamp is in the adjusted duty cycle state. The completion and control unit is configured to determine that the infrared light brightness adjustment is complete and to control the wireless camera to continue shooting in response to determining that the exposure value of the wireless camera corresponding to the adjusted infrared light meets the preset exposure value condition.
6. An electronic device, comprising: One or more processors; Storage device, on which one or more programs are stored, The shooting device includes one or more wireless cameras, wherein the wireless cameras are configured to capture images; When the one or more programs are executed by the one or more processors, the one or more processors implement the method as described in any one of claims 1-4.
7. A computer-readable medium having a computer program stored thereon, wherein, When the computer program is executed by a processor, it implements the method as described in any one of claims 1-4.
Citation Information
Patent Citations
Infrared lamp power adjustment method and camera device
CN108243311A