Zoom camera infrared control method and device, electronic equipment and storage medium

By obtaining the expected gain value of the camera and comparing it with the intensity threshold, the intensity adjustment of the infrared light is controlled, which solves the problem of fill light demand for zoom cameras at long and short distances, realizes high-precision automatic focusing and motion tracking, and improves the intelligence level and stability of the system.

CN120602790APending Publication Date: 2025-09-05SUNELL TECH CORP
View PDF 0 Cites 1 Cited by

Patent Information

Application Number
CN202510795709.3
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2025-06-13
Publication Date
2025-09-05

AI Technical Summary

Technical Problem

Existing zoom camera control methods have insufficient fill light performance at long distances, making it difficult to achieve automatic focusing and motion tracking. In addition, the infrared controller has low control accuracy during single-channel signal transmission and cannot meet the fill light requirements at long and short distances under small and large focal lengths.

Method used

By obtaining the expected gain value of the camera and comparing it with the intensity adjustment threshold, the intensity adjustment of the infrared light is controlled, including increasing the intensity at a low intensity threshold, reducing the intensity at a high intensity threshold, and keeping it unchanged between the thresholds, thereby achieving infrared light intensity control at different angles at different focal lengths.

Benefits of technology

It achieves a multi-objective balance among exposure accuracy, image quality protection, and power consumption optimization, improving the robustness and user experience of zoom cameras under complex lighting conditions, ensuring fast and accurate focusing and tracking of target objects, and adapting to fill light requirements at different focal lengths.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN120602790A_ABST
    Figure CN120602790A_ABST
Patent Text Reader

Abstract

The embodiment of the invention discloses a zoom camera infrared control method and device, electronic equipment and a computer readable storage medium, and relates to the technical field of cameras, and the method comprises the steps: obtaining a current expected gain value of a camera; comparing the expected gain value with the intensity adjustment threshold value to obtain a comparison result; when the comparison result is that the expected gain value is greater than or equal to the low-intensity threshold value, controlling the infrared lamp to improve the intensity; when the comparison result is that the expected gain value is smaller than or equal to the high-intensity threshold value, controlling an infrared lamp to reduce the intensity; and when the comparison result is that the expected gain value is less than the low-intensity threshold value and greater than the high-intensity threshold value, controlling the intensity of the infrared lamp to be unchanged. Therefore, multi-target balance of exposure accuracy, image quality protection and power consumption optimization is achieved, the method is suitable for scenes which are complex in illumination condition and need long-time stable operation, and the robustness and user experience of equipment in a non-ideal environment are effectively improved.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The embodiments of the present disclosure relate to the field of camera technology, and more particularly to a method and device for infrared control of a zoom camera, an electronic device, and a computer-readable storage medium. Background Art

[0002] With the development of video surveillance technology, zoom cameras have been widely used in security, traffic monitoring, and other fields due to their high sensitivity and long-range observation capabilities. However, existing zoom camera control methods have the following problems: traditional infrared controllers have low control accuracy when using single-channel signal transmission, insufficient long-range fill light performance, and insufficient intelligence, making it difficult to implement functions such as autofocus and motion tracking. A single-channel signal can only compensate for infrared light at a fixed distance and angle. Using a narrow-angle infrared fill light cannot meet the fill light requirements for long focal lengths and distances, resulting in excessively dim light at long distances. Using a wide-angle infrared fill light cannot meet the fill light requirements for short focal lengths and close distances, resulting in a flashlight effect.

[0003] Therefore, how to meet the fill light requirements of zoom cameras at short and long distances under small and large focal lengths is a problem that needs to be solved at present. Summary of the Invention

[0004] The embodiments of the present disclosure provide a zoom camera infrared control method, device, electronic device, and computer-readable storage medium, aiming to solve at least one of the technical problems in the related art to a certain extent.

[0005] In a first aspect, an embodiment of the present disclosure provides an infrared control method for a zoom camera, the method comprising:

[0006] Get the current expected gain value of the camera;

[0007] Comparing the expected gain value with an intensity adjustment threshold to obtain a comparison result, wherein the intensity adjustment threshold includes a low intensity threshold and a high intensity threshold;

[0008] When the comparison result shows that the expected gain value is greater than or equal to the low intensity threshold, controlling the infrared lamp at at least one angle to increase the intensity;

[0009] When the comparison result shows that the expected gain value is less than or equal to the high intensity threshold, controlling the infrared lamp at at least one angle to reduce the intensity;

[0010] When the comparison result is that the expected gain value is less than the low intensity threshold and greater than the high intensity threshold, the intensity of the infrared light at at least one angle is controlled to remain unchanged.

[0011] In a second aspect, an embodiment of the present disclosure further provides an infrared control device for a zoom camera, the device comprising:

[0012] The acquisition module is used to obtain the current expected gain value of the camera;

