Image automatic fill light adjustment method and adjustment system

By detecting the color temperature value and light intensity value of the shooting environment, calculating and applying the corresponding weights, selecting the best fill light image, the limitations of the traditional fill light method in low-light environments are solved, and an efficient and natural automatic fill light effect is achieved.

CN119052439BActive Publication Date: 2025-04-15SICHUAN NATIONAL INNOVATION VISION UHD VIDEO TECHNOLOGY CO LTD
View PDF 2 Cites 0 Cited by

Patent Information

Application Number
CN202411093030.1
Authority / Receiving Office
CN · China
Patent Type
Patents(China)
Current Assignee / Owner
Filing Date
2024-08-09
Publication Date
2025-04-15
Estimated Expiration
2044-08-09

AI Technical Summary

Technical Problem

In low-light environments, traditional fill light methods have problems such as uneven fill light, overexposed or white balance distortion, and are limited by device volume and power consumption when applied on mobile devices, making it difficult to achieve efficient and portable fill light effects.

Method used

By detecting the color temperature value and light intensity value of the shooting environment, calculate the color temperature weight and light intensity weight, calculate the compensation area size using a linear model, and select the best image from the pre-stored fill light images to achieve automatic fill light adjustment.

Benefits of technology

It achieves a more accurate and natural fill light effect, ensuring that the white balance of the image is not affected, and is suitable for mobile devices, providing efficient and portable fill light solutions.

✦ Generated by Eureka AI based on patent content.

Smart Images

  • Figure CN119052439B_ABST
    Figure CN119052439B_ABST
Patent Text Reader

Abstract

The present invention provides an image automatic fill light adjustment method and an adjustment system, which relate to the field of image processing technology, and include detecting the color temperature value and the light intensity value of the current shooting environment; based on the color temperature value and the light intensity value, respectively calculating the color temperature weight and the light intensity weight through a color temperature weight function and a light intensity weight function; based on the color temperature weight and the light intensity weight, calculating the compensation area size through a preset linear model to obtain the real-time area size; setting a fill light area with a size equal to the real-time area size in a display screen; based on the color temperature weight and the light intensity weight, selecting the best fill light image from a plurality of pre-stored fill light images, and displaying the best fill light image in the fill light area of ​​the display screen to achieve fill light for the shooting environment. The present invention can automatically calculate the best fill light area size according to the color temperature value and the light intensity value of the shooting environment, and select the best fill light image to achieve a more accurate and natural fill light effect.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present invention relates to the technical field of image processing, and in particular to an image automatic fill light adjustment method and an adjustment system. Background Art

[0002] In the process of photography and video shooting, good lighting conditions are essential for capturing high-quality images. However, in many practical application scenarios, especially in low-light environments, it is often difficult for shooting equipment to capture clear and color-accurate images. To solve this problem, people often use fill light technology to improve the lighting conditions of the shooting environment.

[0003] Traditional fill light methods usually rely on manual operations, such as using a flash or external light source to improve the lighting conditions of the shooting environment. Although these methods can improve image quality to a certain extent, they have some limitations in practical applications, such as uneven fill light, overexposure or white balance distortion. In addition, when artificial fill light methods are applied on mobile devices, they are limited by the size and power consumption of the device, making it difficult to achieve efficient and portable fill light effects.

[0004] Therefore, it is necessary to provide an image automatic fill light adjustment method and an adjustment system to solve the above technical problems. Summary of the invention

[0005] In order to solve the above technical problems, the present invention provides an image automatic fill light adjustment method and adjustment system, which can automatically calculate the optimal fill light area size according to the color temperature value and light intensity value of the shooting environment, and select the optimal fill light image to achieve a more accurate and natural fill light effect, while ensuring that the white balance of the image is not affected.

[0006] The present invention provides an automatic image fill light adjustment method, the adjustment method comprising the following steps:

[0007] Detecting parameters of the current shooting environment, wherein the parameters include color temperature value and light intensity value;

[0008] Based on the color temperature value and the light intensity value, the color temperature weight and the light intensity weight are calculated respectively by the color temperature weight function and the light intensity weight function;

[0009] Based on the color temperature weight and light intensity weight, the compensation area size is calculated through a preset linear model to obtain the real-time area size;

