Light compensation brightness control method, terminal device, and storage medium

By acquiring the brightness of several image frames from the camera and fixing the exposure parameters, the intensity of the fill light was adjusted, which solved the problem of overexposure of faces in low-light scenes and improved image quality.

CN116249012BActive Publication Date: 2026-06-12ZHEJIANG DAHUA TECH CO LTD

Patent Information

Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
ZHEJIANG DAHUA TECH CO LTD
Filing Date
2022-12-14
Publication Date
2026-06-12

AI Technical Summary

Technical Problem

Existing cameras struggle to adjust the intensity of fill lights according to the brightness of faces in low-light scenes, resulting in persistent overexposure of faces.

Method used

By acquiring the brightness of several image frames, determining whether it is greater than or equal to the preset brightness, fixing the current exposure parameters, acquiring the brightness of the second image frame, and adjusting the intensity of the fill light based on the brightness of the second image frame.

🎯Benefits of technology

It enables flexible adjustment of the fill light intensity, avoids image quality degradation, ensures image quality in non-fill light areas, and alleviates the problem of face overexposure.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN116249012B_ABST
    Figure CN116249012B_ABST
Patent Text Reader

Abstract

The application discloses a light supplement brightness control method, a terminal device and a computer storage medium. The light supplement brightness control method comprises the following steps: acquiring a plurality of first image frames collected by a shooting component; judging whether the picture brightness of the plurality of first image frames is greater than or equal to a first preset brightness; in response to the picture brightness of the plurality of first image frames being greater than or equal to the first preset brightness, fixing a current exposure parameter and acquiring the picture brightness of a plurality of second image frames, the current exposure parameter comprising one or more of a shutter speed, a gain value and an aperture value, and the collection time of the plurality of second image frames being later than the collection time of the plurality of first image frames; and adjusting the intensity of a light supplement lamp of the shooting component based on the picture brightness of the plurality of second image frames. The above scheme makes the adjustment of the light supplement lamp intensity more flexible.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] This application relates to the field of camera surveillance technology, and in particular to a method for controlling supplementary lighting brightness, a terminal device, and a storage medium. Background Technology

[0002] When cameras are used in low-light scenarios (such as at night or on cloudy days), supplementary lighting is typically used to improve the camera's visibility. This supplementary lighting can be either infrared or white light.

[0003] Existing cameras primarily adjust the intensity of the fill light based on the overall average brightness of the current single frame. If the image contains objects with high reflectivity, such as human faces, the camera struggles to adjust the fill light intensity output according to the brightness of the faces, resulting in the inability to alleviate the problem of overexposed faces. Summary of the Invention

[0004] This application provides a method for controlling supplementary lighting brightness, a terminal device, and a storage medium.

[0005] One technical solution adopted in this application is to provide a method for controlling the brightness of supplementary lighting. The method includes: acquiring a plurality of first image frames captured by a shooting component; determining whether the brightness of the plurality of first image frames is greater than or equal to a first preset brightness; in response to the brightness of the plurality of first image frames being greater than or equal to the first preset brightness, fixing the current exposure parameters and acquiring the brightness of a plurality of second image frames, wherein the current exposure parameters include one or more of shutter speed, gain value, and aperture value, and the acquisition time of the plurality of second image frames is later than the acquisition time of the plurality of first image frames; and adjusting the intensity of the supplementary light of the shooting component based on the brightness of the plurality of second image frames.

[0006] Another technical solution adopted in this application is to provide a terminal device, which includes a processor and a memory connected to the processor; wherein the memory is used to store program data, and the processor is used to execute the program data to implement the supplementary light brightness control method as described above.

[0007] Another technical solution adopted in this application is to provide a computer-readable storage medium for storing program instructions, which, when executed by a computer, are used to implement the supplementary light brightness control method described above.

[0008] This application filters out potentially overexposed scenes by detecting whether a number of first image frames have a brightness greater than or equal to a first preset brightness. It then fixes the exposure parameters of the current imaging component, acquires a number of second image frames, and adjusts the intensity of the fill light based on the brightness of the second image frames. By fixing the current exposure parameters and adjusting only the fill light intensity, it avoids the degradation of image quality caused by simultaneously adjusting the exposure parameters of the imaging component and the fill light intensity. Furthermore, this method enables flexible adjustment of the fill light intensity, ensuring image quality in non-fill light areas. Attached Figure Description

[0009] To more clearly illustrate the technical solutions in the embodiments of this application, the accompanying drawings used in the description of the embodiments will be briefly introduced below. Obviously, the accompanying drawings described below are only some embodiments of this application. For those skilled in the art, other drawings can be obtained based on these drawings without creative effort.

[0010] Figure 1 This is a flowchart illustrating an embodiment of the supplementary lighting brightness control method provided in this application;

[0011] Figure 2 This is a flowchart illustrating another embodiment of the supplementary lighting brightness control method provided in this application;

[0012] Figure 3 yes Figure 1 A flowchart illustrating the steps following S1;

[0013] Figure 4 This is a flowchart illustrating another embodiment of the supplementary lighting brightness control method provided in this application;

[0014] Figure 5 This is a flowchart illustrating another embodiment of the supplementary lighting brightness control method provided in this application;

[0015] Figure 6 This is a schematic diagram of the structure of an embodiment of the terminal device provided in this application;

[0016] Figure 7 This is a schematic diagram of the structure of an embodiment of the computer storage medium provided in this application. Detailed Implementation

[0017] The technical solutions of the embodiments of this application will be clearly and completely described below with reference to the accompanying drawings. Obviously, the described embodiments are only a part of the embodiments of this application, and not all of the embodiments. Based on the embodiments of this application, all other embodiments obtained by those of ordinary skill in the art without creative effort are within the scope of protection of this application.

[0018] The reference to "embodiment" in this application means that a particular feature, structure, or characteristic described in connection with an embodiment may be included in at least one embodiment of this application. The appearance of this phrase in various places in the specification does not necessarily refer to the same embodiment, nor is it a separate or alternative embodiment mutually exclusive with other embodiments. It will be explicitly and implicitly understood by those skilled in the art that the embodiments described herein can be combined with other embodiments.

[0019] The steps in the embodiments of this application are not necessarily processed in the order described. The steps can be rearranged, deleted, or added as needed. The step descriptions in the embodiments of this application are only optional combinations of sequences and do not represent all possible combinations of steps in the embodiments of this application. The order of steps in the embodiments should not be considered as a limitation of this application.

[0020] The terms "first," "second," etc., used in this application are used to distinguish different objects, not to describe a specific order. Furthermore, the terms "comprising" and "having," and any variations thereof, are intended to cover non-exclusive inclusion. For example, a process, method, system, or apparatus that includes a series of steps or units is not limited to the listed steps or units, but may optionally include steps or units not listed, or may optionally include other steps or units inherent to these processes, methods, or apparatuses.