[0013] a comparison module, configured to compare the expected gain value with an intensity adjustment threshold to obtain a comparison result, wherein the intensity adjustment threshold includes a low intensity threshold and a high intensity threshold;

[0014] a first control module, configured to control the infrared lamp at at least one angle to increase intensity when the comparison result shows that the expected gain value is greater than or equal to the low intensity threshold;

[0015] a second control module, configured to control the infrared lamp at at least one angle to reduce intensity when the comparison result shows that the expected gain value is less than or equal to the high intensity threshold;

[0016] The third control module is configured to control the intensity of the infrared light at at least one angle to remain unchanged when the comparison result shows that the expected gain value is less than the low intensity threshold and greater than the high intensity threshold.

[0017] In a third aspect, an embodiment of the present disclosure further provides an electronic device, which includes a memory, a processor, and a computer program stored in the memory and executable on the processor. When the computer program is executed by the processor, the steps in the above-mentioned infrared control method for a zoom camera are implemented.

[0018] In a fourth aspect, an embodiment of the present disclosure further provides a computer-readable storage medium, on which a computer program is stored. When the computer program is executed by a processor, the steps in the above-mentioned infrared control method for a zoom camera are implemented.

[0019] In a fifth aspect, embodiments of the present disclosure further provide a computer program product or computer program, which includes computer instructions stored in a computer-readable storage medium. A processor of a computer device reads the computer instructions from the computer-readable storage medium and executes the computer instructions, causing the computer device to perform the methods provided in various optional implementations of the embodiments of the present disclosure.

[0020] In the disclosed embodiment, the camera's current desired gain value is first obtained. The desired gain value is then compared with an intensity adjustment threshold to obtain a comparison result. The intensity adjustment threshold includes a low intensity threshold and a high intensity threshold. Subsequently, when the comparison result shows that the desired gain value is greater than or equal to the low intensity threshold, the infrared light intensity at at least one angle is increased. When the comparison result shows that the desired gain value is less than or equal to the high intensity threshold, the infrared light intensity at at least one angle is decreased. When the comparison result shows that the desired gain value is less than the low intensity threshold but greater than the high intensity threshold, the infrared light intensity at at least one angle is maintained constant. This achieves a multi-objective balance between exposure accuracy, image quality protection, and power consumption optimization. This system is suitable for scenarios with complex lighting conditions and the need for long-term stable operation. Through simple logic rules, it effectively improves the device's robustness and user experience in non-ideal environments. When ambient light is sufficient, the system automatically reduces the infrared light intensity or disables the fill light, preventing overexposure or increased noise caused by the superposition of infrared light and ambient light. This prioritizes image purity and meets the fill light requirements of zoom cameras at both short and long focal lengths. In medium-gain scenarios, the infrared light intensity is maintained constant, and exposure is naturally adjusted based on sensor gain, reducing the frequency of hardware adjustments and improving system stability. Actively enhance infrared fill light in low-light environments, reducing reliance on high sensor gain and achieving a balance between image quality and brightness. This system controls infrared light intensity at different focal lengths and angles, adaptively adjusting intensity at different angles based on the scene. This enhances the system's intelligence. Intelligent signal processing and an automatic focus tracking algorithm significantly improve the control accuracy of zoom cameras, ensuring fast and accurate focus and tracking of target objects.

[0021] It is to be understood that the foregoing general description and the following detailed description are exemplary and explanatory only and are not restrictive of the disclosure. BRIEF DESCRIPTION OF THE DRAWINGS

[0022] In order to more clearly illustrate the technical solutions in the present disclosure, the following briefly introduces the drawings required for use in the description of the embodiments. Obviously, the drawings described below are only some embodiments of the present invention. For those skilled in the art, other drawings can be obtained based on these drawings without creative work.

[0023] Figure 1 1 is a flow chart of an infrared control method for a zoom camera provided by an embodiment of the present disclosure;

[0024] Figure 2 Schematic diagram of the structure of the infrared control device for a zoom camera provided by an embodiment of the present disclosure;

[0025] Figure 3 It is a structural diagram of an electronic device provided by an embodiment of the present disclosure. DETAILED DESCRIPTION

[0026] Some embodiments of the present disclosure will be described in detail herein, examples of which are shown in the accompanying drawings. When the following description refers to the drawings, unless otherwise indicated, the same numbers in different drawings represent the same or similar elements. Various changes, modifications and equivalents of the methods, devices and / or systems described herein will become apparent after understanding the present disclosure. For example, the order of operations described herein is merely an example and is not limited to those orders set forth herein, but may be changed as becomes apparent after understanding the present disclosure, except for operations that must be performed in a specific order. In addition, for the sake of clarity and brevity, descriptions of features known in the art may be omitted.

[0027] The embodiments described in the following examples of the present disclosure do not represent all embodiments consistent with the present disclosure. Instead, they are merely examples of devices and methods consistent with some aspects of the present disclosure as detailed in the appended claims.