[0010] Setting a fill light area with a size equal to the size of the real-time area on the display screen;

[0011] An optimal fill light image is selected from a plurality of pre-stored fill light images based on the color temperature weight and the light intensity weight, and the optimal fill light image is displayed in a fill light area of ​​a display screen to achieve fill light for the shooting environment.

[0012] Preferably, the color temperature weight and the light intensity weight are calculated based on the color temperature value and the light intensity value by using a color temperature weight function and a light intensity weight function respectively, including:

[0013] The color temperature value is input into the color temperature weight function to calculate the color temperature weight, wherein the expression of the color temperature weight function g(·) is:

[0014]

[0015] Where C is the color temperature value of the current shooting environment, C1 is the neutral color temperature value, d, e, f and h are constants, where d and f are used to control the speed of change of the color temperature weight when the color temperature value deviates from the neutral value, and e and h are used to determine the value of the color temperature weight near the neutral value;

[0016] The light intensity value is input into the light intensity weight function to calculate the light intensity weight, wherein the expression of the light intensity weight function f(·) is:

[0017]

[0018] Where L is the light intensity value of the current shooting environment, L t is a preset light intensity threshold, a, b and c are constants, and a, b and c are respectively used to control the growth rate of the light intensity weight when the light intensity value is less than the light intensity threshold, to determine the initial value of the light intensity weight when the light intensity value is less than the light intensity threshold, and to determine the value of the light intensity weight when the light intensity value is greater than or equal to the light intensity threshold.

[0019] Preferably, the method of calculating the compensation area size based on the color temperature weight and the light intensity weight by a preset linear model to obtain the real-time area size includes:

[0020] Based on the color temperature weight and the light intensity weight, the size of the compensation area is calculated by a preset linear model, wherein the calculation formula of the size of the compensation area is:

[0021] A=ω L (LL t )+ω C (C-C1)

[0022] In the formula, ω L is the light intensity weight, ω C is the color temperature weight, A is the size of the compensation area;

[0023] The preset basic fill light area size is compensated by using the compensation area size to obtain the real-time area size, wherein the calculation formula of the real-time area size is:

[0024] B f =B+A

[0025] In the formula, B f A is the real-time area size, and B is the preset basic fill light area size.

[0026] Preferably, setting a fill light area having a size equal to that of the real-time area in the display screen includes:

[0027] According to the real-time area size, a fill light area matching the real-time area size is dynamically defined on the display screen.

[0028] Preferably, selecting the best fill light image from a plurality of pre-stored fill light images based on the color temperature weight and the light intensity weight, and displaying the best fill light image in the fill light area of ​​the display screen, comprises:

[0029] Reading a fill light color temperature value and a fill light intensity value of each fill light image in a plurality of fill light images;

[0030] By calculating the difference between the fill light color temperature value and the fill light intensity value of each fill light image and the color temperature value and the intensity value of the corresponding current shooting environment, a first score corresponding to the fill light color temperature value and a second score corresponding to the fill light intensity value are obtained;

[0031] Based on the first score and the second score, and in combination with the color temperature weight and the light intensity weight, a comprehensive score of each fill-light image is calculated, wherein the calculation formula of the comprehensive score is:

[0032] S = β·(ω L ·S L +ω C ·S C )

[0033] In the formula, S is the comprehensive score, S L is the second rating, S C is the first score, β is the brightness adaptation factor;

[0034] A fill-light image with the highest comprehensive score is selected from all pre-stored fill-light images as the best fill-light image.

[0035] Preferably, the calculation formula of the brightness adaptability factor β is:

[0036]

[0037] In the formula, B i is the brightness value of each fill-light image, B e It is the brightness value of the current shooting environment.

[0038] Preferably, it also includes:

[0039] After the best fill light image is displayed in the fill light area, the changes in the color temperature and light intensity values ​​of the shooting environment are continuously monitored. When the changes in the monitored color temperature and / or light intensity values ​​exceed the preset change threshold, the color temperature weight and light intensity weight are recalculated, and the best fill light image is reselected based on the new color temperature weight and light intensity weight to keep the fill light effect optimized.

[0040] The present invention also provides an image automatic fill light adjustment system, which is used to execute the image automatic fill light adjustment method, and the adjustment system comprises:

