CN114125306A - Light supplement method and device - Google Patents

Light supplement method and device Download PDF

Info

Publication number
CN114125306A
CN114125306A CN202111466544.3A CN202111466544A CN114125306A CN 114125306 A CN114125306 A CN 114125306A CN 202111466544 A CN202111466544 A CN 202111466544A CN 114125306 A CN114125306 A CN 114125306A
Authority
CN
China
Prior art keywords
parameter
light
value
saturation
light supplement
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202111466544.3A
Other languages
Chinese (zh)
Inventor
杨汝菁
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN202111466544.3A priority Critical patent/CN114125306A/en
Publication of CN114125306A publication Critical patent/CN114125306A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/60Control of cameras or camera modules
    • H04N23/63Control of cameras or camera modules by using electronic viewfinders
    • H04N23/631Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters
    • H04N23/632Graphical user interfaces [GUI] specially adapted for controlling image capture or setting capture parameters for displaying or modifying preview images prior to image capturing, e.g. variety of image resolutions or capturing parameters
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04MTELEPHONIC COMMUNICATION
    • H04M1/00Substation equipment, e.g. for use by subscribers
    • H04M1/72Mobile telephones; Cordless telephones, i.e. devices for establishing wireless links to base stations without route selection
    • H04M1/724User interfaces specially adapted for cordless or mobile telephones
    • H04M1/72403User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality
    • H04M1/7243User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages
    • H04M1/72439User interfaces specially adapted for cordless or mobile telephones with means for local support of applications that increase the functionality with interactive means for internal management of messages for image or video messaging
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/77Circuits for processing the brightness signal and the chrominance signal relative to each other, e.g. adjusting the phase of the brightness signal relative to the colour signal, correcting differential gain or differential phase

Abstract

The application discloses a light supplementing method and a light supplementing device, and belongs to the technical field of shooting. The light supplement method comprises the following steps: receiving a first input of a first position in a shooting preview interface under the condition that the electronic equipment displays the shooting preview interface; responding to the first input, and acquiring color information corresponding to the first position; determining a light supplement parameter according to the color information corresponding to the first position; and a light supplement module of the control electronic equipment performs light supplement based on the light supplement parameters.

Description