[0021] Furthermore, although the terms "first," "second," etc., are used repeatedly in this application to describe various data (or various applications, or various instructions, or various operations), these data (or applications, instructions, or operations) should not be limited by these terms. These terms are only used to distinguish one type of data (or application, instruction, or operation) from another type of data (or application, instruction, or operation).

[0022] Camera equipment often uses supplemental lighting in low-light scenes to improve visibility. Because the human face has a strong reflective ability, which is much different from the reflective ability of other objects in the camera's field of view, when a person moves close to the monitoring camera, the reflection of the face increases, causing the face to be overexposed and making it impossible to obtain facial information.

[0023] This application mainly designs a camera fill light brightness control method to prevent overexposure. By setting different adjustment methods, the brightness can be adjusted more flexibly after the camera turns on the anti-overexposure function, so that the quality of the camera acquisition is better.

[0024] Please see Figure 1 , Figure 1 This is a flowchart illustrating an embodiment of the supplementary lighting brightness control method provided in this application.

[0025] like Figure 1As shown, an embodiment of the supplementary lighting brightness control method provided in this application may specifically include the following steps:

[0026] S1, acquire several first image frames captured by the shooting component.

[0027] In some applications, the shooting component can be a camera.

[0028] The "several" mentioned in this embodiment refers to one or more sheets.

[0029] The supplementary lighting brightness control method provided in this application is executed by a supplementary lighting brightness control terminal. In some application scenarios, the supplementary lighting brightness control terminal can be a camera, wherein the supplementary light is a component of the camera. In some application scenarios, the supplementary lighting brightness control terminal can be a device that establishes a communication connection with the camera.

[0030] In some embodiments, the supplementary lighting brightness control terminal receives multiple first image frames captured by the camera, and at the same time, the supplementary lighting brightness control terminal calculates the brightness of the multiple first image frames.

[0031] S2, determine whether the brightness of several first image frames is greater than or equal to the first preset brightness.

[0032] Specifically, the supplementary light brightness control terminal calculates the screen brightness corresponding to each of the multiple first image frames and determines whether the screen brightness of each first image frame is greater than or equal to the first preset brightness.

[0033] Optionally, the value of the first preset brightness can be set by the user in advance in the supplementary light brightness control terminal.

[0034] If the judgment condition is met, jump to S3.

[0035] If the judgment condition is not met, jump to S1.

[0036] Optionally, the brightness of the image corresponding to the first image frame can be derived from the brightness statistics of all pixels in the first image frame. Optionally, the brightness statistics data can be any statistical data such as the average value, median value, and mode value of the brightness of all pixels, and there is no limitation here.

[0037] S3, in response to the fact that the brightness of several first image frames is greater than or equal to the first preset brightness, fix the current exposure parameters and obtain the brightness of several second image frames.

[0038] Specifically, if the brightness of all images in the first image frame is greater than or equal to the first preset brightness, the supplementary lighting brightness control terminal fixes the exposure parameters of the current shooting component and then acquires several second image frames. Understandably, these several second image frames are images acquired after fixing the exposure parameters of the shooting component.

[0039] Exposure parameters may include one or more of shutter speed, gain value, and aperture value.

[0040] In this case, the time when the supplementary light brightness control terminal acquires several second image frames is later than the time when it acquires several first image frames.

[0041] S4, based on the brightness of several second image frames, adjusts the intensity of the fill light of the shooting component.

[0042] Specifically, the supplementary light brightness control terminal adjusts the intensity of the supplementary light according to the brightness of several second image frames.

[0043] In some embodiments, the supplementary light brightness control terminal detects that the brightness of multiple second image frames is higher than the preset maximum image brightness, and reduces the intensity of the supplementary light. For example, the supplementary light brightness control terminal can also increase the adjustment rate of the supplementary light, that is, increase the rate at which the intensity of the supplementary light is adjusted from the current intensity to the updated intensity.

[0044] In some embodiments, the supplementary light brightness control terminal detects that the brightness of multiple second image frames is lower than the preset minimum image brightness, and increases the intensity of the supplementary light.

[0045] In some embodiments, before executing step S4, the following step may also be performed: the fill light brightness control device detects whether the camera has turned on the fill light. If the fill light is turned on, the process jumps to S4 to execute the fill light brightness control procedure; if the fill light is not turned on, the process jumps back to S1, and it is not necessary to control the fill light brightness.

[0046] The above solution, by determining whether several first image frames captured by the shooting component are all greater than or equal to a first preset brightness, can promptly detect objects with high reflectivity, such as human faces, in the image. Under the condition that the above conditions are met, the exposure parameters of the current shooting component are fixed to ensure the image quality of non-light-filled areas. Then, several second image frames are acquired, and the intensity of the fill light of the shooting component is adjusted based on the brightness of the second image frames. This achieves flexible adjustment of the fill light intensity, which can alleviate the problem of overexposure of human faces and make the image quality captured by the shooting component better.

[0047] Another embodiment of the supplementary light brightness control method provided in this application may specifically include the following steps:

[0048] S11, acquire several first image frames captured by the shooting component.

[0049] S12, determine whether the brightness of several first image frames is greater than or equal to the first preset brightness.

[0050] If the judgment condition is met, proceed to S13.

[0051] If the judgment condition is not met, jump to S11.

[0052] S13, in response to the fact that the brightness of several first image frames is greater than or equal to the first preset brightness, the brightness adjustment frequency of the fill light is increased.

[0053] Specifically, increasing the brightness adjustment frequency of the fill light means increasing the rate at which the brightness is adjusted from the current level to the updated level. Understandably, the increased brightness adjustment frequency is higher than the initial adjustment frequency. For example, if the fill light's intensity was adjusted every 0.1 seconds before the adjustment, increasing the frequency will adjust it every 0.05 seconds.

[0054] S14, fix the current exposure parameters and obtain the brightness of several second image frames.

[0055] S15, based on the brightness of several second image frames, adjusts the intensity of the fill light of the shooting component.

[0056] S15 also includes adjusting the brightness of the image and the brightness adjustment frequency based on several second image frames, and adjusting the intensity of the fill light of the shooting component.

[0057] Specifically, the supplementary light brightness control terminal adjusts the intensity of the supplementary light of the shooting component according to the brightness of several second image frames and the brightness adjustment frequency.

[0058] In some embodiments, if the brightness of several second image frames is higher than a preset brightness condition, the supplementary lighting control terminal reduces the intensity of the supplementary light of the shooting component according to the current brightness adjustment frequency.

[0059] In some embodiments, if the brightness of several second image frames is lower than a preset brightness condition, the supplementary lighting control terminal increases the intensity of the supplementary light of the shooting component according to the current brightness adjustment frequency.

[0060] S16, determine whether the intensity change of the supplementary light meets the preset conditions.