[0028] It should be noted that the execution subject of the infrared control method for a zoom camera of this embodiment may be an infrared control device for a zoom camera, and the device may be configured in any type of electronic equipment, which is not limited here.

[0029] In the embodiments of the present disclosure, the “infrared control device for a zoom camera” will be used as the execution subject to execute the “infrared control method for a zoom camera” for illustration, and no limitation is given here.

[0030] It should be noted that the order of description of the following embodiments does not limit the priority order of the embodiments.

[0031] Figure 1 It is a flowchart of the infrared control method of a zoom camera provided according to the first embodiment of the present disclosure.

[0032] like Figure 1 As shown, the method includes:

[0033] Step 101: Obtain the current expected gain value of the camera.

[0034] In digital image processing and photography, expected gain is a parameter used to dynamically adjust image sensor sensitivity, aiming to keep the captured image brightness close to the target value. It is one of the calculation indicators of the camera's automatic exposure (AE) system. Expected gain (iso_exp) represents the total gain multiplier the camera needs to adjust to bring the average brightness (avelum) of the current image to the target brightness (aevlum). It combines multiple levels of amplification at the hardware and software levels:

[0035] The image sensor's analog gain directly amplifies the photoelectric signal, fundamentally affecting image quality. The digital gain (Sensor Digital Gain), multiplied by the ISP digital gain, amplifies the digital signal, potentially introducing noise. ISP gain is the additional gain of the image signal processor (ISP) for color and contrast enhancement. Avelum / (aevlum + error) is the brightness compensation factor, ensuring that actual brightness matches the target brightness.

[0036] There are many ways to obtain the current expected gain value of the camera, which can be as follows:

[0037] For example, you can first obtain the current analog gain, preliminary digital gain and optimized digital gain of the camera image sensor, the average brightness of the current picture and the exposure tolerance value, then you can add the average brightness of the current picture and the exposure tolerance value to get the added value, then you can multiply the analog gain, preliminary digital gain and optimized digital gain, the average brightness of the current picture and the preset coefficient to get the product value, then the ratio of the product value and the added value is used as the current expected gain of the camera.

[0038] The system first needs to obtain the following real-time parameters from the camera:

[0039] Analog gain is the amplification factor applied by the sensor when converting light signals into electrical signals (at the hardware level), typically expressed as "Again." Increasing analog gain amplifies both signal and noise. Initial digital gain is the initial amplification performed by the sensor after converting the analog signal into a digital signal (at the software level). Optimized digital gain is a secondary optimization amplification performed by the image signal processor (ISP). The current average brightness is the average brightness value of the entire frame, typically calculated by calculating the average grayscale value of all pixels. Exposure tolerance is the range of brightness fluctuations allowed by the system, which is used to avoid frequent gain adjustments due to minor brightness changes.

[0040] The formula for obtaining the current expected gain value of the camera can be specifically as follows:

[0041] iso_exp=Again×Dgain×ISPgain×100×avelum / (aevlum+error)

[0042] Where iso_exp is the expected gain, Again, Dgain, and ISPgain are the analog gain, preliminary digital gain, and optimized digital gain, respectively; aevlum and error are the average brightness and exposure tolerance of the current image, respectively.

[0043] Among them, for underexposed scenes (avelum < aevlum), at this time avelum / (aevlum + error) < 1, and the formula result will increase the total gain (iso_exp rises), making the picture brighter. For overexposed scenes (avelum > aevlum), at this time avelum / (aevlum + error) > 1, and the formula result will decrease the total gain (iso_exp drops), making the picture darker. The camera continuously calculates iso_exp and adjusts hardware parameters (such as shutter speed, aperture, gain value) to make the picture brightness approach the target value.

[0044] Among them, the preset coefficient can convert the gain into standard ISO units (such as ISO 100, ISO 200, etc.).

[0045] Step 102, compare the expected gain value with the intensity adjustment threshold to obtain a comparison result.

[0046] Among them, the intensity adjustment threshold includes a low-intensity threshold and a high-intensity threshold.

[0047] Among them, the low-intensity threshold can be the minimum allowable value of the expected gain. When it is lower than this value, the picture may be dark (underexposed) due to insufficient gain. The high-intensity threshold can be the maximum allowable value of the expected gain. When it is higher than this value, the picture may introduce noise (overexposed or image quality degradation) due to excessive gain.

[0048] When the ambient light is extremely dim, it means that relying solely on gain cannot meet the exposure requirements. It is necessary to increase the light input through hardware adjustments (such as increasing the aperture, extending the exposure time) to avoid a sharp increase in noise caused by pure digital gain. Trigger condition: When the expected gain value (ISO_exp) of the camera ≥ ISO_THR1, it means that the ambient light is extremely dim, and relying solely on the sensor gain can no longer meet the exposure requirements (excessive gain will cause serious degradation of image quality). At this time, the infrared lamp intensity can be automatically increased (such as increasing the infrared lamp power or turning on more infrared fill lights) to reduce the dependence on the sensor gain through active light supplementation.