Light supplement method and device
Technical Field
The application belongs to the technical field of shooting, and particularly relates to a light supplementing method and a light supplementing device.
Background
As the camera function of the electronic device is gradually popularized, the requirements of people on the performance, effect and the like of the camera function are higher and higher.
In the related art, when a user uses a shooting function in different scenes, the problem of insufficient illumination is encountered, and therefore light supplement equipment is needed, for example, light supplement is performed through a light supplement lamp. However, in the related art, when light is supplemented by the light supplement lamp, only the brightness of a shot picture can be improved, and the light color temperature under different shooting scenes cannot be adapted, so that the light supplement effect is poor, and the shooting requirements of users cannot be met.
Disclosure of Invention
The embodiment of the application aims to provide a light supplementing method and a light supplementing device, and the problems that a light supplementing mode in the related technology cannot adapt to light color temperatures in different shooting scenes and the light supplementing effect is poor can be solved.
In a first aspect, an embodiment of the present application provides a light supplement method, where the method includes: receiving a first input of a first position in a shooting preview interface under the condition that the electronic equipment displays the shooting preview interface; responding to the first input, and acquiring color information corresponding to the first position; determining a light supplement parameter according to the color information corresponding to the first position; and a light supplement module of the control electronic equipment performs light supplement based on the light supplement parameters.
In a second aspect, an embodiment of the present application provides a light supplement device, where the device includes: the electronic equipment comprises a receiving module, a display module and a display module, wherein the receiving module is used for receiving first input of a first position in a shooting preview interface under the condition that the electronic equipment displays the shooting preview interface; the acquisition module is used for responding to the first input and acquiring color information corresponding to the first position; the determining module is used for determining a light supplement parameter according to the color information corresponding to the first position; and the control module is used for controlling the light supplementing module of the electronic equipment to supplement light based on the light supplementing parameters.
In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor, a memory, and a program or instructions stored on the memory and executable on the processor, where the program or instructions, when executed by the processor, implement the steps of the fill lighting method according to the first aspect.
In a fourth aspect, embodiments of the present application provide a readable storage medium, on which a program or instructions are stored, and when executed by a processor, the program or instructions implement the steps of the fill light method according to the first aspect.
In a fifth aspect, an embodiment of the present application provides a chip, where the chip includes a processor and a communication interface, where the communication interface is coupled to the processor, and the processor is configured to execute a program or instructions to implement the steps of the fill lighting method according to the first aspect.
In a sixth aspect, the present application provides a computer program product, which is stored in a storage medium and executed by at least one processor to implement the steps of the fill lighting method according to the first aspect.
In the embodiment of the application, the electronic device may receive a first input of a user to a first position in the shooting preview interface under the condition that the shooting preview interface is displayed, and may acquire color information corresponding to the first position in response to the first input. Based on this, the electronic device can determine the light supplement parameter according to the color information corresponding to the first position, and control the light supplement module in the electronic device to supplement light based on the light supplement parameter. Because the color information of the first position is decided by the light color temperature of the current shooting scene, the light supplementing parameter based on the color information adapted to the first position is used for supplementing light, so that the light supplementing effect is matched with the light color temperature of the current shooting environment, the light supplementing effect is effectively improved, and the shooting requirement of a user is met.
Drawings
Fig. 1 is a schematic flow chart of a light supplement method according to an embodiment of the present disclosure;
fig. 2 is a schematic diagram of a first example of a fill light interface provided in an embodiment of the present application;
fig. 3 is a second schematic flowchart of a light supplement method according to an embodiment of the present disclosure;
fig. 4 is a third schematic flowchart of a light supplement method according to an embodiment of the present disclosure;
fig. 5 is a schematic diagram of a second example of a fill light interface provided in an embodiment of the present application;
fig. 6 is a fourth schematic flowchart illustrating a light supplement method according to an embodiment of the present disclosure;
fig. 7 is a schematic diagram of a third example of a fill light interface provided in an embodiment of the present application;
fig. 8 is a schematic structural diagram of a light supplement device according to an embodiment of the present disclosure;
fig. 9 is a schematic structural diagram of an electronic device according to an embodiment of the present application;
fig. 10 is a schematic diagram of a hardware structure of an electronic device according to an embodiment of the present application.
Detailed Description
The technical solutions in the embodiments of the present application will be described clearly below with reference to the drawings in the embodiments of the present application, and it is obvious that the described embodiments are some, but not all, embodiments of the present application. All other embodiments that can be derived by one of ordinary skill in the art from the embodiments given herein are intended to be within the scope of the present disclosure.
The terms first, second and the like in the description and in the claims of the present application are used for distinguishing between similar elements and not necessarily for describing a particular sequential or chronological order. It will be appreciated that the data so used may be interchanged under appropriate circumstances such that embodiments of the application may be practiced in sequences other than those illustrated or described herein, and that the terms "first," "second," and the like are generally used herein in a generic sense and do not limit the number of terms, e.g., the first term can be one or more than one. In addition, "and/or" in the specification and claims means at least one of connected objects, a character "/" generally means that a preceding and succeeding related objects are in an "or" relationship.
As background art, when a user uses a shooting function in different scenes, the problem of insufficient lighting is encountered. For example, when a picture is taken in a dark and weak light environment or a complex light environment, the camera sensor needs to image by depending on the ambient light incident amount to achieve a clear imaging effect, and under such a light environment, the actual light often cannot meet the light incident amount requirement of clear imaging. Therefore, the light supplement lamp can be used to compensate the light required by the camera sensor in the related art.
However, in the related art, a light supplement lamp with a single color is usually used for light supplement, which only can improve the brightness of a shot picture and cannot adapt to color temperatures of light rays in different shooting scenes. For example, in a shooting scene such as a cafe with warm yellow light and a pub with colored light, a white fill light with a higher color temperature may have a larger difference from ambient light. Therefore, the light supplement mode in the related art has a poor light supplement effect, and cannot meet the shooting requirements of users.
In order to solve the problems in the related art, an embodiment of the present application provides a light supplement method, where an electronic device may receive a first input of a user to a first location in a shooting preview interface when the shooting preview interface is displayed, and may acquire color information corresponding to the first location in response to the first input. Based on this, the electronic device can determine the light supplement parameter according to the color information corresponding to the first position, and control the light supplement module in the electronic device to supplement light based on the light supplement parameter. Because the color information of the first position is decided by the light color temperature of the current shooting scene, the light supplementing parameter based on the color information adapted to the first position is used for supplementing light, so that the light supplementing effect is matched with the light color temperature of the current shooting environment, the light supplementing effect is effectively improved, the shooting requirement of a user is met, the problem that the light supplementing mode in the correlation technology cannot adapt to the light color temperature of different shooting scenes and the light supplementing effect is poor is solved.
The light supplement method provided by the embodiment of the present application is described in detail below with reference to the accompanying drawings through specific embodiments and application scenarios thereof.
Fig. 1 is a schematic flow chart of a light supplement method according to an embodiment of the present disclosure, where an execution main body of the light supplement method may be an electronic device, and the electronic device may include a light supplement module. The above-described execution body does not constitute a limitation of the present application.
As shown in fig. 1, the light supplement method provided in the embodiment of the present application may include steps 110 to 140.
Step 110, receiving a first input to a first position in a shooting preview interface under the condition that the electronic device displays the shooting preview interface.
The shooting preview interface can be a preview interface displayed by the electronic equipment in the shooting process of the shooting object, and the preview interface can comprise the shooting object, and the shooting object can be a person, an animal, a plant, a ornament and the like, and the shooting preview interface is not specifically limited in this application.
The first position may be any position selected by the user in the background portion of the shooting preview interface, and the first input may be a click input, a double-click input, a slide input, a long-press input, or a combination of at least two of the above inputs, etc. of the user at the first position, which is not limited in this application.
Illustratively, as shown in fig. 2, the first position may be a position 202 in the shooting preview interface 201, and the second input may be a long press input of the position 202 by the user.
It should be noted that colors presented at different positions in the same shooting preview interface may be different, so that a user may select a target color meeting an expectation from all colors displayed in a background portion of the shooting preview interface, where the position of the target color is the first position. Therefore, the electronic device can determine the light supplement parameter according to the target color, namely the color information corresponding to the first position, so that the light supplement module can feed back light close to the target color based on the light supplement parameter, and the light supplement effect is matched with the light color temperature of the current shooting environment.
Step 120, in response to the first input, obtaining color information corresponding to the first position.
And step 130, determining a light supplement parameter according to the color information corresponding to the first position.
And 140, controlling a light supplement module of the electronic equipment to supplement light based on the light supplement parameters.
Based on different light supplement parameters, different light supplement colors can be presented, so that the light supplement module is controlled to supplement light based on the light supplement parameters, and the light supplement module can present light similar to the target color corresponding to the first position.
In one example, where the photographic environment is a coffee shop with warm yellow light, the first location in the photographic preview interface may appear warm yellow. The electronic device can determine the light supplement parameter according to the color information of the warm yellow corresponding to the first position, and control the light supplement module, for example, a built-in light supplement lamp of the electronic device is controlled to supplement light to the shooting object based on the light supplement parameter, and the light supplement color fed back by the built-in light supplement lamp is the warm yellow.
According to the light supplement method provided by the embodiment of the application, under the condition that the shooting preview interface is displayed by the electronic equipment, the first input of a user to a first position in the shooting preview interface can be received, and the color information corresponding to the first position can be acquired in response to the first input. Based on this, the electronic device can determine the light supplement parameter according to the color information corresponding to the first position, and control the light supplement module in the electronic device to supplement light based on the light supplement parameter. Because the color information of the first position is decided by the light color temperature of the current shooting scene, the light supplementing parameter based on the color information adapted to the first position is used for supplementing light, so that the light supplementing effect is matched with the light color temperature of the current shooting environment, the light supplementing effect is effectively improved, and the shooting requirement of a user is met.
In some embodiments of the present application, the color information may include a first hue value, a first saturation value, and a first lightness value corresponding to the first position, and the fill-in parameter may include a hue parameter, a saturation parameter, and a lightness parameter.
Fig. 3 is a flowchart illustrating another light supplement method according to an embodiment of the present disclosure, where the step 130 determines a light supplement parameter according to color information corresponding to the first position, and may include steps 310 to 330 shown in fig. 3.
In step 310, the first color value is determined as a color parameter.
Before step 310, the electronic device may obtain, in response to a first input from a user to a first position in the shooting preview interface, a first hue value, a first saturation value and a first brightness value of the first position in the shooting preview interface, and obtain color information (i.e., HSB information) in response to the first input.
And 320, determining a saturation parameter according to the first saturation value and a first preset threshold value.
The range of the first saturation value may be [0, 100], and the first preset threshold may be set according to specific requirements, which is not specifically limited herein.
For example, the first preset threshold may be 40, 42, etc.
Step 330, determining a brightness parameter according to the first brightness value and a second preset threshold value.
The range of the first brightness value may be [0, 100], and the second preset threshold may be set according to specific requirements, which is not specifically limited herein.
It should be noted that the execution sequence of the steps 310 to 330 is only an example, the steps 320 and 330 may be before the step 310, or after the step 310, the step 320 may be before the step 330, or after the step 330, and the present application does not specifically limit the execution sequence of the steps 310, 320, and 330.
In the embodiment of the application, when the electronic device receives a first input of a user to a first position in the shooting preview interface, in response to the first input, a first hue value, a first saturation value and a first brightness value of a display color of the first position in the shooting preview interface can be acquired. Based on this, the electronic device may determine that the first color value is a color parameter, and flexibly adjust based on a preset threshold value on the basis of the first saturation value and the first brightness value to obtain a saturation parameter and a brightness parameter, and finally determine a light supplement parameter adapted to the current shooting environment light. When the light supplement lamp carries out light supplement according to the light supplement parameters, the light supplement color fed back out can be close to the light color temperature of the shooting environment, and the atmosphere light supplement requirements of users for shooting under dim light and complex light are met.
In one embodiment, step 320 may specifically include: determining that the saturation parameter is one half of a first preset threshold value under the condition that the first saturation value is smaller than or equal to the first preset threshold value; and under the condition that the first saturation value is larger than a first preset threshold value, determining that the saturation parameter is a difference value between the first saturation value and a first numerical value, wherein the first numerical value is one half of the first preset threshold value.
In one example, the first preset threshold S0 may be 40 and the first saturation value S1 may be 35. Since S1 < S0, the saturation parameter S2 may be one-half of 40, i.e., 20.
In another example, the first preset threshold S0 may be 40, the first value may be 20, and the first saturation value S1 may be 95. Since S1 > S0, the saturation parameter S2 may be the difference between 95 and 20, i.e., 75.
In this embodiment of the application, the electronic device determines that the saturation parameter is one half of a first preset threshold value when the first saturation value is less than or equal to the first preset threshold value, and determines that the saturation parameter is a difference value between the first saturation value and the one half of the first preset threshold value when the first saturation value is greater than the first preset threshold value. Therefore, the first saturation value can be flexibly adjusted according to the first preset threshold value, the saturation is properly reduced on the basis of the first saturation value, and the light supplement effect corresponding to the saturation parameter is ensured.
In one embodiment, step 330 may specifically include: determining the lightness parameter as the product of a second preset threshold value and a preset multiple under the condition that the first lightness value is greater than or equal to the second preset threshold value; and under the condition that the first brightness value is smaller than a second preset threshold value, determining the brightness parameter as the sum of the first brightness value and the second preset threshold value.
In one example, the second preset threshold B0 may be 50, the preset multiple may be 2, and the first brightness value B1 may be 95. Since B1 > B0, the lightness parameter B2 may be the product of B0 and a preset multiple, i.e., 100.
In another example, the second preset threshold B0 may be 50, the preset multiple may be 2, and the first brightness value B1 may be 45. Since B1 < B0, the lightness parameter B2 may be the sum of B0 and B1, i.e., 95.
In the embodiment of the application, the electronic device determines the lightness parameter to be the product of a second preset threshold and a preset multiple when the first lightness value is greater than or equal to the second preset threshold; and under the condition that the first brightness value is smaller than a second preset threshold value, determining the brightness parameter as the sum of the first brightness value and the second preset threshold value. Therefore, the first brightness value can be flexibly adjusted according to the second preset threshold value, the value of the brightness parameter in the light supplement parameter is ensured to be within a proper range, the phenomenon that the color of the light supplement lamp is too dark due to too low brightness can be avoided, the light supplement effect is ensured, and the light supplement requirement of a user is met.
Optionally, in one embodiment, the first preset threshold may range from 30 to 50, and the second preset threshold may range from 40 to 60.
In some embodiments of the present application, in order to further improve the light supplement effect, the shooting preview interface may include a first control.
In one embodiment, the fill-in parameter may include a brightness parameter, and the brightness parameter may be determined based on a brightness value of the shooting preview interface or a brightness value of a first position in the shooting preview interface.
Fig. 4 is a flowchart illustrating a further light supplement method according to an embodiment of the present disclosure, and as shown in fig. 4, after step 140, the method may further include steps 410 to 440.
At step 410, a second input to the first control is received.
The first control is used for triggering the electronic device to display the target information, and the second input may be click input, double-click input, slide input, long-press input, and the like of the user to the first control, which is not specifically limited herein.
In one example, as shown in fig. 5, the capture preview interface 501 may include a first control 502 and the second input may be a user click input to the first control 502.
And step 420, responding to the second input, and displaying the target information on the shooting preview interface.
The target information may include a fill-in light parameter and a second control, where the second control may be a control for adjusting the fill-in light parameter, and the fill-in light parameter may include a hue parameter, a saturation parameter, and a brightness parameter.
It should be noted that, since the fill-in light parameter may include a hue parameter, a saturation parameter, and a brightness parameter, the second control may include three sub-controls, and the three sub-controls are respectively used to adjust the hue parameter, the saturation parameter, and the brightness parameter.
In one example, the electronic device determines, according to the color information corresponding to the first position, a hue parameter, a saturation parameter, and a brightness parameter of the fill-in light parameters to be 210, 75, and 100, respectively. As shown in fig. 5, when the electronic device receives a user click input to the first control 502, a shooting preview interface 503 is displayed in response to the click input, and the shooting preview interface 503 may include target information. The target information may include the fill-in light parameter "210, 75, 100" and a second control 504, the second control 504 may include three sub-controls respectively used for adjusting the hue parameter, the saturation parameter, and the brightness parameter, and the user may adjust the fill-in light parameter "210, 75, 100" by sliding the three sub-controls.
Step 430, a third input to a second control in the target information is received.
The third input may be a click input, a long-press input, a sliding input, a dragging input of the second control by the user, or a combination of at least two of the above inputs, and the like, which is not specifically limited herein.
For example, as shown in fig. 5, the third input may include a long press input and a slide input by the user to a sub-control of the second control 504 that is used to adjust the hue parameter.
Step 440, responding to the third input, adjusting the light supplement parameter, and performing light supplement based on the adjusted light supplement parameter.
In one example, the electronic device determines, according to the color information corresponding to the first position, a hue parameter, a saturation parameter, and a brightness parameter of the fill-in light parameters to be 210, 75, and 100, respectively. The user may adjust the hue parameter to 220, the saturation parameter to 80, and the brightness parameter to 98 by sliding the second control. Therefore, the electronic device can control the fill-in light module, for example, control the fill-in light lamp to fill in light based on the fill-in light parameter "210, 75, 100".
In this embodiment of the application, after the electronic device controls the light supplement module to supplement light based on the light supplement parameter, if the light supplement effect does not meet the user expectation, the user may trigger the electronic device to display the light supplement parameter and the second control through the input to the first control. On this basis, the user can continue to adjust on the basis of the light filling parameter through operating the second control to make final light filling effect can reach user's expectation, promote the degree of freedom of light filling parameter adjustment.
In some embodiments of the present application, to simplify user operations, the capture preview interface may include at least one color chip.
Fig. 6 is a schematic flowchart of another light supplement method according to an embodiment of the present disclosure, and as shown in fig. 6, after step 140, the method may further include step 610 and step 620.
Step 610, a fourth input to a target color card of the at least one color card is received.
The fill-in light parameter associated with the color card may be determined based on the color information corresponding to the first position, and the fill-in light parameter may include a hue parameter, a saturation parameter, and a brightness parameter.
Each color card may be associated with a hue parameter, a saturation parameter, and a brightness parameter, where at least one of the hue parameter, the saturation parameter, and the brightness parameter associated with different color cards is different.
Illustratively, as shown in fig. 7, the shooting preview interface 701 may include a color chart 702, a color chart 703, and a color chart 704, wherein the hue parameter H, the saturation parameter S, and the lightness parameter B associated with the three color charts are all different.
In one embodiment, the color information corresponding to the first position may include a first hue value, a first saturation value, and a first lightness value, and the at least one color chip may include a first color chip and a second color chip. Prior to step 610, the method may further comprise: determining that the light supplement parameters associated with the first color card comprise a first color tone value, a first saturation value and a first brightness value; adjusting at least one of the first hue value, the first saturation value and the first lightness value based on a preset value; and determining a second color card according to the adjusted first color tone value, the adjusted first saturation value and the adjusted first brightness value.
Specifically, the preset value may include at least one, and the electronic device may add/subtract the preset value on the basis of at least one of the first color tone value, the first saturation value, and the first brightness value to obtain the fill light parameter associated with the second color card. The second color card may include at least one.
In one example, the first hue value, the first saturation value, and the first lightness value are 210, 95, and 95, respectively, then the hue parameter H, the saturation parameter S, and the lightness parameter B associated with the first color card may be determined to be 210, 95, and 95, respectively. The preset value may include 5 and 10, and optionally, the preset value 10 may be added to the first color value to obtain the hue parameter 220, the saturation parameter 95 and the lightness parameter 95 associated with the second color card a 1; a preset value of 5 may be added on the basis of the first color value and the first saturation value, respectively, to obtain a color parameter 215, a saturation parameter 100, and a brightness parameter 95 associated with the second color card a 2; the preset value of 5 may be reduced based on the first hue value, the first saturation value and the first lightness value, respectively, to obtain the hue parameter 205, the saturation parameter 90 and the lightness parameter 90 associated with the second color card a 3.
And step 620, responding to the fourth input, and performing supplementary lighting based on the supplementary lighting parameters associated with the target color card.
The fourth input may be a click input, a long-press input, a sliding input, a dragging input, and the like for selecting a target color chart from at least one color chart by a user, which is not specifically limited herein.
Illustratively, when the electronic device receives a long press input for selecting the color target 704 in fig. 7 by the user, the electronic device may perform light supplement based on the light supplement parameter H ═ 205, S ═ 90, and B ═ 90 associated with the color target 704 in response to the long press input.
In this embodiment, the shooting preview interface may include at least one color chip, and since the fill-in light parameter associated with the color chip is determined based on the color information of the first position, the color chip is closer to the display color of the first position in the shooting preview interface. If the effect based on the light supplement parameter light supplement does not meet the user expectation, the user can select a favorite target color card from all color cards, and the electronic equipment can supplement light based on the light supplement parameter associated with the target color card, so that the light supplement color of the light supplement lamp is matched with the target color card, the free adjustment of the light supplement color is realized, and the operation is simple and convenient. Meanwhile, the color card is closer to the display color of the first position in the shooting preview interface, so that the target color card selected from the color card cannot have too large difference with the color of the shooting environment light, and the light supplementing color is adaptive to the color of the shooting environment light when the light supplementing parameter associated with the target color card is used for supplementing light, so that the situation that the light supplementing color and the shooting environment light cannot enter the light supplementing device is avoided, the light supplementing effect is more natural, and the light supplementing experience of a user is better.
In some embodiments of the present application, the light supplement module may include at least one of a light supplement lamp and a display screen, the light supplement lamp and the display screen are located at the same side of the electronic device, and the step 140 controls the light supplement module of the electronic device to supplement light based on the light supplement parameter, which may include at least one of: controlling a preset display area of a display screen to perform screen light supplement according to light supplement parameters; and controlling the light supplement lamp to supplement light according to the light supplement parameters.
Optionally, in an embodiment, the preset display area may be any area of the display screen, and the electronic device may control any area of the display screen to flash and fill light on the screen based on the fill-light parameter.
In another embodiment, the preset display area may be a peripheral edge area of the display screen, and the electronic device may control the peripheral edge area of the display screen to display the light compensation ring based on the light compensation parameter, so as to implement screen light compensation.
In this application embodiment, the preset display area that electronic equipment can control the display screen carries out the screen light filling with the light filling parameter, and/or, control the light filling lamp and carry out the light filling with the light filling parameter, realize with the light colour temperature assorted light filling effect of current shooting environment. Meanwhile, the light supplement lamp can feed back various colors to meet the light supplement requirements of users under various ambient light, and the application range of the light supplement function under a shooting scene is expanded.
According to the light supplement method provided by the embodiment of the application, the execution main body can be a light supplement device. In the embodiment of the present application, a light supplement method performed by a light supplement device is taken as an example to describe the light supplement device provided in the embodiment of the present application. The light supplement device will be described in detail below.
Fig. 8 is a schematic structural diagram of a light supplement device provided in the present application.
As shown in fig. 8, an embodiment of the present disclosure provides a light supplement device 800, where the light supplement device 800 may be applied to an electronic device, and the light supplement device 800 includes: the device comprises a receiving module 810, an obtaining module 820, a determining module 830, a controlling module 840 and a light supplementing module 850.
The receiving module 810 is configured to receive a first input to a first position in a shooting preview interface when the electronic device displays the shooting preview interface; an obtaining module 820, configured to obtain color information corresponding to a first position in response to a first input; a determining module 830, configured to determine a light supplement parameter according to the color information corresponding to the first position; and a control module 840 for controlling the light supplement module 850 of the electronic device to supplement light based on the light supplement parameter.
According to the light supplementing device provided by the embodiment of the application, under the condition that the shooting preview interface is displayed by the electronic equipment, the first input of a user to a first position in the shooting preview interface can be received, and the color information corresponding to the first position can be acquired in response to the first input. Based on this, the electronic device can determine the light supplement parameter according to the color information corresponding to the first position, and control the light supplement module in the electronic device to supplement light based on the light supplement parameter. Because the color information of the first position is decided by the light color temperature of the current shooting scene, the light supplementing parameter based on the color information adapted to the first position is used for supplementing light, so that the light supplementing effect is matched with the light color temperature of the current shooting environment, the light supplementing effect is effectively improved, the shooting requirement of a user is met, the problem that the light supplementing mode in the correlation technology cannot adapt to the light color temperature of different shooting scenes and the light supplementing effect is poor is solved.
In some embodiments of the present application, the color information includes a first color value, a first saturation value, and a first brightness value corresponding to the first position, the fill-in light parameter includes a color parameter, a saturation parameter, and a brightness parameter, and the determining module 830 is specifically configured to: determining a first hue value as a hue parameter; determining a saturation parameter according to the first saturation value and a first preset threshold value; and determining the brightness parameter according to the first brightness value and a second preset threshold value.
In the embodiment of the application, when the electronic device receives a first input of a user to a first position in the shooting preview interface, in response to the first input, a first hue value, a first saturation value and a first brightness value of a display color of the first position in the shooting preview interface can be acquired. Based on this, the electronic device may determine that the first color value is a color parameter, and flexibly adjust based on a preset threshold value on the basis of the first saturation value and the first brightness value to obtain a saturation parameter and a brightness parameter, and finally determine a light supplement parameter adapted to the current shooting environment light. When the light supplement lamp carries out light supplement according to the light supplement parameters, the light supplement color fed back out can be close to the light color temperature of the shooting environment, and the atmosphere light supplement requirements of users for shooting under dim light and complex light are met.
In some embodiments of the present application, the determining module 830 is specifically configured to: determining that the saturation parameter is one half of a first preset threshold value under the condition that the first saturation value is smaller than or equal to the first preset threshold value; determining the saturation parameter as a difference value between the first saturation value and a first numerical value when the first saturation value is larger than a first preset threshold value, wherein the first numerical value is one half of the first preset threshold value; determining the lightness parameter as the product of a second preset threshold value and a preset multiple under the condition that the first lightness value is greater than or equal to the second preset threshold value; and under the condition that the first brightness value is smaller than a second preset threshold value, determining the brightness parameter as the sum of the first brightness value and the second preset threshold value.
In this embodiment of the application, the electronic device determines that the saturation parameter is one half of a first preset threshold value when the first saturation value is less than or equal to the first preset threshold value, and determines that the saturation parameter is a difference value between the first saturation value and the one half of the first preset threshold value when the first saturation value is greater than the first preset threshold value. Therefore, the first saturation value can be flexibly adjusted according to the first preset threshold value, the saturation is properly reduced on the basis of the first saturation value, and the light supplement effect corresponding to the saturation parameter is ensured. The electronic equipment determines the brightness parameter to be the product of a second preset threshold and a preset multiple under the condition that the first brightness value is greater than or equal to the second preset threshold; and under the condition that the first brightness value is smaller than a second preset threshold value, determining the brightness parameter as the sum of the first brightness value and the second preset threshold value. Therefore, the first brightness value can be flexibly adjusted according to the second preset threshold value, the value of the brightness parameter in the light supplement parameter is ensured to be within a proper range, the phenomenon that the color of the light supplement lamp is too dark due to too low brightness can be avoided, the light supplement effect is ensured, and the light supplement requirement of a user is met.
In some embodiments of the present application, the capture preview interface includes a first control, and the apparatus further includes: the receiving module 810 is further configured to receive a second input to the first control after controlling the light supplement module 850 to supplement light based on the light supplement parameter; the display module is used for responding to the second input and displaying target information on the shooting preview interface, wherein the target information comprises a light supplement parameter and a second control; a receiving module 810, further configured to receive a third input to the second control; the control module 840 is further configured to adjust a light supplement parameter in response to a third input, and perform light supplement based on the adjusted light supplement parameter; the fill-in light parameters include a hue parameter, a saturation parameter, and a brightness parameter.
In this embodiment of the application, after the electronic device controls the light supplement module to supplement light based on the light supplement parameter, if the light supplement effect does not meet the user expectation, the user may trigger the electronic device to display the light supplement parameter and the second control through the input to the first control. On this basis, the user can continue to adjust on the basis of the light filling parameter through operating the second control to make final light filling effect can reach user's expectation, promote the degree of freedom of light filling parameter adjustment.
In some embodiments of the present application, the capture preview interface includes at least one color chip, and the apparatus further comprises: the receiving module 810 is further configured to receive a fourth input to a target color card of the at least one color card after controlling the light supplementing module 850 to supplement light based on the light supplementing parameter; the control module 840 is further configured to perform light supplement based on the light supplement parameter associated with the target color card in response to a fourth input; the fill-in light parameters include a hue parameter, a saturation parameter, and a brightness parameter.
In this embodiment, the shooting preview interface may include at least one color chip, and since the fill-in light parameter associated with the color chip is determined based on the color information of the first position, the color chip is closer to the display color of the first position in the shooting preview interface. If the effect based on the light supplement parameter light supplement does not meet the user expectation, the user can select a favorite target color card from all color cards, and the electronic equipment can supplement light based on the light supplement parameter associated with the target color card, so that the light supplement color of the light supplement lamp is matched with the target color card, the free adjustment of the light supplement color is realized, and the operation is simple and convenient. Meanwhile, the color card is closer to the display color of the first position in the shooting preview interface, so that the target color card selected from the color card cannot have too large difference with the color of the shooting environment light, and the light supplementing color is adaptive to the color of the shooting environment light when the light supplementing parameter associated with the target color card is used for supplementing light, so that the situation that the light supplementing color and the shooting environment light cannot enter the light supplementing device is avoided, the light supplementing effect is more natural, and the light supplementing experience of a user is better.
In some embodiments of the present disclosure, the light supplement module 850 includes at least one of a light supplement lamp and a display screen, the light supplement lamp and the display screen are located on the same side of the electronic device, and the control module 840 is specifically configured to at least one of: controlling a preset display area of a display screen to perform screen light supplement according to light supplement parameters; and controlling the light supplement lamp to supplement light according to the light supplement parameters.
In this application embodiment, the preset display area that electronic equipment can control the display screen carries out the screen light filling with the light filling parameter, and/or, control the light filling lamp and carry out the light filling with the light filling parameter, realize with the light colour temperature assorted light filling effect of current shooting environment. Meanwhile, the light supplement lamp can feed back various colors to meet the light supplement requirements of users under various ambient light, and the application range of the light supplement function under a shooting scene is expanded.
The light supplement device provided in the embodiments of the present application can implement each process implemented by the electronic device in the method embodiments of fig. 1 to 7, and can achieve the same technical effect, and is not described herein again to avoid repetition.
The light supplement device in the embodiment of the present application may be an electronic device, or may be a component, an integrated circuit, or a chip in the electronic device. The electronic device may be a terminal, or may be a device other than a terminal. The electronic Device may be, for example, a Mobile phone, a tablet computer, a notebook computer, a palm top computer, a vehicle-mounted electronic Device, a Mobile Internet Device (MID), an Augmented Reality (AR)/Virtual Reality (VR) Device, a robot, a wearable Device, an ultra-Mobile personal computer (UMPC), a netbook or a Personal Digital Assistant (PDA), and the like, and may also be a server, a Network Attached Storage (NAS), a Personal Computer (PC), a Television (TV), a teller machine, a self-service machine, and the like, and the embodiments of the present application are not particularly limited.
The light supplement device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system (Android), an iOS operating system, or other possible operating systems, which is not specifically limited in the embodiments of the present application.
Optionally, as shown in fig. 9, an electronic device 900 is further provided in this embodiment of the present application, and includes a processor 901, a memory 902, and a program or an instruction stored in the memory 902 and executable on the processor 901, where the program or the instruction is executed by the processor 901 to implement each process of the foregoing light supplement method embodiment, and can achieve the same technical effect, and no further description is provided here to avoid repetition.
It should be noted that the electronic devices in the embodiments of the present application include the mobile electronic devices and the non-mobile electronic devices described above.
Fig. 10 is a schematic hardware structure diagram of another electronic device according to an embodiment of the present application.
The electronic device 1000 includes, but is not limited to: a radio frequency unit 1001, a network module 1002, an audio output unit 1003, an input unit 1004, a sensor 1005, a display unit 1006, a user input unit 1007, an interface unit 1008, a memory 1009, and a processor 1010.
It should be noted that the electronic device 1000 may include a light supplement module, and the light supplement module is used for supplementing light.
Those skilled in the art will appreciate that the electronic device 1000 may further comprise a power source (e.g., a battery) for supplying power to various components, and the power source may be logically connected to the processor 1010 through a power management system, so as to implement functions of managing charging, discharging, and power consumption through the power management system. The electronic device structure shown in fig. 10 does not constitute a limitation of the electronic device, and the electronic device may include more or less components than those shown, or combine some components, or arrange different components, and thus, the description is not repeated here.
The user input unit 1007 is used for receiving a first input to a first position in the shooting preview interface when the electronic device displays the shooting preview interface; a processor 1010, configured to obtain color information corresponding to a first position in response to a first input; the processor 1010 is configured to determine a fill-in parameter according to the color information corresponding to the first position; and a processor 1010, configured to control a light supplement module of the electronic device to supplement light based on the light supplement parameter.
In the embodiment of the application, the electronic device may receive a first input of a user to a first position in the shooting preview interface under the condition that the shooting preview interface is displayed, and may acquire color information corresponding to the first position in response to the first input. Based on this, the electronic device can determine the light supplement parameter according to the color information corresponding to the first position, and control the light supplement module in the electronic device to supplement light based on the light supplement parameter. Because the color information of the first position is decided by the light color temperature of the current shooting scene, the light supplementing parameter based on the color information adapted to the first position is used for supplementing light, so that the light supplementing effect is matched with the light color temperature of the current shooting environment, the light supplementing effect is effectively improved, the shooting requirement of a user is met, the problem that the light supplementing mode in the correlation technology cannot adapt to the light color temperature of different shooting scenes and the light supplementing effect is poor is solved.
In some embodiments of the present application, the color information includes a first color value, a first saturation value, and a first brightness value corresponding to the first position, the fill-in light parameter includes a color parameter, a saturation parameter, and a brightness parameter, and the processor 1010 is specifically configured to: determining a first hue value as a hue parameter; determining a saturation parameter according to the first saturation value and a first preset threshold value; and determining the brightness parameter according to the first brightness value and a second preset threshold value.
In the embodiment of the application, when the electronic device receives a first input of a user to a first position in the shooting preview interface, in response to the first input, a first hue value, a first saturation value and a first brightness value of a display color of the first position in the shooting preview interface can be acquired. Based on this, the electronic device may determine that the first color value is a color parameter, and flexibly adjust based on a preset threshold value on the basis of the first saturation value and the first brightness value to obtain a saturation parameter and a brightness parameter, and finally determine a light supplement parameter adapted to the current shooting environment light. When the light supplement lamp carries out light supplement according to the light supplement parameters, the light supplement color fed back out can be close to the light color temperature of the shooting environment, and the atmosphere light supplement requirements of users for shooting under dim light and complex light are met.
In some embodiments of the present application, the processor 1010 is specifically configured to: determining that the saturation parameter is one half of a first preset threshold value under the condition that the first saturation value is smaller than or equal to the first preset threshold value; determining the saturation parameter as a difference value between the first saturation value and a first numerical value when the first saturation value is larger than a first preset threshold value, wherein the first numerical value is one half of the first preset threshold value; determining the lightness parameter as the product of a second preset threshold value and a preset multiple under the condition that the first lightness value is greater than or equal to the second preset threshold value; and under the condition that the first brightness value is smaller than a second preset threshold value, determining the brightness parameter as the sum of the first brightness value and the second preset threshold value.
In this embodiment of the application, the electronic device determines that the saturation parameter is one half of a first preset threshold value when the first saturation value is less than or equal to the first preset threshold value, and determines that the saturation parameter is a difference value between the first saturation value and the one half of the first preset threshold value when the first saturation value is greater than the first preset threshold value. Therefore, the first saturation value can be flexibly adjusted according to the first preset threshold value, the saturation is properly reduced on the basis of the first saturation value, and the light supplement effect corresponding to the saturation parameter is ensured. The electronic equipment determines the brightness parameter to be the product of a second preset threshold and a preset multiple under the condition that the first brightness value is greater than or equal to the second preset threshold; and under the condition that the first brightness value is smaller than a second preset threshold value, determining the brightness parameter as the sum of the first brightness value and the second preset threshold value. Therefore, the first brightness value can be flexibly adjusted according to the second preset threshold value, the value of the brightness parameter in the light supplement parameter is ensured to be within a proper range, the phenomenon that the color of the light supplement lamp is too dark due to too low brightness can be avoided, the light supplement effect is ensured, and the light supplement requirement of a user is met.
In some embodiments of the present application, the shooting preview interface includes a first control, and the user input unit 1007 is further configured to receive a second input to the first control after controlling the supplementary lighting module to perform supplementary lighting based on the supplementary lighting parameter; the display module is used for responding to the second input and displaying target information on the shooting preview interface, wherein the target information comprises a light supplement parameter and a second control; a user input unit 1007, further configured to receive a third input to the second control; the processor 1010 is further configured to adjust a fill-in light parameter in response to a third input, and perform fill-in light based on the adjusted fill-in light parameter; the fill-in light parameters include a hue parameter, a saturation parameter, and a brightness parameter.
In this embodiment of the application, after the electronic device controls the light supplement module to supplement light based on the light supplement parameter, if the light supplement effect does not meet the user expectation, the user may trigger the electronic device to display the light supplement parameter and the second control through the input to the first control. On this basis, the user can continue to adjust on the basis of the light filling parameter through operating the second control to make final light filling effect can reach user's expectation, promote the degree of freedom of light filling parameter adjustment.
In some embodiments of the present application, the shooting preview interface includes at least one color chip, and the user input unit 1007 is further configured to receive a fourth input to a target color chip in the at least one color chip after controlling the light supplement module to supplement light based on the light supplement parameter; the processor 1010 is further configured to perform light supplement based on the light supplement parameter associated with the target color card in response to a fourth input; the fill-in light parameters include a hue parameter, a saturation parameter, and a brightness parameter.
In this embodiment, the shooting preview interface may include at least one color chip, and since the fill-in light parameter associated with the color chip is determined based on the color information of the first position, the color chip is closer to the display color of the first position in the shooting preview interface. If the effect based on the light supplement parameter light supplement does not meet the user expectation, the user can select a favorite target color card from all color cards, and the electronic equipment can supplement light based on the light supplement parameter associated with the target color card, so that the light supplement color of the light supplement lamp is matched with the target color card, the free adjustment of the light supplement color is realized, and the operation is simple and convenient. Meanwhile, the color card is closer to the display color of the first position in the shooting preview interface, so that the target color card selected from the color card cannot have too large difference with the color of the shooting environment light, and the light supplementing color is adaptive to the color of the shooting environment light when the light supplementing parameter associated with the target color card is used for supplementing light, so that the situation that the light supplementing color and the shooting environment light cannot enter the light supplementing device is avoided, the light supplementing effect is more natural, and the light supplementing experience of a user is better.
In some embodiments of the present application, the light supplement module includes at least one of a light supplement lamp and a display screen, the light supplement lamp and the display screen are located on the same side of the electronic device, and the processor 1010 is specifically configured to at least one of: controlling a preset display area of a display screen to perform screen light supplement according to light supplement parameters; and controlling the light supplement lamp to supplement light according to the light supplement parameters.
In this application embodiment, the preset display area that electronic equipment can control the display screen carries out the screen light filling with the light filling parameter, and/or, control the light filling lamp and carry out the light filling with the light filling parameter, realize with the light colour temperature assorted light filling effect of current shooting environment. Meanwhile, the light supplement lamp can feed back various colors to meet the light supplement requirements of users under various ambient light, and the application range of the light supplement function under a shooting scene is expanded.
It should be understood that in the embodiment of the present application, the input Unit 1004 may include a Graphics Processing Unit (GPU) 10041 and a microphone 10042, and the Graphics Processing Unit 10041 processes image data of still pictures or videos obtained by an image capturing device (such as a camera) in a video capturing mode or an image capturing mode. The display unit 1006 may include a display panel 10061, and the display panel 10061 may be configured in the form of a liquid crystal display, an organic light emitting diode, or the like. The user input unit 1007 includes at least one of a touch panel 10071 and other input devices 10072. The touch panel 10071 is also referred to as a touch screen. The touch panel 10071 may include two parts, a touch detection device and a touch controller. Other input devices 10072 may include, but are not limited to, a physical keyboard, function keys (e.g., volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described in detail herein.
The memory 1009 may be used to store software programs as well as various data. The memory 1009 may mainly include a first storage area storing a program or an instruction and a second storage area storing data, wherein the first storage area may store an operating system, an application program or an instruction (such as a sound playing function, an image playing function, and the like) required for at least one function, and the like. Further, the memory 1009 may include volatile memory or nonvolatile memory, or the memory 1009 may include both volatile and nonvolatile memory. The non-volatile Memory may be a Read-Only Memory (ROM), a Programmable ROM (PROM), an Erasable PROM (EPROM), an Electrically Erasable PROM (EEPROM), or a flash Memory. The volatile Memory may be a Random Access Memory (RAM), a Static Random Access Memory (Static RAM, SRAM), a Dynamic Random Access Memory (Dynamic RAM, DRAM), a Synchronous Dynamic Random Access Memory (Synchronous DRAM, SDRAM), a Double Data Rate Synchronous Dynamic Random Access Memory (Double Data Rate SDRAM, ddr SDRAM), an Enhanced Synchronous SDRAM (ESDRAM), a Synchronous Link DRAM (SLDRAM), and a Direct Memory bus RAM (DRRAM). The memory 1009 in the embodiments of the present application includes, but is not limited to, these and any other suitable types of memory.
Processor 1010 may include one or more processing units; optionally, the processor 1010 integrates an application processor, which primarily handles operations involving the operating system, user interface, and applications, and a modem processor, which primarily handles wireless communication signals, such as a baseband processor. It will be appreciated that the modem processor described above may not be integrated into processor 1010.
The embodiment of the present application further provides a readable storage medium, where a program or an instruction is stored on the readable storage medium, and when the program or the instruction is executed by a processor, the processes of the embodiment of the light supplement method are implemented, and the same technical effect can be achieved, and in order to avoid repetition, details are not repeated here.
The processor is the processor in the electronic device in the above embodiment. Readable storage media, including computer-readable storage media, examples of which include non-transitory computer-readable storage media, such as computer read-only memory (ROM), random-access memory (RAM), magnetic or optical disks, and so forth.
The embodiment of the present application further provides a chip, where the chip includes a processor and a communication interface, the communication interface is coupled to the processor, and the processor is configured to execute a program or an instruction to implement each process of the embodiment of the light supplement method, and can achieve the same technical effect, and in order to avoid repetition, the description is omitted here.
It should be understood that the chips mentioned in the embodiments of the present application may also be referred to as system-on-chip, system-on-chip or system-on-chip, etc.
The present application provides a computer program product, where the program product is stored in a storage medium, and the program product is executed by at least one processor to implement the processes of the foregoing embodiment of the light supplement method, and can achieve the same technical effects, and in order to avoid repetition, details are not repeated here.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element. Further, it should be noted that the scope of the methods and apparatus of the embodiments of the present application is not limited to performing the functions in the order illustrated or discussed, but may include performing the functions in a substantially simultaneous manner or in a reverse order based on the functions involved, e.g., the methods described may be performed in an order different than that described, and various steps may be added, omitted, or combined. In addition, features described with reference to certain examples may be combined in other examples.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present application may be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, or a network device) to execute the method according to the embodiments of the present application.
While the present embodiments have been described with reference to the accompanying drawings, it is to be understood that the invention is not limited to the precise embodiments described above, which are meant to be illustrative and not restrictive, and that various changes may be made therein by those skilled in the art without departing from the spirit and scope of the invention as defined by the appended claims.