[0061] In some embodiments, the preset condition can be that within a certain time period, the current fill light intensity is higher than the fill light intensity at the previous moment or the current fill light intensity is greater than a preset threshold.

[0062] In some embodiments, the supplementary light brightness control terminal determines whether the intensity change of the supplementary light meets a preset condition. If the determination is yes, it jumps to S17.

[0063] S17, in response to the change in the intensity of the fill light meeting the preset conditions, resume the adjustment of the current exposure parameters.

[0064] Specifically, the supplementary light brightness control terminal determines that the intensity change of the supplementary light during the adjustment process meets the preset conditions, and then cancels the operation of fixing the exposure parameters in S14.

[0065] In some embodiments, the intensity change of the fill light during the adjustment process meets preset conditions, the operation of fixing the shutter speed, gain value and aperture value in S14 is released, and further, the brightness adjustment frequency is reduced to the initial brightness adjustment frequency.

[0066] The above solution, by determining whether several first image frames captured by the shooting component are all greater than or equal to a first preset brightness, can promptly detect objects with high reflectivity, such as human faces, in the image. Under the condition that the above conditions are met, the exposure parameters of the current shooting component are fixed and the frequency of adjustment of the fill light intensity is increased to ensure the image quality of non-fill light areas. Then, several second image frames are acquired, and the fill light intensity of the shooting component is adjusted based on the brightness of the second image frames. This achieves flexible adjustment of the fill light intensity, which can alleviate the overexposure problem of human faces and make the image quality captured by the shooting component better. Furthermore, if the change in fill light intensity meets the preset conditions during the adjustment phase, the adjustment of the exposure parameters is restored. This ensures that after objects with high reflectivity, such as human faces, leave, the image returns to normal brightness without introducing adjustment flicker.

[0067] Please see Figure 2 , Figure 2 This is a flowchart illustrating another embodiment of the supplementary light brightness control method provided in this application.

[0068] like Figure 2 As shown, another embodiment of the supplementary lighting brightness control method provided in this application may specifically include the following steps:

[0069] S21, acquire several first image frames captured by the shooting component.

[0070] S22, determine whether the brightness of several first image frames is greater than or equal to the first preset brightness.

[0071] If the judgment condition is met, proceed to S23.

[0072] If the judgment condition is not met, jump to S21.

[0073] S23, in response to the fact that the brightness of several first image frames is greater than or equal to the first preset brightness, fix the current exposure parameters and obtain the brightness of several second image frames.

[0074] S24, based on the brightness of several second image frames, adjust the intensity of the fill light of the shooting component.

[0075] Among them, the second image frames also include a number of first sub-image frames and a number of second sub-image frames, and the acquisition time of the second sub-image frames is later than that of the first sub-image frames.

[0076] S25, determine whether the intensity of the fill light has decreased to the second preset brightness after the brightness adjustment of the screen of several first sub-image frames.

[0077] Specifically, the imaging component captures several first sub-image frames. The supplementary lighting brightness control terminal adjusts the supplementary lighting intensity based on the brightness of these first sub-image frames. Then, it determines whether the brightness of the image frames captured by the imaging component after the brightness adjustment of these first sub-image frames has decreased to a second preset brightness. The brightness adjustment after several first sub-image frames reflects the brightness adjustment over a certain period of time.

[0078] Optionally, the value of the second preset brightness can be preset by the user on the supplementary light brightness control terminal.

[0079] If the determination is yes, proceed to S26.

[0080] S26, in response to the fact that the intensity of the fill light has dropped to the second preset brightness, determine whether the intensity of the fill light has risen to the third preset brightness after the brightness adjustment of the screen of several second sub-image frames.

[0081] Specifically, under the condition of S25, the imaging component acquires several second sub-image frames. The supplementary light brightness control terminal adjusts the supplementary light intensity based on the brightness of the several second sub-image frames, and then determines whether the brightness of the image frame acquired by the imaging component after the brightness adjustment of the several second sub-image frames has risen to the third preset brightness. The brightness adjustment after several second sub-image frames is used to reflect the brightness adjustment over a certain period of time.

[0082] Optionally, the value of the third preset brightness can be preset by the user on the supplementary light brightness control terminal.

[0083] If the determination is yes, proceed to S27.

[0084] S27, in response to the fact that the intensity of the fill light has increased to a third preset brightness after the brightness of the image of several second sub-image frames, it is determined that the intensity change of the fill light meets the preset conditions.

[0085] Specifically, under the judgment condition of S26, it is determined that the intensity change of the supplementary light meets the preset condition.

[0086] S28, in response to the change in the intensity of the fill light meeting the preset conditions, resume the adjustment of the current exposure parameters.

[0087] The above solution, by determining whether several first image frames captured by the shooting component are all greater than or equal to a first preset brightness, can promptly detect objects with high reflectivity, such as human faces, in the image. Under the condition that the above conditions are met, the exposure parameters of the current shooting component are fixed and the frequency of adjustment of the fill light intensity is increased to ensure the image quality of non-fill light areas. Then, several second image frames are acquired, and the fill light intensity of the shooting component is adjusted based on the brightness of the second image frames. This achieves flexible adjustment of the fill light intensity, which can alleviate the overexposure problem of human faces and make the image quality captured by the shooting component better. Furthermore, if the change in fill light intensity meets the preset conditions during the adjustment phase, the adjustment of the exposure parameters is restored. This ensures that after objects with high reflectivity, such as human faces, leave, the image returns to normal brightness without introducing adjustment flicker.

[0088] Another embodiment of the supplementary light brightness control method provided in this application may specifically include the following steps:

[0089] S31, acquire several first image frames captured by the shooting component.

[0090] S32, determine whether the brightness of several first image frames is greater than or equal to the first preset brightness.

[0091] If the determination is yes, proceed to S33.

[0092] If the result is negative, proceed to step S31.

[0093] S33, in response to the fact that the brightness of several first image frames is greater than or equal to the first preset brightness, fix the current exposure parameters and obtain the brightness of several second image frames.

[0094] S34, determine whether the intensity of the fill light has decreased to the second preset brightness after the brightness adjustment of the screen of several first sub-image frames.

[0095] If the condition is yes, proceed to S36; if the condition is no, proceed to S35.

[0096] S35, in response to the fact that the intensity of the fill light does not decrease to the second preset brightness after the brightness adjustment of the screen of a number of first sub-image frames within the first preset time period, it is determined that the intensity change of the fill light meets the preset condition.

[0097] Specifically, within the first preset time period, if the brightness control terminal adjusts the brightness of the fill light by acquiring the brightness of several first sub-image frames and the brightness does not drop to the second preset brightness, it is determined that the current brightness of the fill light meets the preset conditions.

[0098] Furthermore, after completing step S35, the supplementary light brightness control terminal jumps to S43.