[0049] When the ambient light is extremely strong, it means that the gain has reached the image quality limit. It is necessary to reduce the light input by reducing the exposure parameters (such as reducing the aperture, increasing the shutter speed) to avoid overexposure or image quality deterioration. When the expected gain value (ISO_exp) ≤ ISO_THR2, it means that the ambient light is sufficient or the infrared fill light is too strong. At this time, the infrared lamp intensity can be reduced to avoid overfilling (such as overexposed picture, increased infrared noise). Automatically reduce the infrared lamp intensity (such as reducing the power, turning off some fill lights) to balance power consumption and image quality.

[0050] For example, if ISO_exp is calculated to be 4000 (≥3200), ISO_THR1 is triggered, increasing the IR light intensity by 50%, enhancing the IR fill light, and dropping ISO_exp to 2800 (entering the safe range). If ISO_exp is calculated to be 2000 (between 1600 and 3200), no threshold is triggered, and the IR light maintains its current intensity. In bright light environments (such as when IR mode is enabled during the day), ISO_exp is calculated to be 800 (≤1600), triggering ISO_THR2, reducing the IR light intensity by 30% or even turning it off.

[0051] Step 103: When the comparison result shows that the expected gain value is greater than or equal to the low intensity threshold, the infrared lamp at at least one angle is controlled to increase its intensity.

[0052] Optionally, at least one focal length position corresponding to the camera may be first determined, and then the maximum adjustment intensity value corresponding to the focal length position and at least one angle of the infrared lamp may be obtained, and then a correspondence between the focal length position, the angle of the infrared lamp, and the maximum adjustment intensity value may be generated. As an example, the system may divide the focal length (zoom) into five positions, each corresponding to a different infrared lamp angle strategy: large angle (wide coverage, suitable for wide-angle focal length), medium angle (balanced coverage and intensity, suitable for medium focal length), and small angle (high-intensity focusing, suitable for telephoto focal length).

[0053]

[0054] It should be noted that for wide-angle / telephoto scenes (large focal length steps), a large-angle infrared lamp (0°) can be used to expand the illumination range and avoid darkening of distant areas. For telephoto / close-up scenes (small focal length steps), a small-angle infrared lamp (90°) can be used to concentrate energy on close-up areas to avoid light waste. For medium-focus scenes, a medium-angle infrared lamp (45°) can be used to balance the illumination range and intensity.

[0055] Focal length step range Large angle (0°) strength Medium angle (45°) strength Small angle (90°) strength 2612 (close focus) 0 0 75 3904 (medium close focus) 0 25 100 6720 (middle coke) 0 75 50 10112 (medium and long focus) 50 80 0 16384 (far focus) 80 80 0

[0056] For focal length values ​​that are not at predefined points, the maximum intensity can be calculated using linear interpolation as follows:

[0057] u8_strg_max[i]=u8_strg_4ir[i][j-1]+u8_strg_4ir[i][j]-u8_strg_4ir[i][j-1]*(u32_zoom-pu32_zoom_4ir[j-1]) / (u32_zoom_4ir[j]-u32_zoom_4ir[j-1])

[0058] Here, i takes values ​​of 0, 1, and 2, corresponding to the large, medium, and small infrared light angles, respectively. j takes values ​​of 0, 1, 2, 3, and 4. The number of steps corresponding to the current focal length is used to calculate the position in the u32_zoom_4ir list. u32_zoom_4ir corresponds to the position steps at different focal lengths, and u8_strg_4ir corresponds to the maximum adjustable intensity of the large, medium, and small infrared lights at different focal lengths.

[0059] Optionally, you can first determine the current focal length of the camera, then determine the maximum adjustment intensity value corresponding to the current focal length and each angle of the infrared light, then increase the intensity value of the infrared light at each angle, and then control the enhanced intensity value of the infrared light at each angle to be no higher than the corresponding maximum adjustment intensity value.

[0060] Optionally, you can first determine the current gear by reading the focal length step of the camera and matching it with the predefined focal length interval. For example, if the focal length step = 5000, which is in the interval [3904, 6720), it corresponds to the mid-focus gear. Then, you can extract the maximum allowable intensity values ​​of the infrared light at large, medium, and small angles under the current focal length gear from the predefined table. When the expected gain value (iso_exp) ≥ the low intensity threshold, the intensity boost logic is triggered, such as increasing by a fixed step size (such as +5 each time) or increasing proportionally (such as current intensity × 1.2).