Claims (10)

1. A method for supplementing light, the method comprising:
under the condition that the electronic equipment displays a shooting preview interface, receiving a first input of a first position in the shooting preview interface;
responding to the first input, and acquiring color information corresponding to the first position;
determining a light supplement parameter according to the color information corresponding to the first position;
and controlling a light supplement module of the electronic equipment to supplement light based on the light supplement parameters.
2. The method of claim 1, wherein the color information comprises a first color tone value, a first saturation value, and a first brightness value corresponding to the first position, the fill-in parameter comprises a color tone parameter, a saturation parameter, and a brightness parameter, and the determining the fill-in parameter according to the color information corresponding to the first position comprises:
determining the first hue value as the hue parameter;
determining the saturation parameter according to the first saturation value and a first preset threshold value;
and determining the brightness parameter according to the first brightness value and a second preset threshold value.
3. The method of claim 2, wherein determining the saturation parameter based on the first saturation value and a first preset threshold comprises:
determining that the saturation parameter is one half of the first preset threshold value when the first saturation value is less than or equal to the first preset threshold value;
determining the saturation parameter as a difference value between the first saturation value and a first numerical value when the first saturation value is greater than the first preset threshold, wherein the first numerical value is one half of the first preset threshold;
the determining the brightness parameter according to the first brightness value and a second preset threshold value comprises:
determining the lightness parameter as a product of a second preset threshold value and a preset multiple under the condition that the first lightness value is greater than or equal to the second preset threshold value;
determining the brightness parameter to be a sum of the first brightness value and the second preset threshold value if the first brightness value is smaller than the second preset threshold value.
4. The method according to any one of claims 1 to 3, wherein the shooting preview interface includes a first control, and after the controlling the fill-in light module to fill in light based on the fill-in light parameter, the method further includes:
receiving a second input to the first control;
responding to the second input, and displaying target information on the shooting preview interface, wherein the target information comprises the supplementary lighting parameter and a second control;
receiving a third input to the second control;
responding to the third input, adjusting the light supplement parameter, and performing light supplement based on the adjusted light supplement parameter;
the fill-in light parameters comprise hue parameters, saturation parameters and brightness parameters.
5. The method according to any one of claims 1 to 3, wherein the shooting preview interface includes at least one color chip, and after the controlling a fill-in module of the electronic device fills in light based on the fill-in parameter, the method further includes:
receiving a fourth input to a target color card of the at least one color card, wherein a fill-in light parameter associated with the color card is determined based on color information corresponding to the first position;
in response to the fourth input, performing supplementary lighting based on supplementary lighting parameters associated with the target color card;
the fill-in light parameters comprise hue parameters, saturation parameters and brightness parameters.
6. A light supplement apparatus, the apparatus comprising:
the electronic equipment comprises a receiving module, a judging module and a display module, wherein the receiving module is used for receiving a first input of a first position in a shooting preview interface under the condition that the electronic equipment displays the shooting preview interface;
the acquisition module is used for responding to the first input and acquiring color information corresponding to the first position;
the determining module is used for determining a light supplement parameter according to the color information corresponding to the first position;
and the control module is used for controlling the light supplementing module of the electronic equipment to supplement light based on the light supplementing parameters.
7. The apparatus of claim 6, wherein the color information comprises a first hue value, a first saturation value, and a first lightness value corresponding to the first position, wherein the fill-in light parameter comprises a hue parameter, a saturation parameter, and a lightness parameter, and wherein the determining module is specifically configured to:
determining the first hue value as the hue parameter;
determining the saturation parameter according to the first saturation value and a first preset threshold value;
and determining the brightness parameter according to the first brightness value and a second preset threshold value.
8. The apparatus of claim 7, wherein the determining module is specifically configured to:
determining that the saturation parameter is one half of the first preset threshold value when the first saturation value is less than or equal to the first preset threshold value;
determining the saturation parameter as a difference value between the first saturation value and a first numerical value when the first saturation value is greater than the first preset threshold, wherein the first numerical value is one half of the first preset threshold;
determining the lightness parameter as a product of a second preset threshold value and a preset multiple under the condition that the first lightness value is greater than or equal to the second preset threshold value;
determining the brightness parameter to be a sum of the first brightness value and the second preset threshold value if the first brightness value is smaller than the second preset threshold value.
9. The apparatus of any of claims 6-8, wherein the capture preview interface comprises a first control, the apparatus further comprising:
the receiving module is further configured to receive a second input to the first control after the light supplement module that controls the electronic device performs light supplement based on the light supplement parameter;
the display module is used for responding to the second input and displaying target information on the shooting preview interface, wherein the target information comprises the supplementary lighting parameter and a second control;
the receiving module is further configured to receive a third input to the second control;
the control module is further configured to adjust the light supplement parameter in response to the third input, and perform light supplement based on the adjusted light supplement parameter;
the fill-in light parameters comprise hue parameters, saturation parameters and brightness parameters.
10. The apparatus of any of claims 6-8, wherein the capture preview interface comprises at least one color chip, the apparatus further comprising:
the receiving module is further configured to receive a fourth input to a target color card in the at least one color card after the supplementary lighting module is controlled to perform supplementary lighting based on the supplementary lighting parameter;
the control module is further configured to perform light supplement based on the light supplement parameter associated with the target color card in response to the fourth input;
the fill-in light parameters comprise hue parameters, saturation parameters and brightness parameters.
CN202111466544.3A 2021-11-30 2021-11-30 Light supplement method and device Pending CN114125306A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202111466544.3A CN114125306A (en) 2021-11-30 2021-11-30 Light supplement method and device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202111466544.3A CN114125306A (en) 2021-11-30 2021-11-30 Light supplement method and device