[0099] S36, in response to the fact that the intensity of the fill light has dropped to the second preset brightness, determine whether the intensity of the fill light has risen to the third preset brightness after the brightness adjustment of the screen of several second sub-image frames.

[0100] Specifically, under the condition of S34, the imaging component acquires several second sub-image frames. The supplementary lighting brightness control terminal adjusts the supplementary lighting intensity based on the brightness of the several second sub-image frames, and then determines whether the brightness of the image frames acquired by the imaging component after the brightness adjustment of the several second sub-image frames has risen to the third preset brightness. The brightness adjustment after several second sub-image frames is used to reflect the brightness adjustment over a certain period of time.

[0101] If the judgment is yes, proceed to S39; if the judgment is no, proceed to S37.

[0102] S37, in response to the fact that the intensity of the fill light has decreased to a second preset brightness after the brightness adjustment of several first sub-image frames and the brightness of at least one second sub-image frame is higher than the preset brightness, it is determined that the intensity change of the fill light meets the preset conditions.

[0103] Specifically, the imaging component captures several first sub-image frames. The supplementary light brightness control terminal adjusts the supplementary light intensity based on the brightness of the several first sub-image frames. When the supplementary light intensity drops to a second preset brightness, and at least one of the several second sub-image frames captured by the imaging component has a brightness higher than the preset brightness when the supplementary light intensity is less than or equal to the second brightness, the supplementary light brightness control terminal determines that the current change in supplementary light intensity meets the preset condition. If the above condition is not met, the process jumps to S38.

[0104] Furthermore, after completing step S37, the supplementary light brightness control terminal jumps to S43.

[0105] S38, in response to the fact that the intensity of the fill light has decreased to the second preset brightness after the brightness adjustment of the screen of a number of first sub-image frames and has been maintained at the second preset brightness for a second preset time period, it is determined that the intensity change of the fill light meets the preset conditions.

[0106] Specifically, the imaging component captures several first sub-image frames, and the supplementary light brightness control terminal adjusts the supplementary light intensity according to the brightness of the several first sub-image frames. When the supplementary light intensity drops to the second preset brightness and the supplementary light intensity is maintained at the second preset brightness for a period of time that reaches the second preset time period, the supplementary light brightness control terminal determines that the change in supplementary light intensity meets the preset conditions.

[0107] In some embodiments, the supplementary light brightness control terminal can execute steps S37 and S38 simultaneously.

[0108] Furthermore, after completing step S38, the supplementary light brightness control terminal jumps to S43.

[0109] S39, in response to the fact that the intensity of the fill light has dropped to the second preset brightness, determine whether the intensity of the fill light has risen to the third preset brightness after the screen brightness adjustment of several second sub-image frames.

[0110] If the condition is yes, proceed to S40; if the condition is no, proceed to S42.

[0111] S40, in response to the fact that the intensity of the fill light has not risen to the third preset brightness after the brightness adjustment of the screen of several second sub-image frames and has been maintained at a level lower than the third preset brightness for a third preset time period, it is determined that the intensity change of the fill light meets the preset conditions.

[0112] Specifically, the imaging component captures several second sub-image frames, and the supplementary light brightness control terminal adjusts the supplementary light intensity according to the brightness of the several second sub-image frames. When the supplementary light intensity does not rise to the second preset brightness, and the supplementary light intensity is maintained at the second preset brightness for a period of time that reaches the second preset time period, the supplementary light brightness control terminal determines that the change in supplementary light intensity meets the preset conditions.

[0113] If the above conditions are not met, proceed to S41.

[0114] Furthermore, after completing step S38, the supplementary light brightness control terminal jumps to S43.

[0115] S41, in response to the fact that the intensity of the fill light has not risen to the third preset brightness after the brightness adjustment of several second sub-image frames and the brightness of at least one second sub-image frame is higher than the preset brightness, it is determined that the change in the intensity of the fill light meets the preset conditions.

[0116] Specifically, the shooting component captures several second sub-image frames, and the supplementary light brightness control terminal adjusts the supplementary light intensity according to the brightness of the several second sub-image frames. When the supplementary light intensity still has not risen to the third preset brightness, and the supplementary light intensity is less than or equal to the third brightness, at least one of the several second sub-image frames captured by the shooting component has a screen brightness higher than the preset brightness. Then the supplementary light brightness control terminal determines that the current change in the intensity of the supplementary light meets the preset conditions.

[0117] In some embodiments, the supplementary lighting brightness control terminal can execute steps S40 and S41 simultaneously.

[0118] S42, in response to the fact that the intensity of the fill light has increased to a third preset brightness after the brightness of the image of several second sub-image frames, it is determined that the intensity change of the fill light meets the preset conditions.

[0119] Furthermore, after completing step S40, the supplementary light brightness control terminal jumps to S43.

[0120] S43, in response to the change in the intensity of the fill light meeting the preset conditions, resumes the adjustment of the current exposure parameters.

[0121] The above solution, by determining whether several first image frames captured by the shooting component are all greater than or equal to a first preset brightness, can promptly detect objects with high reflectivity, such as human faces, in the image. Under the condition that the above conditions are met, the exposure parameters of the current shooting component are fixed and the frequency of adjustment of the fill light intensity is increased to ensure the image quality of non-fill light areas. Then, several second image frames are acquired, and the fill light intensity of the shooting component is adjusted based on the brightness of the second image frames. This achieves flexible adjustment of the fill light intensity, which can alleviate the overexposure problem of human faces and make the image quality captured by the shooting component better. Furthermore, if the change in fill light intensity meets the preset conditions during the adjustment phase, the adjustment of the exposure parameters is restored. This ensures that after objects with high reflectivity, such as human faces, leave, the image returns to normal brightness without introducing adjustment flicker.

[0122] Another embodiment of the supplementary light brightness control method provided in this application may specifically include the following steps:

[0123] S201, acquire several first image frames captured by the shooting component.

[0124] S202, determine whether the brightness of several first image frames is greater than or equal to the first preset brightness.

[0125] If the determination is yes, proceed to S203.

[0126] If the result is negative, proceed to step S201.

[0127] S203, in response to the fact that the brightness of several first image frames is greater than or equal to the first preset brightness, fix the current exposure parameters and obtain the brightness of several second image frames.

[0128] S204, determine whether the intensity of the fill light has decreased to the second preset brightness after the brightness adjustment of the screen of several first sub-image frames.

[0129] S205, in response to the fact that the intensity of the fill light does not decrease to the second preset brightness after the brightness adjustment of the screen of a number of first sub-image frames within the first preset time period, it is determined that the intensity change of the fill light meets the preset condition.

[0130] S206, in response to the change in the intensity of the fill light meeting the preset conditions, resume the adjustment of the current exposure parameters.

[0131] Another embodiment of the supplementary light brightness control method provided in this application may specifically include the following steps:

[0132] S211, acquire several first image frames captured by the shooting component.

[0133] S212, determine whether the brightness of several first image frames is greater than or equal to the first preset brightness.