[0061] If the calculated new intensity exceeds the maximum allowable value, it will be forcibly set to the maximum value. For example, if the current intensity of the mid-angle infrared light is 40 and the plan is to increase it to 50 (≤75), it is allowed; if the plan is to increase it to 80, it will be forcibly set to 75.

[0062] Step 104 : When the comparison result shows that the expected gain value is less than or equal to the high intensity threshold, the infrared light at at least one angle is controlled to reduce its intensity.

[0063] When the expected gain value is less than or equal to the high intensity threshold, it indicates sufficient ambient light or excessive infrared fill light, and the infrared light intensity needs to be reduced. For example, you can uniformly reduce the intensity of the infrared light at large, medium, and small angles. Alternatively, you can select the angle with the highest intensity to reduce the intensity of the infrared light.

[0064] Optionally, the intensity value of the infrared light at at least one angle may be reduced, and the reduced intensity value of the infrared light at each angle may be controlled to be no less than a preset minimum intensity value corresponding to the infrared light.

[0065] The preset minimum intensity value can be set to 1 to avoid completely turning off the infrared light (which may cause the screen to darken suddenly due to a sudden change in ambient light), retaining a minimum amount of fill light to ensure system stability. The preset minimum value can be adjusted according to hardware characteristics (for example, if some scenes allow the infrared light to be turned off, it can be set to 0).

[0066] Optionally, the intensity values of the infrared lamps at large angles, medium angles, and small angles can be reduced, and the reduced intensity values of the infrared lamps at large angles, medium angles, and small angles corresponding to the current focal length gear are higher than the preset minimum intensity value 1 corresponding to the infrared lamp.

[0067] It can be understood that this can actively reduce the intensity of the infrared lamp when the ambient light is sufficient, avoid overexposure of the picture caused by the superposition of supplementary light and ambient light (such as the scene of accidentally turning on the infrared lamp during the day), reduce the power consumption of the infrared lamp, and extend the battery life of the device (such as a battery-powered monitoring device). By retaining the minimum intensity, it is ensured that when the ambient light suddenly decreases, the infrared lamp can quickly respond, avoiding the picture going black or relying too much on high gain. The selective intensity reduction strategy can avoid uneven local exposure caused by excessive intensity at a single angle.

[0068] Step 105, when the comparison result is that the expected gain value is less than the low-intensity threshold and greater than the high-intensity threshold, control the intensity of the infrared lamps at at least one angle to remain unchanged.

[0069] It should be noted that when the expected gain value (iso_exp) meets the following conditions, the operation of maintaining the intensity of the infrared lamp is executed:

[0070] High-intensity threshold (ISO_THR2) < iso_exp < low-intensity threshold (ISO_THR1) <00001​​​​​​​In the disclosed embodiment, the camera's current desired gain value is first obtained. The desired gain value is then compared with an intensity adjustment threshold to obtain a comparison result. The intensity adjustment threshold includes a low intensity threshold and a high intensity threshold. Subsequently, when the comparison result shows that the desired gain value is greater than or equal to the low intensity threshold, the infrared light intensity at at least one angle is increased. When the comparison result shows that the desired gain value is less than or equal to the high intensity threshold, the infrared light intensity at at least one angle is decreased. When the comparison result shows that the desired gain value is less than the low intensity threshold but greater than the high intensity threshold, the infrared light intensity at at least one angle is maintained constant. This achieves a multi-objective balance between exposure accuracy, image quality protection, and power consumption optimization. This system is suitable for scenarios with complex lighting conditions and the need for long-term stable operation. Through simple logic rules, it effectively improves the device's robustness and user experience in non-ideal environments. When ambient light is sufficient, the system automatically reduces the infrared light intensity or disables the fill light, preventing overexposure or increased noise caused by the superposition of infrared light and ambient light. This prioritizes image purity and meets the fill light requirements of zoom cameras at both short and long focal lengths. In medium-gain scenarios, the infrared light intensity is maintained constant, and exposure is naturally adjusted based on sensor gain, reducing the frequency of hardware adjustments and improving system stability. Actively enhance infrared fill light in low-light environments, reducing reliance on high sensor gain and achieving a balance between image quality and brightness. This system controls infrared light intensity at different focal lengths and angles, adaptively adjusting intensity at different angles based on the scene. This enhances the system's intelligence. Intelligent signal processing and an automatic focus tracking algorithm significantly improve the control accuracy of zoom cameras, ensuring fast and accurate focus and tracking of target objects.

[0074] To facilitate better implementation of the disclosed zoom camera infrared control method, the present disclosure also provides a zoom camera infrared control device based on the aforementioned zoom camera infrared control method. The meanings of the terms herein are the same as those in the aforementioned zoom camera infrared control method. For specific implementation details, please refer to the description in the method embodiment.

[0075] See also Figure 2 , Figure 2 is a structural diagram of an infrared control device for a zoom camera provided by an embodiment of the present disclosure. The infrared control device 200 for a zoom camera includes: an acquisition module 210 for acquiring a current expected gain value of the camera;