[0041] A parameter acquisition module, used to detect parameters of the current shooting environment, wherein the parameters include color temperature value and light intensity value;

[0042] A weight calculation module, used to calculate the color temperature weight and the light intensity weight respectively based on the color temperature value and the light intensity value through the color temperature weight function and the light intensity weight function;

[0043] A compensation size calculation module is used to calculate the compensation area size based on the color temperature weight and the light intensity weight through a preset linear model to obtain the real-time area size;

[0044] An area setting module, used for setting a fill light area of ​​a size equal to the size of the real-time area in the display screen;

[0045] The fill light module is used to select the best fill light image from multiple pre-stored fill light images based on the color temperature weight and the light intensity weight, and display the best fill light image in the fill light area of ​​the display screen to achieve fill light for the shooting environment.

[0046] Compared with the related art, the image automatic fill light adjustment method and adjustment system provided by the present invention have the following beneficial effects:

[0047] The present invention detects the color temperature value and light intensity value of the current shooting environment; based on the color temperature value and the light intensity value, the color temperature weight and the light intensity weight are respectively calculated by the color temperature weight function and the light intensity weight function; based on the color temperature weight and the light intensity weight, the compensation area size is calculated by a preset linear model to obtain the real-time area size; a fill light area with a size equal to the real-time area size is set in the display screen; based on the color temperature weight and the light intensity weight, the best fill light image is selected from a plurality of pre-stored fill light images, and the best fill light image is displayed in the fill light area of ​​the display screen to achieve fill light for the shooting environment. The present invention can automatically calculate the best fill light area size according to the color temperature value and the light intensity value of the shooting environment, and select the best fill light image to achieve a more accurate and natural fill light effect. BRIEF DESCRIPTION OF THE DRAWINGS

[0048] Figure 1A flowchart of an automatic image fill light adjustment method provided by the present invention;

[0049] Figure 2 This is a module structure diagram of an image automatic fill light adjustment system provided by the present invention. DETAILED DESCRIPTION

[0050] The present invention will be further described in detail below in conjunction with the accompanying drawings and embodiments. It is to be understood that the specific embodiments described herein are only used to explain the present invention, rather than to limit the present invention. It should also be noted that, for ease of description, only the parts related to the present invention, rather than all structures, are shown in the accompanying drawings. In addition, the embodiments of the present invention and the features in the embodiments may be combined with each other without conflict.

[0051] It should also be noted that, for ease of description, only the part relevant to the present invention but not all the content is shown in the accompanying drawings. It should be mentioned before discussing the exemplary embodiments in more detail that some exemplary embodiments are described as the processing or method described as a flow chart. Although the flow chart describes each operation (or step) as being processed sequentially, many operations therein can be implemented in parallel, concurrently or simultaneously. In addition, the order of each operation can be rearranged. When its operation is completed, the processing can be terminated, but it can also have additional steps not included in the accompanying drawings. The processing can correspond to a method, a function, a procedure, a subroutine, a subprogram, etc.

[0052] Embodiment 1

[0053] The present invention provides an automatic image fill light adjustment method, referring to Figure 1 As shown, the adjustment method comprises the following steps:

[0054] S1: Detecting parameters of a current shooting environment, wherein the parameters include a color temperature value and a light intensity value.

[0055] In this embodiment, the color temperature and light intensity of the current shooting environment are monitored in real time by the ambient light sensor and color temperature sensor integrated in the device. The ambient light sensor and the color temperature sensor transmit real-time data to the processor. The processor calculates the color temperature value and light intensity value of the current environment based on the received data, so as to obtain accurate color temperature and light intensity information of the current shooting environment in a timely manner.

[0056] S2: Based on the color temperature value and the light intensity value, the color temperature weight and the light intensity weight are calculated by the color temperature weight function and the light intensity weight function respectively.

[0057] In this embodiment, based on the detected color temperature value and light intensity value, the preset color temperature weight function and light intensity weight function are used for calculation, wherein the color temperature weight function calculates the color temperature weight by considering the degree to which the color temperature value deviates from the neutral color temperature and the speed of its change; and the light intensity weight function dynamically adjusts the weight value according to whether the light intensity value is lower than a preset threshold value to meet the needs under different lighting conditions.