[0134] S213, in response to the fact that the brightness of several first image frames is greater than or equal to the first preset brightness, fix the current exposure parameters and obtain the brightness of several second image frames.

[0135] S214, determine whether the intensity of the fill light has decreased to the second preset brightness after the brightness adjustment of the screen of several first sub-image frames.

[0136] S215, in response to the fact that the intensity of the fill light has dropped to the second preset brightness, determine whether the intensity of the fill light has risen to the third preset brightness after the brightness adjustment of the screen of several second sub-image frames.

[0137] S216 responds to the fact that the intensity of the fill light has decreased to a second preset brightness after the brightness adjustment of several first sub-image frames and the brightness of at least one second sub-image frame is higher than the preset brightness, and determines that the intensity change of the fill light meets the preset conditions.

[0138] S217, in response to the change in the intensity of the fill light meeting the preset conditions, resume the adjustment of the current exposure parameters.

[0139] Another embodiment of the supplementary light brightness control method provided in this application may specifically include the following steps:

[0140] S221, acquire several first image frames captured by the shooting component.

[0141] S222, determine whether the brightness of several first image frames is greater than or equal to the first preset brightness.

[0142] S223, in response to the fact that the brightness of several first image frames is greater than or equal to the first preset brightness, fix the current exposure parameters and obtain the brightness of several second image frames.

[0143] S224, determine whether the intensity of the fill light has decreased to the second preset brightness after the brightness adjustment of the screen of several first sub-image frames.

[0144] S225, in response to the fact that the intensity of the fill light has decreased to a second preset brightness after the brightness adjustment of the screen of a number of first sub-image frames and has been maintained at the second preset brightness for a second preset time period, it is determined that the intensity change of the fill light meets the preset conditions.

[0145] S226, in response to the change in the intensity of the fill light meeting the preset conditions, resume the adjustment of the current exposure parameters.

[0146] Another embodiment of the supplementary light brightness control method provided in this application may specifically include the following steps:

[0147] S231, acquire several first image frames captured by the shooting component.

[0148] S232, determine whether the brightness of several first image frames is greater than or equal to the first preset brightness.

[0149] S233, in response to the fact that the brightness of several first image frames is greater than or equal to the first preset brightness, fix the current exposure parameters and obtain the brightness of several second image frames.

[0150] S234, determine whether the intensity of the fill light has decreased to the second preset brightness after the brightness adjustment of the screen of several first sub-image frames.

[0151] S235, in response to the fact that the intensity of the fill light has decreased to a second preset brightness after the brightness adjustment of the screen of a number of first sub-image frames and has been maintained at the second preset brightness for a second preset time period, it is determined that the intensity change of the fill light meets the preset conditions.

[0152] S236, in response to the change in the intensity of the fill light meeting the preset conditions, resume the adjustment of the current exposure parameters.

[0153] Another embodiment of the supplementary light brightness control method provided in this application may specifically include the following steps:

[0154] S241, acquire several first image frames captured by the shooting component.

[0155] S242, determine whether the brightness of several first image frames is greater than or equal to the first preset brightness.

[0156] S243, in response to the fact that the brightness of several first image frames is greater than or equal to the first preset brightness, fix the current exposure parameters and obtain the brightness of several second image frames.

[0157] S244, determine whether the intensity of the fill light has decreased to the second preset brightness after the brightness adjustment of the screen of several first sub-image frames.

[0158] S245, in response to the fact that the intensity of the fill light has dropped to the second preset brightness, determine whether the intensity of the fill light has risen to the third preset brightness after the brightness adjustment of the screen of several second sub-image frames.

[0159] S246, in response to the fact that the intensity of the fill light has not risen to the third preset brightness after the brightness adjustment of the screen of several second sub-image frames and has been maintained at a level lower than the third preset brightness for a third preset time period, it is determined that the intensity change of the fill light meets the preset conditions.

[0160] S247, in response to the change in the intensity of the fill light meeting the preset conditions, resume the adjustment of the current exposure parameters.

[0161] Please see Figure 3 , Figure 3 yes Figure 1 A flowchart illustrating the steps following S1.

[0162] like Figure 3 As shown, the steps following S1 may include:

[0163] S100 divides the image into several image blocks.

[0164] The "several" mentioned in this embodiment refers to one or more. In one embodiment, the supplementary lighting brightness control device divides the current image into several pixel sets.

[0165] Specifically, the supplementary light brightness control device divides the current image into n sets of pixels with widths and heights of M and N, respectively.

[0166] Where n = 1, 2, 3, ...

[0167] For example, the supplementary lighting brightness control device divides the current image into M*N pixel sets and obtains the H3A statistical value of each pixel set, that is, the brightness statistical value of the pixel set.

[0168] S110, for each image block, obtain the first brightness statistics data of each image block, and use the first brightness statistics data as the brightness statistics value of the image block.

[0169] In some embodiments, the supplementary lighting brightness control device uses the first statistical value data of each pixel set as the brightness value of that pixel set. Optionally, the first brightness statistical value data can be any statistical value such as the average value, median value, or mode value of the brightness of all pixels in the pixel set.

[0170] For example, the first brightness statistical value data can be the average brightness of all pixels in the pixel set. Acquiring S110 may include the following steps: the supplementary light brightness control device sorts the H3A statistical values ​​of each acquired pixel set, that is, sorts the average brightness statistical values ​​of the pixel set. Optionally, the sorting of the H3A statistical values ​​of each pixel set can be from smallest to largest or from largest to smallest. The number of statistical data blocks greater than the target brightness is obtained, and the average brightness Yavg of these blocks is calculated. In one embodiment, the supplementary light brightness control device searches the sorted pixel set to obtain the first pixel set greater than or equal to the target brightness, records its corresponding index, and obtains the index range of pixel sets greater than or equal to the target brightness as [Index, M*N-1]; then, the number of pixel sets in the index range [Index, M*N-1] is accumulated to obtain B, and the statistical value of the pixel sets is accumulated to obtain Y. sum According to Y sum B can be used to calculate the average luminance statistical value Y of the pixel set. avg .

[0171] S120, the brightness statistics of each target image block and the overall brightness statistics of the current image are fused according to a preset ratio to obtain the image brightness value of the current image frame.

[0172] Specifically, the supplementary lighting brightness control terminal fuses the brightness statistics of each target image block in the current image frame with the overall brightness statistics of the current image according to a certain ratio to obtain the image brightness value of the current image frame.

[0173] Optionally, the brightness statistics can be the median value of the brightness statistics of all target image blocks.

[0174] Optionally, the brightness statistics can be the average of the brightness statistics of all target image blocks.

[0175] Optionally, the overall brightness statistics of the current image can be the median value of the brightness values ​​of all pixels in the image frame.

[0176] Optionally, the overall brightness statistics of the current image can be the average value of the brightness values ​​of all pixels in the image frame.