[0076] a comparison module 220, configured to compare the expected gain value with an intensity adjustment threshold to obtain a comparison result, wherein the intensity adjustment threshold includes a low intensity threshold and a high intensity threshold;

[0077] A first control module 230 is configured to control the infrared lamp at at least one angle to increase its intensity when the comparison result shows that the expected gain value is greater than or equal to the low intensity threshold;

[0078] A second control module 240 is configured to control the infrared lamp at at least one angle to reduce intensity when the comparison result shows that the expected gain value is less than or equal to the high intensity threshold;

[0079] The third control module 250 is configured to control the intensity of the infrared light at at least one angle to remain unchanged when the comparison result shows that the expected gain value is less than the low intensity threshold and greater than the high intensity threshold.

[0080] Optionally, the acquisition module is specifically configured to:

[0081] Obtain the current analog gain, preliminary digital gain, optimized digital gain, average brightness of the current image, and exposure tolerance of the camera image sensor;

[0082] Adding the brightness mean value and the exposure tolerance value of the current image to obtain an added value;

[0083] Multiplying the analog gain, the preliminary digital gain, the optimized digital gain, the average brightness of the current picture, and a preset coefficient to obtain a product value;

[0084] The ratio of the product value to the added value is used as the current expected gain of the camera.

[0085] Optionally, the first control module is specifically configured to:

[0086] Determining the current focal length of the camera;

[0087] Determine the maximum adjustment intensity value corresponding to the current focal length gear and each angle of the infrared light;

[0088] The intensity value of the infrared light at each angle is increased, and the enhanced intensity value of the infrared light at each angle is controlled to be no higher than the corresponding maximum adjustment intensity value.

[0089] Optionally, the first control module is further configured to:

[0090] Determining at least one focal length position corresponding to the camera;

[0091] Obtaining a maximum adjustment intensity value corresponding to the focal length position and at least one angle of the infrared lamp;

[0092] Generate a correspondence between the focal length gear, the angle of the infrared lamp and the maximum adjustment intensity value.

[0093] Optionally, the second control module 240 is specifically configured to:

[0094] Reduce the intensity value of the infrared light at at least one angle, and control the enhanced intensity value of the infrared light at each angle to be no less than the preset minimum intensity value corresponding to the infrared light.

[0095] In the disclosed embodiment, the camera's current desired gain value is first obtained. The desired gain value is then compared with an intensity adjustment threshold to obtain a comparison result. The intensity adjustment threshold includes a low intensity threshold and a high intensity threshold. Subsequently, when the comparison result shows that the desired gain value is greater than or equal to the low intensity threshold, the infrared light intensity at at least one angle is increased. When the comparison result shows that the desired gain value is less than or equal to the high intensity threshold, the infrared light intensity at at least one angle is decreased. When the comparison result shows that the desired gain value is less than the low intensity threshold but greater than the high intensity threshold, the infrared light intensity at at least one angle is maintained constant. This achieves a multi-objective balance between exposure accuracy, image quality protection, and power consumption optimization. This system is suitable for scenarios with complex lighting conditions and the need for long-term stable operation. Through simple logic rules, it effectively improves the device's robustness and user experience in non-ideal environments. When ambient light is sufficient, the system automatically reduces the infrared light intensity or disables the fill light, preventing overexposure or increased noise caused by the superposition of infrared light and ambient light. This prioritizes image purity and meets the fill light requirements of zoom cameras at both short and long focal lengths. In medium-gain scenarios, the infrared light intensity is maintained constant, and exposure is naturally adjusted based on sensor gain, reducing the frequency of hardware adjustments and improving system stability. Actively enhance infrared fill light in low-light environments, reducing reliance on high sensor gain and achieving a balance between image quality and brightness. This system controls infrared light intensity at different focal lengths and angles, adaptively adjusting intensity at different angles based on the scene. This enhances the system's intelligence. Intelligent signal processing and an automatic focus tracking algorithm significantly improve the control accuracy of zoom cameras, ensuring fast and accurate focus and tracking of target objects.

[0096] In addition, the present disclosure also provides an electronic device, such as Figure 3 , which shows a schematic structural diagram of the electronic device involved in the present disclosure, specifically:

[0097] The electronic device may include one or more processors 301 of processing cores, one or more computer-readable storage media memories 302, a power supply 303, an input unit 304 and other components. Those skilled in the art will appreciate that Figure 3 The electronic device structure shown in the figure does not constitute a limitation of the electronic device, and may include more or fewer components than shown in the figure, or combine certain components, or arrange components differently.

[0098] The processor 301 is the control center of the electronic device. It connects all parts of the electronic device using various interfaces and lines. By running or executing software programs and / or modules stored in the memory 302 and accessing data stored in the memory 302, it performs various functions of the electronic device and processes data, thereby monitoring the electronic device as a whole. Optionally, the processor 301 may include one or more processing cores; preferably, the processor 301 may integrate an application processor and a modem processor, wherein the application processor primarily processes the operating system, user interface, and application programs, while the modem processor primarily handles wireless communications. It is understood that the modem processor may not be integrated into the processor 301.

[0099] The memory 302 can be used to store software programs and modules. The processor 301 executes various functional applications and data processing by running the software programs and modules stored in the memory 302. The memory 302 may mainly include a program storage area and a data storage area, wherein the program storage area may store an operating system, an application required for at least one function (such as a sound playback function, an image playback function, etc.), etc.; the data storage area may store data created according to the use of the electronic device, etc. In addition, the memory 302 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one disk storage device, a flash memory device, or other volatile solid-state storage device. Accordingly, the memory 302 may also include a memory controller to provide the processor 301 with access to the memory 302.

[0100] The electronic device also includes a power supply 303 for supplying power to various components. Preferably, the power supply 303 can be logically connected to the processor 301 via a power management system, thereby enabling the power management system to manage charging, discharging, and power consumption. The power supply 303 can also include one or more DC or AC power supplies, a recharging system, a power supply device debugging circuit, a power converter or inverter, a power status indicator, and other arbitrary components.

[0101] The electronic device may further include an input unit 304, which may be configured to receive input digital or character information and generate keyboard, mouse, joystick, optical or trackball signal inputs related to user settings and function control.

[0102] Although not shown, the electronic device may further include a display unit, etc., which will not be described in detail here. Specifically, in this embodiment, the processor 301 in the electronic device loads the executable files corresponding to one or more application processes into the memory 302 according to the following instructions. The processor 301 then runs the application stored in the memory 302, thereby implementing the steps of any of the methods for infrared control of a zoom camera provided in the embodiments of the present disclosure.

[0103] In the disclosed embodiment, the camera's current desired gain value is first obtained. The desired gain value is then compared with an intensity adjustment threshold to obtain a comparison result. The intensity adjustment threshold includes a low intensity threshold and a high intensity threshold. Subsequently, when the comparison result shows that the desired gain value is greater than or equal to the low intensity threshold, the infrared light intensity at at least one angle is increased. When the comparison result shows that the desired gain value is less than or equal to the high intensity threshold, the infrared light intensity at at least one angle is decreased. When the comparison result shows that the desired gain value is less than the low intensity threshold but greater than the high intensity threshold, the infrared light intensity at at least one angle is maintained constant. This achieves a multi-objective balance between exposure accuracy, image quality protection, and power consumption optimization. This system is suitable for scenarios with complex lighting conditions and the need for long-term stable operation. Through simple logic rules, it effectively improves the device's robustness and user experience in non-ideal environments. When ambient light is sufficient, the system automatically reduces the infrared light intensity or disables the fill light, preventing overexposure or increased noise caused by the superposition of infrared light and ambient light. This prioritizes image purity and meets the fill light requirements of zoom cameras at both short and long focal lengths. In medium-gain scenarios, the infrared light intensity is maintained constant, and exposure is naturally adjusted based on sensor gain, reducing the frequency of hardware adjustments and improving system stability. Actively enhance infrared fill light in low-light environments, reducing reliance on high sensor gain and achieving a balance between image quality and brightness. This system controls infrared light intensity at different focal lengths and angles, adaptively adjusting intensity at different angles based on the scene. This enhances the system's intelligence. Intelligent signal processing and an automatic focus tracking algorithm significantly improve the control accuracy of zoom cameras, ensuring fast and accurate focus and tracking of target objects.

[0104] The specific implementation of the above operations can be found in the previous embodiments and will not be repeated here.

[0105] Those skilled in the art will appreciate that all or part of the steps in the various methods of the above embodiments may be accomplished by instructions, or by controlling related hardware through instructions. The instructions may be stored in a computer-readable storage medium and loaded and executed by a processor.

[0106] To this end, the present disclosure provides a computer-readable storage medium having a computer program stored thereon. The computer program can be loaded by a processor to execute the steps in any one of the methods for infrared control of a zoom camera provided in the present disclosure.

[0107] The specific implementation of the above operations can be found in the previous embodiments and will not be repeated here.

[0108] The computer-readable storage medium may include a read-only memory (ROM), a random access memory (RAM), a magnetic disk or an optical disk, etc.

[0109] Since the instructions stored in the computer-readable storage medium can execute the steps in any one of the zoom camera infrared control methods provided in the present disclosure, the beneficial effects that can be achieved by any one of the zoom camera infrared control methods provided in the present disclosure can be achieved. Please refer to the previous embodiments for details and will not be repeated here.