[0058] By calculating the corresponding weight function, the characteristics of the ambient light in terms of color temperature and light intensity can be accurately quantified, providing a scientific basis for the subsequent determination of the fill light area and the selection of the fill light image. This quantification process not only improves the accuracy of fill light adjustment, but also improves the intelligence level of the system.

[0059] S3: Based on the color temperature weight and the light intensity weight, the compensation area size is calculated through a preset linear model to obtain the real-time area size.

[0060] In this embodiment, after obtaining the color temperature weight and the light intensity weight, a preset linear model is used to perform calculations to obtain the size of the fill light area that needs to be compensated, wherein the model comprehensively considers the influence of the color temperature weight and the light intensity weight, as well as the preset basic fill light area size, and calculates the final real-time area size through a linear relationship.

[0061] Through the calculation of the linear model, the size of the fill light area can be flexibly adjusted to meet the fill light requirements in different shooting environments. This dynamic adjustment mechanism ensures the uniformity and rationality of the fill light effect and improves the overall quality of the captured image.

[0062] S4: setting a fill light area with a size equal to the size of the real-time area on the display screen.

[0063] In this embodiment, based on the calculated real-time area size, a fill light area matching it is dynamically delineated on the display screen, and the size and position of the area are precisely adjusted according to the real-time environmental parameters and fill light requirements to ensure the accuracy and effectiveness of the fill light effect.

[0064] By setting the fill light area, the fill light image can be accurately projected onto the area that needs fill light, thus avoiding light waste and interference.

[0065] S5: selecting an optimal fill light image from a plurality of pre-stored fill light images based on the color temperature weight and the light intensity weight, and displaying the optimal fill light image in a fill light area of ​​a display screen to achieve fill light for the shooting environment.

[0066] In this embodiment, first, the color temperature values and light intensity values of multiple pre-stored fill light images are read. Then, by calculating the differences between the color temperature values and light intensity values of each fill light image and the color temperature value and light intensity value of the current shooting environment, a first score and a second score are obtained. Next, combining the color temperature weight, light intensity weight, and brightness adaptability factor (considering the matching degree between the fill light image brightness and the ambient brightness), the comprehensive score of each fill light image is calculated. Finally, the fill light image with the highest comprehensive score is selected as the best fill light image and is displayed in the fill light area of the display screen.

[0067] By intelligently selecting the best fill light image and displaying it in the fill light area, accurate fill light for the shooting environment can be achieved. This fill light method not only conforms to the characteristics of the ambient light but also can improve the color restoration and brightness uniformity of the captured image. At the same time, the dynamic adjustment mechanism ensures the continuous optimization and real-time nature of the fill light effect, providing users with a more professional and efficient shooting experience.

[0068] Specifically, step S2 includes the following steps:

[0069] S201: Input the color temperature value into the color temperature weight function to calculate the color temperature weight. The expression of the color temperature weight function g(·) is:

[0070]

[0071] In the formula, C is the color temperature value of the current shooting environment, C1 is the neutral color temperature value, usually taken as 5000K, and the specific value can be selected according to requirements. d, e, f, and h are constants, which can be determined through experiments. Among them, d and f are used to control the change speed of the color temperature weight when the color temperature value deviates from the neutral value, and e and h are used to determine the value of the color temperature weight near the neutral value.

[0072] In this embodiment, when C < C1, d·(C - C1)+e is used to calculate the color temperature weight. When C ≥ C1, f·(C1 - C)+h is used to calculate the color temperature weight. Through the color temperature weight function, the color temperature weight can be adjusted according to different color temperature environments, making the fill light adjustment more in line with the human eye's visual habit and improving the color restoration of the image.

[0073] At the same time, by considering the degree of deviation of the color temperature value from the neutral color temperature and its change speed, the color temperature weight function realizes adaptive adjustment to different color temperature environments and improves the intelligent level of fill light adjustment.

[0074] S202: Input the light intensity value into the light intensity weight function to calculate the light intensity weight. The expression of the light intensity weight function f(·) is:

[0075]

[0076] Where L is the light intensity value of the current shooting environment, L t is the preset light intensity threshold, a, b and c are constants, which can also be determined through experiments, and a, b and c are respectively used to control the growth rate of the light intensity weight when the light intensity value is less than the light intensity threshold, to determine the initial value of the light intensity weight when the light intensity value is less than the light intensity threshold, and to determine the value of the light intensity weight when the light intensity value is greater than or equal to the light intensity threshold.

[0077] In this embodiment, when L <L t When a·L+b is used to calculate the light intensity weight, when L≥L t When , the constant c is directly used as the light intensity weight. The light intensity weight function can be used to adjust the light intensity weight according to different light intensity environments to ensure that the brightness can be effectively improved in low light environments and maintain an appropriate brightness level in high light environments, thereby achieving an ideal fill light effect.

[0078] At the same time, the light intensity weight function dynamically adjusts the weight value according to whether the light intensity value is lower than the preset threshold, so that the system can better cope with the needs under different lighting conditions and improve the flexibility and adaptability of fill light adjustment.

[0079] Specifically, step S3 specifically includes the following steps:

[0080] S301: Based on the color temperature weight and the light intensity weight, the size of the compensation area is calculated by a preset linear model, wherein the calculation formula of the size of the compensation area is:

[0081] A=ω L (LL t )+ω C (C-C1)

[0082] In the formula, ω L is the light intensity weight, ω C is the color temperature weight, and A is the size of the compensation area.

[0083] In this embodiment, when calculating the size of the compensation area, the previously obtained light intensity weight and color temperature weight are substituted into the above formula to obtain the size of the compensation area. Through the calculation of the linear model, the influence of the color temperature weight and the light intensity weight on the size of the compensation area can be comprehensively considered, so that the size of the fill light area is more reasonable, thereby improving the fill light effect.

[0084] S302: using the compensation area size to compensate for the preset basic fill light area size to obtain the real-time area size, wherein the calculation formula of the real-time area size is:

[0085] B f =B+A

[0086] In the formula, Bf A is the real-time area size, and B is the preset basic fill light area size.

[0087] In this embodiment, a basic fill light area size is pre-set, which is the default fill light area size in the absence of compensation. The compensation area size is added to the basic fill light area size to obtain the final real-time area size. By dynamically adjusting the compensation area size, the size of the fill light area can be flexibly adjusted according to different shooting environments and fill light requirements to adapt to the fill light requirements in different scenes and improve the overall quality of the captured image.

[0088] Specifically, step S4 is as follows:

[0089] According to the real-time area size, a fill light area matching the real-time area size is dynamically defined on the display screen.

[0090] In this embodiment, the real-time area size is obtained, and according to the real-time area size, an area of ​​a corresponding size is demarcated on the display screen as a fill light area.

[0091] This fill light area should cover the key parts that need fill light, such as the main part of the subject or the entire face (if it is portrait photography), etc.

[0092] The fill light area is displayed in a visual manner on the display screen so that the user or photographer can intuitively see the effect of the fill light.

[0093] Specifically, step S5 specifically includes the following steps:

[0094] S501: Reading a fill light color temperature value and a fill light intensity value of each fill light image in a plurality of fill light images.

[0095] In this embodiment, a plurality of pre-stored fill light images are first read, and the fill light color temperature value and fill light intensity value of each fill light image are obtained. These values ​​are usually stored in the image file as part of the image metadata.

[0096] S502: deriving a first score corresponding to the fill light color temperature value and a second score corresponding to the fill light intensity value by calculating the difference between the fill light color temperature value and the fill light intensity value of each fill light image and the color temperature value and the intensity value of the corresponding current shooting environment.

[0097] In this embodiment, the difference between the fill light color temperature value and fill light intensity value of each fill light image and the color temperature value and light intensity value of the current shooting environment is calculated, and a first score (corresponding to the color temperature) and a second score (corresponding to the light intensity) are obtained based on these differences.

[0098] First score (color temperature score): calculate the absolute difference between the fill light color temperature value of the fill light image and the current ambient color temperature value, and convert it into a score through an attenuation function.

[0099] Second score (light intensity score): The absolute difference between the fill light intensity value of the fill light image and the current ambient light intensity value is also calculated and converted into a score through an attenuation function.

[0100] S503: Based on the first score and the second score, and in combination with the color temperature weight and the light intensity weight, a comprehensive score of each fill-light image is calculated, wherein the calculation formula of the comprehensive score is:

[0101] S = β·(ω L ·S L +ω C ·S C )

[0102] In the formula, S is the comprehensive score, S L is the second rating, S C is the first score and β is the brightness adaptation factor.

[0103] S504: Selecting a fill-light image with the highest comprehensive score from all pre-stored fill-light images as the best fill-light image.

[0104] In this embodiment, all pre-stored fill light images are traversed, their comprehensive scores are compared, and the fill light image with the highest comprehensive score is selected as the best fill light image. Then, this best fill light image is displayed in the fill light area of ​​the display screen to achieve fill light for the shooting environment.

[0105] The above method finds the fill light image with the highest comprehensive score through a simple comparison operation, and immediately applies it to the fill light area. In this way, the shooting environment can obtain the fill light effect that best suits the current light conditions, thereby improving the color reproduction and brightness uniformity of the captured image.

[0106] Specifically, the calculation formula of the brightness adaptability factor β is:

[0107]

[0108] In the formula, B i is the brightness value of each fill-light image, B e It is the brightness value of the current shooting environment.

[0109] In addition, an automatic image fill light adjustment method of the present application also includes:

[0110] After the best fill light image is displayed in the fill light area, the changes in the color temperature and light intensity values ​​of the shooting environment are continuously monitored. When the changes in the monitored color temperature and / or light intensity values ​​exceed the preset change threshold, the color temperature weight and light intensity weight are recalculated, and the best fill light image is reselected based on the new color temperature weight and light intensity weight to keep the fill light effect optimized.

[0111] In this embodiment, after the best fill-in-light image is displayed in the fill-in-light area, the system does not stop working, but continues to monitor the color temperature and light intensity of the current shooting environment through the ambient light sensor and the color temperature sensor. This monitoring is real-time to ensure that the system can quickly respond to changes in the environment.

[0112] The system will compare the monitored color temperature and light intensity values ​​with the values ​​used in the last weight calculation to calculate their changes. If the change in color temperature or light intensity (or a combination of the two) exceeds the preset change threshold, the system will consider that the ambient light has changed significantly and needs to readjust the fill light strategy.

[0113] When a significant change is detected, step S2 is re-executed, that is, based on the new color temperature value and light intensity value, the color temperature weight function and the light intensity weight function are used to calculate new color temperature weights and light intensity weights, respectively. These new weights will more accurately reflect the light characteristics of the current environment.

[0114] After the new weights are obtained, step S5 is performed again, that is, based on the new color temperature weights and light intensity weights, a new best fill light image is selected from the pre-stored fill light images. This selection process will take into account the fill light color temperature value, fill light intensity value and new weights of the fill light image to ensure that the selected fill light image is most suitable for the current ambient light conditions.

[0115] Finally, the fill light area on the display screen is updated and the new best fill light image is displayed in it. In this way, the shooting environment can continue to get the fill light effect that best suits the current light conditions, maintaining the color reproduction and brightness uniformity of the picture.

[0116] The working principle of an image automatic fill light adjustment method provided by the present invention is as follows:

[0117] First, the color temperature and light intensity values ​​of the current shooting environment are detected in real time. Based on these environmental parameters, the system calculates the color temperature weight and light intensity weight that can reflect the degree of deviation of the environmental color temperature and the change of light intensity through the color temperature weight function and the light intensity weight function. Then, the color temperature weight and light intensity weight are used in combination with the preset linear model to dynamically determine the optimal fill light area size to adapt to the fill light needs under different lighting conditions.

[0118] In the selection of fill light images, the fill light color temperature values ​​and fill light intensity values ​​of multiple pre-stored fill light images are read, and the difference between these values ​​and the current environmental parameters is calculated to assign a corresponding score to each fill light image. Furthermore, the brightness adaptability factor is also considered to evaluate the degree of match between the brightness of the fill light image and the brightness of the shooting environment. Based on the comprehensive consideration of color temperature weight, light intensity weight and brightness adaptability factor, the fill light image with the highest comprehensive score can be intelligently selected to ensure that the fill light effect is in line with the environmental characteristics and has the best visual effect.

[0119] In addition, this method also has the ability of dynamic adjustment. During the fill light process, it continuously monitors the changes in the color temperature and light intensity values ​​of the shooting environment. Once it is found that the change in these parameters exceeds the preset threshold, it will immediately start the process of recalculating the weights and selecting the fill light image to ensure that the fill light effect can be adjusted in real time with changes in environmental conditions and always maintain the optimal state. This dynamic adjustment mechanism greatly improves the accuracy and real-time performance of the fill light effect, providing users with a more professional and efficient shooting experience.

[0120] Embodiment 2

[0121] The present invention also provides an image automatic fill light adjustment system for executing the image automatic fill light adjustment method. Figure 2 As shown, the regulating system comprises:

[0122] The parameter acquisition module 100 is used to detect the parameters of the current shooting environment, wherein the parameters include a color temperature value and a light intensity value;

[0123] A weight calculation module 200 is used to calculate the color temperature weight and the light intensity weight respectively based on the color temperature value and the light intensity value through a color temperature weight function and a light intensity weight function;

[0124] The compensation size calculation module 300 is used to calculate the compensation area size through a preset linear model based on the color temperature weight and the light intensity weight to obtain the real-time area size;

[0125] An area setting module 400 is used to set a fill light area with a size equal to the size of the real-time area in the display screen;

[0126] The fill light module 500 is used to select the best fill light image from multiple pre-stored fill light images based on the color temperature weight and the light intensity weight, and display the best fill light image in the fill light area of ​​the display screen to achieve fill light for the shooting environment.

[0127] The present application is described with reference to flowcharts and / or block diagrams of methods, devices (systems) and computer program products according to embodiments of the present application. It should be understood that each process and / or box in the flowchart and / or block diagram, as well as the combination of processes and / or boxes in the flowchart and / or block diagram, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, a special-purpose computer, an embedded processor or other programmable data processing device to generate a machine, so that the instructions executed by the processor of the computer or other programmable data processing device generate instructions for implementing the processes in the flowchart and / or block diagram. Figure 1 A process or multiple processes and / or boxes Figure 1 A device that provides the functions specified in a block or multiple blocks.

[0128] Those skilled in the art can understand that all or part of the steps in the various methods of the above embodiments can be completed by instructing related hardware through a program, and the program can be stored in a computer-readable storage medium, and the storage medium includes a read-only memory (ROM), a random access memory (RAM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), a one-time programmable read-only memory (OTPROM), an electronically erasable rewritable read-only memory (EEPROM), a compact disc (CD-ROM) or other optical disc storage, magnetic disk storage, magnetic tape storage, or any other computer-readable medium that can be used to carry or store data.

[0129] It should also be noted that the terms "include", "comprises" or any other variations thereof are intended to cover non-exclusive inclusion, so that a process, method, commodity or device that includes a series of elements includes not only those elements, but also other elements that are not explicitly listed, or includes elements that are inherent to such process, method, commodity or device. In the absence of more restrictions, the elements defined by the sentence "comprises a ..." do not exclude the existence of other identical elements in the process, method, commodity or device that includes the elements.

Claims

1. A method for automatically adjusting image fill light, characterized in that: The adjustment method comprises the following steps: Detecting parameters of the current shooting environment, wherein the parameters include color temperature value and light intensity value; Based on the color temperature value and the light intensity value, the color temperature weight and the light intensity weight are calculated respectively by the color temperature weight function and the light intensity weight function; Based on the color temperature weight and light intensity weight, the compensation area size is calculated through a preset linear model to obtain the real-time area size; Setting a fill light area with a size equal to the size of the real-time area on the display screen; Selecting the best fill light image from a plurality of pre-stored fill light images based on the color temperature weight and the light intensity weight, and displaying the best fill light image in a fill light area of ​​a display screen to achieve fill light for the shooting environment; The color temperature weight and the light intensity weight are calculated based on the color temperature value and the light intensity value by using the color temperature weight function and the light intensity weight function respectively, including: The color temperature value is input into the color temperature weight function to calculate the color temperature weight, wherein the color temperature weight function The expression is: In the formula, is the color temperature value of the current shooting environment. is the neutral color temperature value, , , and is a constant, among which, and Used to control the speed at which the color temperature weight changes when the color temperature value deviates from the neutral value. and Used to determine the value of color temperature weight around neutral value; The light intensity value is input into the light intensity weight function to calculate the light intensity weight, wherein the light intensity weight function The expression is: In the formula, is the light intensity value of the current shooting environment. is the preset light intensity threshold, , and is a constant, and , and They are used to control the growth rate of the intensity weight when the light intensity value is less than the light intensity threshold, to determine the initial value of the intensity weight when the light intensity value is less than the light intensity threshold, and to determine the value of the intensity weight when the light intensity value is greater than or equal to the light intensity threshold.