[0177] Optionally, the preset ratio for fusing the brightness statistics of each target image block with the overall brightness statistics of the current image can be 1:1, 2:3, or 3:7, and is not limited here.

[0178] By using the above method, during the process of adjusting the brightness of the fill light, the weighted fusion of pixel block statistics and overall image brightness is used to replace the overall image brightness or pixel block statistics as the parameter for adjusting the brightness of the fill light, thereby improving the sensitivity of the fill light adjustment and overcoming the deficiency that the overexposed area is too small to trigger the adjustment of the fill light.

[0179] Another embodiment of the supplementary light brightness control method provided in this application may specifically include the following steps:

[0180] S51, acquire several first image frames captured by the shooting component.

[0181] S52 divides the image into several image blocks.

[0182] S53, for each image block, obtain the first brightness statistics data of each image block, and use the first brightness statistics data as the brightness statistics value of the image block.

[0183] S54, the brightness statistics of each target image block and the overall brightness statistics of the current image are fused according to a preset ratio to obtain the image brightness value of the current image frame.

[0184] S55, determine whether the brightness difference between adjacent first image frame blocks is greater than the brightness difference threshold.

[0185] Specifically, the brightness difference of image blocks in adjacent first image frames is the difference between the brightness statistics of image blocks in the current first image frame and the brightness statistics of image blocks at the same position in the previous first image frame.

[0186] Specifically, the supplementary lighting brightness control device determines whether the brightness difference between adjacent first image frame image blocks is greater than a preset brightness difference threshold. If the determination is yes, it jumps to S53; otherwise, it jumps to S51.

[0187] S56, in response to the brightness difference between adjacent first image frame blocks being greater than the brightness difference threshold, the brightness statistics of the previous first image frame block are used as the first preset brightness.

[0188] Specifically, under the condition that the brightness difference between adjacent first image frame blocks is greater than the brightness difference threshold, the supplementary lighting brightness control terminal uses the brightness statistics of the image brightness block of the previous first image frame as the first preset brightness.

[0189] S57, determine whether the brightness of several first image frames is greater than or equal to the first preset brightness.

[0190] If the judgment is yes, proceed to S58; if the judgment is no, proceed to S51.

[0191] S58, adjust the preset ratio to obtain the brightness of the second image frame using the adjusted preset ratio.

[0192] In the adjusted preset ratio, the proportion of the brightness statistics of the target image block in the second image frame is greater than the proportion of the overall brightness statistics of the second image frame.

[0193] Specifically, the supplementary lighting brightness control terminal adjusts the brightness ratio of the acquired second image frame, wherein the preset ratio of the adjusted image patch brightness statistics is higher than the overall brightness statistics of the image frame. For example, the preset ratio of the adjusted image patch brightness statistics to the overall brightness statistics can be 9:1. Understandably, the supplementary lighting brightness control terminal increases the metering weight of the image patch brightness statistics, enhancing its focus on potentially overexposed areas.

[0194] In some embodiments, the supplementary lighting brightness control terminal can also increase the weight of the image block with the highest current brightness statistical value among all image blocks. For example, if the current image frame is divided into three image blocks A1, A2, and A3, the supplementary lighting brightness control terminal sets the weight of image block A1 with the highest brightness statistical value to 0.9, and sets the weights of the remaining image blocks A2 and A3 to 0.05 and 0.05, respectively. Then, the adjusted image block brightness statistical values ​​are 0.9A1, 0.05A2, and 0.05A3, respectively.

[0195] S59, in response to the fact that the brightness of several first image frames is greater than or equal to the first preset brightness, fix the current exposure parameters and obtain the brightness of several second image frames.

[0196] S60, determine whether the intensity of the fill light has decreased to the second preset brightness after the brightness adjustment of the screen of several first sub-image frames.

[0197] S61, in response to the fact that the intensity of the fill light has dropped to the second preset brightness, determine whether the intensity of the fill light has risen to the third preset brightness after the screen brightness adjustment of several second sub-image frames.

[0198] If the determination is yes, proceed to S62;

[0199] S62, update the preset ratio to obtain the brightness of the newly acquired image frame using the updated preset ratio, and use the brightness of the newly acquired image frame to adjust the intensity of the fill light.

[0200] In the updated preset ratio, the proportion of the brightness statistics of the target image block in the new image frame is smaller than the proportion of the overall brightness statistics of the new image frame.

[0201] Specifically, the supplementary lighting brightness control terminal updates the preset ratio adjusted by S58, wherein the updated preset ratio of the image patch brightness statistics is lower than the overall brightness statistics of the image frame. For example, the preset ratio of the updated image patch brightness statistics to the overall brightness statistics can be 1:9. Understandably, the supplementary lighting brightness control terminal increases the metering weight of the overall brightness statistics.

[0202] S63, in response to the fact that the intensity of the fill light has increased to a third preset brightness after the brightness of the image of several second sub-image frames, it is determined that the intensity change of the fill light meets the preset conditions.

[0203] S64, in response to the change in the intensity of the fill light meeting the preset conditions, resumes the adjustment of the current exposure parameters.

[0204] The above solution, by determining whether several first image frames captured by the shooting component are all greater than or equal to a first preset brightness, can promptly detect objects with high reflectivity, such as faces, in the image. Under the condition that the above conditions are met, the exposure parameters of the current shooting component are fixed and the frequency of the supplementary light intensity adjustment is increased to ensure the image quality of non-supplementary light areas. Then, several second image frames are acquired, and the supplementary light intensity of the shooting component is adjusted based on the brightness of the second image frames, realizing flexible adjustment of the supplementary light intensity. This can alleviate the overexposure problem of faces and make the image quality captured by the shooting component better. Furthermore, if the change in supplementary light intensity meets the preset conditions during the adjustment phase, the adjustment of the exposure parameters is restored. This ensures that after objects with high reflectivity, such as faces, leave, the image returns to normal brightness without introducing adjustment flicker. At the same time, during the supplementary light brightness adjustment process, a weighted fusion of pixel block statistics and overall image brightness is used instead of overall image brightness or pixel block statistics as the supplementary light brightness adjustment parameter, improving the sensitivity of the supplementary light adjustment and overcoming the deficiency that the supplementary light adjustment cannot be triggered when the overexposed area is too small.

[0205] Please see Figure 4 , Figure 4 This is a flowchart illustrating another embodiment of the supplementary lighting brightness control method provided in this application.

[0206] like Figure 4 As shown, the supplementary light brightness control method provided in this application may include the following steps:

[0207] S71, acquire several image frames.

[0208] S71 corresponds to S1 mentioned above, and will not be repeated here.

[0209] S72 determines whether consecutive image frames meet the brightness change condition based on the statistical information of the image blocks.

[0210] S72 corresponds to S55-S56 mentioned above, and will not be repeated here.