[0110] The above is a detailed introduction to the infrared control method, device, electronic device and computer-readable storage medium for a zoom camera provided by the present disclosure. Specific examples are used herein to illustrate the principles and implementation methods of the present invention. The description of the above embodiments is only intended to help understand the method and core ideas of the present invention. At the same time, for those skilled in the art, based on the ideas of the present invention, there may be changes in the specific implementation methods and application scopes. In summary, the contents of this specification should not be understood as limiting the present invention.

Claims

1. A zoom camera infrared control method, characterized in that: include: Get the current expected gain value of the camera; Comparing the expected gain value with an intensity adjustment threshold to obtain a comparison result, wherein the intensity adjustment threshold includes a low intensity threshold and a high intensity threshold; When the comparison result shows that the expected gain value is greater than or equal to the low intensity threshold, controlling the infrared lamp at at least one angle to increase the intensity; When the comparison result shows that the expected gain value is less than or equal to the high intensity threshold, controlling the infrared lamp at at least one angle to reduce the intensity; When the comparison result is that the expected gain value is less than the low intensity threshold and greater than the high intensity threshold, the intensity of the infrared light at at least one angle is controlled to remain unchanged.

2. The method according to claim 1, characterized in that The obtaining of the current expected gain value of the camera includes: Obtain the current analog gain, preliminary digital gain, optimized digital gain, average brightness of the current image, and exposure tolerance of the camera image sensor; Adding the brightness mean value and the exposure tolerance value of the current image to obtain an added value; Multiplying the analog gain, the preliminary digital gain, the optimized digital gain, the average brightness of the current picture, and a preset coefficient to obtain a product value; The ratio of the product value to the added value is used as the current expected gain value of the camera.

3. The method according to claim 1, characterized in that The method of controlling at least one angle of infrared light to increase its intensity comprises: Determining the current focal length of the camera; Determine the maximum adjustment intensity value corresponding to the current focal length gear and each angle of the infrared light; The intensity value of the infrared light at each angle is increased, and the enhanced intensity value of the infrared light at each angle is controlled to be no higher than the corresponding maximum adjustment intensity value.

4. The method according to claim 3, characterized in that Before determining the maximum adjustment intensity value corresponding to the current focal length level and each angle of the infrared lamp, the method further includes: Determining at least one focal length position corresponding to the camera; Obtaining a maximum adjustment intensity value corresponding to the focal length position and at least one angle of the infrared lamp; Generate a correspondence between the focal length gear, the angle of the infrared lamp and the maximum adjustment intensity value.

5. The method according to claim 1, characterized in that The step of controlling the infrared light at at least one angle to reduce its intensity comprises: The intensity value of the infrared light at at least one angle is reduced, and the enhanced intensity value of the infrared light at each angle is controlled to be no less than the preset minimum intensity value corresponding to the infrared light.

6. An infrared control device for a zoom camera, characterized in that: include: The acquisition module is used to obtain the current expected gain value of the camera; a comparison module, configured to compare the expected gain value with an intensity adjustment threshold to obtain a comparison result, wherein the intensity adjustment threshold includes a low intensity threshold and a high intensity threshold; a first control module, configured to control the infrared lamp at at least one angle to increase intensity when the comparison result shows that the expected gain value is greater than or equal to the low intensity threshold; a second control module, configured to control the infrared lamp at at least one angle to reduce intensity when the comparison result shows that the expected gain value is less than or equal to the high intensity threshold; The third control module is configured to control the intensity of the infrared light at at least one angle to remain unchanged when the comparison result shows that the expected gain value is less than the low intensity threshold and greater than the high intensity threshold.

7. The device according to claim 6, characterized in that The acquisition module is specifically used to: Obtain the current analog gain, preliminary digital gain, optimized digital gain, average brightness of the current image, and exposure tolerance of the camera image sensor; Adding the brightness mean value and the exposure tolerance value of the current image to obtain an added value; Multiplying the analog gain, the preliminary digital gain, the optimized digital gain, the average brightness of the current picture, and a preset coefficient to obtain a product value; The ratio of the product value to the added value is used as the current expected gain value of the camera.

8. The device according to claim 6, characterized in that The first control module is specifically configured to: Determining the current focal length of the camera; Determine the maximum adjustment intensity value corresponding to the current focal length gear and each angle of the infrared light; The intensity value of the infrared light at each angle is increased, and the enhanced intensity value of the infrared light at each angle is controlled to be no higher than the corresponding maximum adjustment intensity value.

9. An electronic device, characterized in that: The method comprises a memory, a processor, and a computer program stored in the memory and executable on the processor, wherein the processor implements the steps of the method according to any one of claims 1 to 5 when executing the computer program.

10. A computer-readable storage medium, characterized in that The computer-readable storage medium stores a computer program, which, when executed by a processor, implements the steps of the method according to any one of claims 1 to 5.

Citation Information

Cited By

  • Binocular camera quick starting method and system based on parameter mapping

    CN121056731A