Publications (1)

Publication Number Publication Date
CN114125306A true CN114125306A (en) 2022-03-01

Family

ID=80366165

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202111466544.3A Pending CN114125306A (en) 2021-11-30 2021-11-30 Light supplement method and device

Country Status (1)

Country Link
CN (1) CN114125306A (en)

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104580922A (en) * 2014-12-02 2015-04-29 广东欧珀移动通信有限公司 Control method and device for supplemental lighting during shooting
CN104853107A (en) * 2014-02-19 2015-08-19 联想(北京)有限公司 Information processing method and electronic device
CN106954027A (en) * 2017-02-14 2017-07-14 维沃移动通信有限公司 The method and mobile terminal of a kind of image taking
CN108900780A (en) * 2018-06-28 2018-11-27 努比亚技术有限公司 A kind of screen light compensation method, mobile terminal and storage medium
CN112243582A (en) * 2019-08-30 2021-01-19 深圳市大疆创新科技有限公司 Light supplement control method, device and system and storage medium
CN112312019A (en) * 2020-10-30 2021-02-02 维沃移动通信有限公司 Light supplementing method and device and electronic equipment

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104853107A (en) * 2014-02-19 2015-08-19 联想(北京)有限公司 Information processing method and electronic device
CN104580922A (en) * 2014-12-02 2015-04-29 广东欧珀移动通信有限公司 Control method and device for supplemental lighting during shooting
CN106954027A (en) * 2017-02-14 2017-07-14 维沃移动通信有限公司 The method and mobile terminal of a kind of image taking
CN108900780A (en) * 2018-06-28 2018-11-27 努比亚技术有限公司 A kind of screen light compensation method, mobile terminal and storage medium
CN112243582A (en) * 2019-08-30 2021-01-19 深圳市大疆创新科技有限公司 Light supplement control method, device and system and storage medium
CN112312019A (en) * 2020-10-30 2021-02-02 维沃移动通信有限公司 Light supplementing method and device and electronic equipment