[0211] If yes, proceed to S73; otherwise, proceed to S71.

[0212] S73, with fixed exposure parameters, prioritizes metering weights for high-brightness areas.

[0213] S73 corresponds to S58-S59 mentioned above, and will not be repeated here.

[0214] S74, determine whether there is a continuous decreasing trend in the brightness of the supplementary light.

[0215] S74 corresponds to S60 mentioned above, and will not be repeated here.

[0216] If the determination is yes, proceed to S75.

[0217] S75 enters the overexposure prevention logic and sets the descent phase to the approach process.

[0218] S76 detects the upward trend of the fill light and counts the light stabilization frames. It sets the light stabilization stage as the dwell stage and performs timeout detection and overexposure detection during the dwell stage.

[0219] Among them, detecting the upward trend of the fill light and counting the stable light frames corresponds to S36 above, and performing timeout detection and overexposure detection simultaneously during the dwell phase corresponds to S37 and S38 above, which will not be elaborated here.

[0220] S77, when an upward trend of the fill light is detected, the metering weight is switched to average weight, and the fill light intensity is waited for to continue to rise before being set to the exit phase.

[0221] When an upward trend of the fill light is detected, the metering weight is switched to the average weight, which corresponds to S62 above and will not be repeated here.

[0222] S78: Once the fill light intensity reaches a certain level, resume adjusting the exposure parameters.

[0223] S78 corresponds to S42-S43 mentioned above, and will not be repeated here.

[0224] The above method, by determining whether several first image frames captured by the shooting component are all greater than or equal to a first preset brightness, can promptly detect objects with high reflectivity, such as human faces, in the image. Under the condition that the above conditions are met, the exposure parameters of the current shooting component are fixed and the frequency of adjustment of the fill light intensity is increased to ensure the image quality of non-fill light areas. Then, several second image frames are acquired, and the fill light intensity of the shooting component is adjusted based on the image brightness of the several second image frames. This achieves flexible adjustment of the fill light intensity, which can alleviate the overexposure problem of human faces and make the image quality captured by the shooting component better. Furthermore, the anti-overexposure process is divided based on the trend of fill light intensity change, achieving precise and fast fill light intensity control, so that the process of human faces approaching, staying, and leaving the image is not overexposed.

[0225] Please see Figure 5 , Figure 5 This is a flowchart illustrating another embodiment of the supplementary light brightness control method provided in this application.

[0226] like Figure 5 As shown, the supplementary light brightness control method provided in this application may include the following steps:

[0227] S81, acquire a frame of image.

[0228] S81 corresponds to S1 mentioned above, and will not be repeated here.

[0229] S82 divides the image into MxN blocks and calculates the brightness of each block.

[0230] S82 corresponds to S100-S110 mentioned above, and will not be repeated here.

[0231] S83, determine if there is a sudden change in block brightness.

[0232] S83 corresponds to S55 mentioned above, and will not be repeated here.

[0233] S84 records the location of the brightness abrupt change block and the block brightness Luma before the brightness abrupt change.

[0234] S85 determines whether the brightness of n consecutive frames is greater than Luma.

[0235] S84-S85 correspond to S56-S57 mentioned above, and will not be repeated here.

[0236] S86, with the current shutter speed, gain, and aperture values ​​fixed, sends metering weights that emphasize the brightest areas.

[0237] S86 corresponds to S58-S59 mentioned above, and will not be repeated here.

[0238] S87, increase the frequency of the fill light adjustment to adjust the intensity of the fill light.

[0239] S87 corresponds to S15 mentioned above, and will not be repeated here.

[0240] S88 determines whether the intensity of the fill light has decreased to a stable state.

[0241] If yes, proceed to S89; otherwise, proceed to S91.

[0242] S88 corresponds to S60 mentioned above, and will not be repeated here.

[0243] S89, switch the metering weight to average metering weight.

[0244] S89 corresponds to S62 mentioned above, and will not be repeated here.

[0245] S90, determine whether the intensity of the supplementary light has risen to a stable state.

[0246] S90 corresponds to S61 mentioned above, and will not be repeated here.

[0247] If yes, proceed to S93; otherwise, proceed to S91.

[0248] S91 executes the overexposure detection logic and timeout processing detection logic.

[0249] S91 corresponds to S37, S38, S40, and S41 mentioned above, and will not be repeated here.

[0250] S92, restores automatic exposure and fill light adjustment frequency.

[0251] S92 corresponds to S43 mentioned above, and will not be repeated here.

[0252] The above solution, by determining whether several first image frames captured by the shooting component are all greater than or equal to a first preset brightness, can promptly detect objects with high reflectivity, such as faces, in the image. Under the condition that the above conditions are met, the exposure parameters of the current shooting component are fixed and the frequency of the supplementary light intensity adjustment is increased to ensure the image quality of non-supplementary light areas. Then, several second image frames are acquired, and the supplementary light intensity of the shooting component is adjusted based on the brightness of the second image frames, realizing flexible adjustment of the supplementary light intensity. This can alleviate the overexposure problem of faces and make the image quality captured by the shooting component better. Furthermore, if the change in supplementary light intensity meets the preset conditions during the adjustment phase, the adjustment of the exposure parameters is restored. This ensures that after objects with high reflectivity, such as faces, leave, the image returns to normal brightness without introducing adjustment flicker. At the same time, during the supplementary light brightness adjustment process, a weighted fusion of pixel block statistics and overall image brightness is used instead of overall image brightness or pixel block statistics as the supplementary light brightness adjustment parameter, improving the sensitivity of the supplementary light adjustment and overcoming the deficiency that the supplementary light adjustment cannot be triggered when the overexposed area is too small.

[0253] The entity executing the supplementary lighting brightness control method can be a supplementary lighting brightness control device. For example, the supplementary lighting brightness control device can be a terminal device, a server, or other processing device. For instance, a supplementary lighting brightness control terminal. The terminal device can be a device for monitoring images, user equipment (UE), mobile device, user terminal, terminal, cellular phone, cordless phone, personal digital assistant (PDA), handheld device, computing device, in-vehicle device, wearable device, as well as autonomous vehicles, robots, security systems, and products such as glasses and helmets for augmented reality or virtual reality. In some possible implementations, the supplementary lighting brightness control method can be implemented by a processor calling computer-readable instructions stored in memory.

[0254] Please continue reading Figure 6 , Figure 6 This is a schematic diagram of the structure of an embodiment of the terminal device provided in this application. The terminal device 500 of this application embodiment includes a processor 51 and a memory 52.

[0255] The processor 51 and the memory 52 are connected to the bus. The memory 52 stores program data, and the processor 51 is used to execute the program data to implement the supplementary light brightness control method described in the above embodiments.

[0256] In this embodiment, processor 51 can also be referred to as a CPU (Central Processing Unit). Processor 51 may be an integrated circuit chip with signal processing capabilities. Processor 51 can also be a general-purpose processor, a digital signal processor (DSP), an application-specific integrated circuit (ASIC), a field-programmable gate array (FPGA), or other programmable logic devices, discrete gate or transistor logic devices, or discrete hardware components. The general-purpose processor can be a microprocessor, or processor 51 can be any conventional processor.

[0257] This application also provides a computer storage medium; please refer to the following: Figure 7 , Figure 7 This is a schematic diagram of a computer storage medium according to an embodiment of the present application. The computer storage medium 600 stores program data 61, which is used to implement the supplementary light brightness control method of the above embodiment when executed by the processor.

[0258] When the embodiments of this application are implemented as software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the technical solution of this application, in essence, or the part that contributes to the prior art, or all or part of the technical solution, can be embodied in the form of a software product. This computer software product is stored in a storage medium and includes several instructions to cause a computer device (which may be a personal computer, server, or network device, etc.) or processor to execute all or part of the steps of the methods described in the various embodiments of this application. The aforementioned storage medium includes various media capable of storing program code, such as USB flash drives, portable hard drives, read-only memory (ROM), random access memory (RAM), magnetic disks, or optical disks.

[0259] The above description is merely an embodiment of this application and does not limit the patent scope of this application. Equivalent structural or procedural transformations made using the content of this application's specification and drawings, or direct or indirect applications in other related technical fields, are similarly included within the patent protection scope of this application.

Claims

1. A method for controlling supplemental lighting brightness, characterized in that, The method includes: Acquire several first image frames captured by the shooting component; Determine whether the brightness of the plurality of first image frames is greater than or equal to a first preset brightness; In response to the fact that the brightness of the plurality of first image frames is greater than or equal to the first preset brightness, the current exposure parameters are fixed and the brightness of the plurality of second image frames is obtained. The current exposure parameters include one or more of shutter speed, gain value and aperture value. The acquisition time of the plurality of second image frames is later than the acquisition time of the plurality of first image frames. The intensity of the fill light of the shooting component is adjusted based on the brightness of the several second image frames.

2. The method according to claim 1, characterized in that, The method further includes: Determine whether the intensity change of the supplementary light meets the preset conditions; In response to the intensity change of the fill light meeting the preset conditions, the adjustment of the current exposure parameters is resumed.

3. The method according to claim 2, characterized in that, The plurality of second image frames include a plurality of first sub-image frames and a plurality of second sub-image frames, wherein the second sub-image frames are acquired later than the first sub-image frames. The step of determining whether the intensity change of the supplementary light meets a preset condition includes: Determine whether the intensity of the fill light has decreased to the second preset brightness after the brightness adjustment of the screen of the several first sub-image frames; In response to the fact that the intensity of the fill light has dropped to the second preset brightness, it is determined whether the intensity of the fill light has risen to the third preset brightness after the brightness adjustment of the screen of several second sub-image frames; In response to the fact that the intensity of the fill light rises to a third preset brightness after the brightness of the second sub-image frames has been adjusted, it is determined that the intensity change of the fill light satisfies the preset condition.

4. The method according to claim 3, characterized in that, The method further includes at least the following step: If the intensity of the fill light does not decrease to the second preset brightness after the brightness adjustment of the screen of the plurality of first sub-image frames within a first preset time period, it is determined that the intensity change of the fill light satisfies the preset condition. In response to the fact that the intensity of the fill light has decreased to the second preset brightness after the brightness adjustment of the screen of the plurality of first sub-image frames and has been maintained at the second preset brightness for a second preset time period, it is determined that the intensity change of the fill light meets the preset condition; In response to the fact that the intensity of the fill light has decreased to the second preset brightness after the brightness adjustment of the screen of the plurality of first sub-image frames and the screen brightness of at least one of the second sub-image frames is higher than the preset brightness, it is determined that the intensity change of the fill light satisfies the preset condition. If the intensity of the fill light does not rise to the third preset brightness after the brightness adjustment of several second sub-image frames and has been maintained below the third preset brightness for a third preset time period, it is determined that the intensity change of the fill light meets the preset condition. If the intensity of the fill light does not rise to the third preset brightness after the brightness adjustment of several second sub-image frames, and the brightness of at least one second sub-image frame is higher than the preset brightness, it is determined that the intensity change of the fill light meets the preset condition.

5. The method according to claim 2, characterized in that, Methods for obtaining image brightness include: Divide the image into several image blocks; For each image block, the first brightness statistics data of each image block is obtained, and the first brightness statistics data is used as the brightness statistics value of the image block. The brightness statistics of each target image block and the overall brightness statistics of the current image are fused according to a preset ratio to obtain the brightness value of the current first image frame.

6. The method according to claim 1 or 5, characterized in that, Before acquiring the brightness of several second image frames, the method further includes: The preset ratio is adjusted to obtain the brightness of the second image frame using the adjusted preset ratio, wherein the proportion of the brightness statistics of the target image block of the second image frame in the adjusted preset ratio is greater than the proportion of the overall brightness statistics of the second image frame. And / or, after determining that the intensity change of the fill light satisfies the preset condition, in response to whether the intensity of the fill light has increased to a third preset brightness after the image brightness adjustment of a plurality of second sub-image frames, the method further includes: The preset ratio is updated to obtain the brightness of the newly acquired image frame using the updated preset ratio. The brightness of the newly acquired image frame is used to adjust the intensity of the fill light. In the updated preset ratio, the proportion of the brightness statistics of the target image block in the new image frame is less than the proportion of the overall brightness statistics of the new image frame.

7. The method according to claim 1, characterized in that, Before acquiring the brightness of several second image frames, the method further includes: Increase the brightness adjustment frequency of the supplementary light; Adjusting the intensity of the fill light of the shooting component based on the brightness of the plurality of second image frames includes: The intensity of the fill light of the shooting component is adjusted based on the brightness of the several second image frames and the brightness adjustment frequency.

8. The method according to claim 1, characterized in that, Before determining whether the brightness of the plurality of first image frames is greater than or equal to a first preset brightness, the method further includes: Determine whether the brightness difference between adjacent first image frames is greater than a brightness difference threshold. In response to a brightness difference greater than a brightness difference threshold between adjacent first image frames, the statistical value of the brightness of the first image frame first acquired in the adjacent first image frames is used as the first preset brightness.

9. A terminal device, characterized in that, The terminal device includes a processor and a memory connected to the processor, wherein... The memory stores program instructions; The processor is used to execute program instructions stored in the memory to implement the supplementary light brightness control method as described in any one of claims 1 to 8.

10. A computer-readable storage medium, characterized in that, The storage medium stores program instructions, which, when executed, implement the supplementary light brightness control method as described in any one of claims 1 to 8.

Citation Information

Patent Citations

  • Light supplement brightness adjusting method, mobile terminal and storage medium

    CN108270966A