2. The method for automatically adjusting image fill light according to claim 1, characterized in that: The method of calculating the compensation area size based on the color temperature weight and the light intensity weight through a preset linear model to obtain the real-time area size includes: Based on the color temperature weight and the light intensity weight, the size of the compensation area is calculated by a preset linear model, wherein the calculation formula of the size of the compensation area is: In the formula, is the light intensity weight, is the color temperature weight, is the compensation area size; The preset basic fill light area size is compensated by using the compensation area size to obtain the real-time area size, wherein the calculation formula of the real-time area size is: In the formula, is the real-time region size, It is the preset basic fill light area size.

3. The method for automatically adjusting image fill light according to claim 2, characterized in that: The step of setting a fill light area having a size equal to that of the real-time area in the display screen includes: According to the real-time area size, a fill light area matching the real-time area size is dynamically defined on the display screen.

4. The method for automatically adjusting image fill light according to claim 3, characterized in that: The method of selecting the best fill light image from a plurality of pre-stored fill light images based on the color temperature weight and the light intensity weight, and displaying the best fill light image in the fill light area of ​​the display screen, comprises: Reading a fill light color temperature value and a fill light intensity value of each fill light image in a plurality of fill light images; By calculating the difference between the fill light color temperature value and the fill light intensity value of each fill light image and the color temperature value and the intensity value of the corresponding current shooting environment, a first score corresponding to the fill light color temperature value and a second score corresponding to the fill light intensity value are obtained; Based on the first score and the second score, and in combination with the color temperature weight and the light intensity weight, a comprehensive score of each fill-light image is calculated, wherein the calculation formula of the comprehensive score is: In the formula, is a comprehensive rating. The second rating is It is the first rating. is the brightness adaptation factor; A fill-light image with the highest comprehensive score is selected from all pre-stored fill-light images as the best fill-light image.

5. The method for automatically adjusting image fill light according to claim 4, characterized in that: Brightness Adaptive Factor The calculation formula is: In the formula, is the brightness value of each fill light image, It is the brightness value of the current shooting environment.

6. The method for automatically adjusting image fill light according to claim 5, characterized in that: Also includes: After the best fill light image is displayed in the fill light area, the changes in the color temperature and light intensity values ​​of the shooting environment are continuously monitored. When the changes in the monitored color temperature and / or light intensity values ​​exceed the preset change threshold, the color temperature weight and light intensity weight are recalculated, and the best fill light image is reselected based on the new color temperature weight and light intensity weight to keep the fill light effect optimized.

7. An image automatic fill light adjustment system, used to execute an image automatic fill light adjustment method according to any one of claims 1 to 6, characterized in that: The regulating system comprises: A parameter acquisition module, used to detect parameters of the current shooting environment, wherein the parameters include color temperature value and light intensity value; A weight calculation module, used to calculate the color temperature weight and the light intensity weight respectively based on the color temperature value and the light intensity value through the color temperature weight function and the light intensity weight function; A compensation size calculation module is used to calculate the compensation area size based on the color temperature weight and the light intensity weight through a preset linear model to obtain the real-time area size; An area setting module, used for setting a fill light area of ​​a size equal to the size of the real-time area in the display screen; The fill light module is used to select the best fill light image from multiple pre-stored fill light images based on the color temperature weight and the light intensity weight, and display the best fill light image in the fill light area of ​​the display screen to achieve fill light for the shooting environment.

Citation Information

Patent Citations

  • Method and device of realizing screen light supplement, and mobile terminal

    CN106534706A

  • Light compensation method and device for shooting environment and computer-readable storage medium

    CN109005360A