Similar Documents

Publication Publication Date Title
US20210343070A1 (en) Method, apparatus and electronic device for processing image
CN111654635A (en) Shooting parameter adjusting method and device and electronic equipment
CN112702531B (en) Shooting method and device and electronic equipment
CN111901519B (en) Screen light supplement method and device and electronic equipment
CN112541955A (en) Image processing method, device and equipment
CN113596574A (en) Video processing method, video processing apparatus, electronic device, and readable storage medium
WO2023125160A1 (en) Image processing method and apparatus, electronic device, and readable storage medium
CN112419218A (en) Image processing method and device and electronic equipment
CN111968605A (en) Exposure adjusting method and device
CN113473008B (en) Shooting method and device
CN114125306A (en) Light supplement method and device
CN113962840A (en) Image processing method, image processing device, electronic equipment and storage medium
CN112312021B (en) Shooting parameter adjusting method and device
CN112672056A (en) Image processing method and device
CN113489901B (en) Shooting method and device thereof
CN113923367B (en) Shooting method and shooting device
CN112399091B (en) Image processing method and device and electronic equipment
CN114302057A (en) Image parameter determination method and device, electronic equipment and storage medium
CN114242023A (en) Display screen brightness adjusting method, display screen brightness adjusting device and electronic equipment
CN113949816A (en) Shooting method and device and electronic equipment
CN114979479A (en) Shooting method and device thereof
CN115589526A (en) Shooting method and device
CN115220683A (en) Audio output method and device, electronic equipment and readable storage medium
CN115209056A (en) Shooting method, shooting device, electronic equipment and storage medium
CN116095510A (en) Shooting method and device thereof

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination