WO2021160065A1 - 拍摄补光方法、电子设备及介质 - Google Patents

拍摄补光方法、电子设备及介质 Download PDF

Info

Publication number
WO2021160065A1
WO2021160065A1 PCT/CN2021/075782 CN2021075782W WO2021160065A1 WO 2021160065 A1 WO2021160065 A1 WO 2021160065A1 CN 2021075782 W CN2021075782 W CN 2021075782W WO 2021160065 A1 WO2021160065 A1 WO 2021160065A1
Authority
WO
WIPO (PCT)
Prior art keywords
display
light
target
electronic device
layer
Prior art date
Application number
PCT/CN2021/075782
Other languages
English (en)
French (fr)
Inventor
王鹏泰
Original Assignee
维沃移动通信有限公司
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 维沃移动通信有限公司 filed Critical 维沃移动通信有限公司
Publication of WO2021160065A1 publication Critical patent/WO2021160065A1/zh

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/74Circuitry for compensating brightness variation in the scene by influencing the scene brightness using illuminating means
    • 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
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/71Circuitry for evaluating the brightness variation
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • H04N23/84Camera processing pipelines; Components thereof for processing colour signals
    • H04N23/88Camera processing pipelines; Components thereof for processing colour signals for colour balance, e.g. white-balance circuits or colour temperature control

Definitions

  • the present invention relates to the field of communication technology, and in particular to a method for photographing and supplementing light, electronic equipment and media.
  • the embodiments of the present invention provide a method for photographing supplementary light, an electronic device, and a medium, which can solve the problem of poor image display effect.
  • the present invention is implemented as follows:
  • an embodiment of the present invention provides a method for photographing and supplementing light, which is applied to an electronic device, and the method includes:
  • an electronic device including:
  • the adjustment module is used to adjust the display parameters of the light supplement layer.
  • an embodiment of the present invention also provides an electronic device, including: a memory, a processor, and a computer program stored on the memory and running on the processor, and the processor executes the computer program When realizing the steps in the above-mentioned shooting supplementary light method.
  • an embodiment of the present invention also provides a computer-readable storage medium having a computer program stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps in the above method for shooting and supplementing light are implemented.
  • the method for photographing and supplementing light includes: displaying a photographing preview interface, where the photographing preview interface includes a light-filling layer; and adjusting display parameters of the light-filling layer.
  • the photographing preview interface includes a light-filling layer, and the light from the light-filling layer can be irradiated to the photographing object, the display brightness of the photographing object in the image obtained by the camera is enhanced, and the display effect of the image is enhanced.
  • FIG. 1 is one of the flowcharts of a method for photographing and supplementing light provided by an embodiment of the present invention
  • FIG 2 is one of the schematic diagrams of the shooting preview interface of the electronic device provided by the embodiment of the present invention.
  • FIG. 3 is a second schematic diagram of a shooting preview interface of an electronic device according to an embodiment of the present invention.
  • FIG. 4 is a second flowchart of a method for photographing and supplementing light according to an embodiment of the present invention.
  • FIG. 5 is a third schematic diagram of a shooting preview interface of an electronic device according to an embodiment of the present invention.
  • FIG. 6 is a fourth schematic diagram of a shooting preview interface of an electronic device according to an embodiment of the present invention.
  • FIG. 7 is the third flowchart of a method for shooting supplementary light provided by an embodiment of the present invention.
  • FIG. 8 is a fifth schematic diagram of a shooting preview interface of an electronic device provided by an embodiment of the present invention.
  • FIG. 9 is a sixth schematic diagram of a shooting preview interface of an electronic device provided by an embodiment of the present invention.
  • FIG. 10 is a seventh schematic diagram of a shooting preview interface of an electronic device according to an embodiment of the present invention.
  • FIG. 11 is an eighth schematic diagram of a shooting preview interface of an electronic device according to an embodiment of the present invention.
  • FIG. 12 is a ninth schematic diagram of a shooting preview interface of an electronic device according to an embodiment of the present invention.
  • FIG. 13 is one of structural schematic diagrams of an electronic device provided by an embodiment of the present invention.
  • FIG. 14 is a second structural diagram of an electronic device provided by an embodiment of the present invention.
  • FIG. 1 is a flowchart of a method for photographing and supplementing light according to an embodiment of the present invention.
  • the method provided in this embodiment can be applied to an electronic device. As shown in FIG. 1, it includes the following steps:
  • Step 101 Display a shooting preview interface, where the shooting preview interface includes a light supplement layer.
  • the shooting preview interface can be obtained through the camera of the electronic device, and the shooting preview interface is generally displayed on the display screen of the electronic device, and the aforementioned camera and the aforementioned display screen can be located on the same side.
  • the preview image in the shooting preview interface can be collected by the camera on the electronic device, and the camera can be the front camera or the rear camera of the electronic device, that is, the preview image in the shooting preview interface can be obtained through the front camera.
  • the image collected by the camera may also be the image collected by the rear camera.
  • the electronic device in the embodiment of the present invention may have a multi-sided display screen (when it has a two-sided screen, the electronic device may be referred to as a double-sided screen electronic device), and each display screen may be correspondingly configured with a camera .
  • Step 102 Adjust the display parameters of the light supplement layer.
  • the shooting preview interface includes a light supplement layer
  • the display parameters of the light supplement layer such as transparency, brightness, or display color, etc.
  • the light supplement layer can be adjusted to illuminate the subject (the subject can be the electronic device Objects in the environment, for example, can be located in the direction of the screen displaying the shooting preview interface) of the light intensity or color temperature, so as to achieve the purpose of supplementing the light of the shooting object, so that the preview image obtained by the electronic device through the camera can be adjusted
  • the brightness of the subject (such as a human face) to enhance the display effect of the preview image.
  • the preview image can be an image displayed on the shooting preview interface, for example: the shooting preview interface includes a preview layer, and the fill light layer can be superimposed and displayed on the preview layer, then the preview image can be displayed on the preview layer Image.
  • the specific types of the light-filling layer and the preview layer are not limited here, for example: the light-filling layer and the preview layer may be two layers respectively, or the light-filling layer and the preview layer may be two windows respectively.
  • the preview image is usually displayed on the shooting preview interface.
  • the preview image is usually a black image;
  • the light fill layer can usually be white or other colors (generally not black)
  • the light emitted by the light fill layer can illuminate the subject (such as the user's face), thereby enhancing the shooting in the preview image
  • the display brightness of the object that is, the light-filling layer completes the light-filling of the object.
  • the display color of the light-filling layer is different, and the light-filling effect on the subject is different.
  • the transparency of the light-filling layer is different, and the light-filling effect on the subject is also different.
  • the display parameters of the light-filling layer (for example, parameters such as transparency, color, or display brightness) can be adjusted to complete the adjustment of the light-filling effect of the shooting object.
  • the light-filling layer and the preview layer can be generated at the same time.
  • the preview layer can also be generated first, and then the light-filling layer can be generated.
  • the electronic device displays the preview layer 201 without displaying the light supplement layer;
  • the electronic device displays the light supplement layer 202 superimposed on the preview layer 201, and the diagonal line in FIG. 3 represents the light supplement layer 202.
  • the preview layer can also be superimposed and displayed on the light supplement layer.
  • the light supplement effect can also be achieved, and at the same time, the light supplement effect can be achieved on the preview image on the preview layer.
  • the display parameters may include at least one of transparency, display color, and display brightness.
  • the display parameters include transparency
  • the display brightness in the external environment where the electronic device is currently located is low (below the brightness threshold, for example, the brightness threshold can be 500 nits), that is, the external environment at this time It can be considered as a dark environment, and the display brightness of the light-filling layer can be a fixed value, and the transparency of the light-filling layer can be reduced (for example, it can be reduced to 10%).
  • the light intensity thus enhances the effect of supplementing light on the shooting object, thereby making the brightness of the shooting object in the preview image obtained by the electronic device through the camera higher, thereby enhancing the display effect of the preview image.
  • the display brightness of the screen of the electronic device can also be increased, thereby further enhancing the light-filling effect on the subject.
  • the photographic subject for example: a person
  • the photographic subject can also change the photographing posture, adjust the beauty or filter and other functions according to the needs of the photographed image, so that the electronic device can obtain the preview image Presents a better display effect.
  • the display brightness in the environment where the electronic device is located is high (above the brightness threshold), that is, the environment at this time can be considered as a bright environment
  • the electronic device acquires the preview image there is no need to fill light, so it can Increase the transparency of the fill light layer (for example, it can be increased to 100%) so that the fill light layer does not affect the normal display of the preview image.
  • the electronic device can adjust the display parameters of the fill light layer according to the user's input instruction.
  • the input instruction can be a voice instruction.
  • it can also be a touch instruction for the controls on the shooting preview interface. The type is not limited here.
  • the electronic device can also automatically adjust the display parameters of the supplemental light layer according to the environmental parameters of the current external environment. For example, when the brightness of the external environment is high, the electronic device can increase the brightness of the supplementary light layer according to the light intensity of the external environment. Transparency (also can reduce the display brightness of the electronic device or not adjust the display brightness of the electronic device); when the brightness of the external environment is dark, the electronic device can reduce the transparency of the fill light layer according to the light intensity of the external environment, and at the same time You can also increase the display brightness of electronic devices.
  • the electronic device can also adjust the color of the light-filling layer. Because the color temperature of the light emitted by different colors is different, the light-filling effect on the subject is also different. In this way, by adjusting the display color of the light-filling layer, the same can be done. Enhance the light-filling effect on the subject, and then enhance the display effect of the preview image collected by the electronic device through the camera.
  • the display color of the light supplement layer can be adjusted according to the color temperature value of the environment where the electronic device is located. For example, when the color temperature value of the environment is low, the display color of the light supplement layer can be automatically switched to yellow light, and in other cases The display color of the fill light layer can be switched to white light. In this way, the display color of the light-filling layer can be adaptively adjusted according to the different color temperature values of the environment, thereby enhancing the light-filling effect of the light-filling layer on the subject.
  • the display color of the light supplement layer can also be switched according to the brightness value of the environment, that is, when the environment of the electronic device is a bright environment, the display of the light supplement layer can be adjusted The color is colder; when the environment of the electronic device is dark, you can adjust the display color of the light-filling layer to a warmer color, so that the display color of the light-filling layer can be based on the difference between the bright environment and the dark environment. Make adjustments to further enhance the light-filling effect on the subject.
  • the following example illustrates:
  • the display color of the light-filling layer can be a warm color to fill light; the display color of the light-filling layer in the range of 300-500 It can be a cool color to fill light; when it is greater than 500, the light fill layer is not displayed.
  • the unit of illuminance is lux.
  • the illuminance and brightness values are different parameters used to represent the lighting conditions of the environment in which the electronic device is located.
  • the above-mentioned electronic device may be a mobile phone, a tablet (Personal Computer), a laptop (Laptop Computer), a personal digital assistant (Personal Digital Assistant, PDA), a mobile Internet device (Mobile Internet Device, MID). ) Or wearable devices (Wearable Device) and so on.
  • the method for photographing and supplementing light includes: displaying a photographing preview interface, where the photographing preview interface includes a light-filling layer; and adjusting display parameters of the light-filling layer.
  • the photographing preview interface includes a light-filling layer, and the light from the light-filling layer can be irradiated to the photographing object, the display brightness of the photographing object in the image obtained by the camera is enhanced, and the display effect of the image is enhanced.
  • FIG. 4 is a flowchart of a method for photographing and supplementing light according to an embodiment of the present invention.
  • the electronic device can adjust the display parameters of the light supplement layer according to the acquired environmental parameters of the environment in which it is located. As shown in Figure 4, it includes the following steps:
  • Step 401 Display a shooting preview interface, where the shooting preview interface includes a light supplement layer.
  • the shooting preview interface can be obtained through the camera of the electronic device, and the shooting preview interface is generally displayed on the display screen of the electronic device, and the aforementioned camera and the aforementioned display screen can be located on the same side.
  • the electronic device in the embodiment of the present invention may have a multi-sided display screen (when it has a two-sided screen, the electronic device may be referred to as a double-sided screen electronic device), and each display screen may be correspondingly configured with a camera .
  • Step 402 Obtain environmental parameters of the environment in which the electronic device is located, where the environmental parameters include at least one of the following: an environmental brightness value and a color temperature value.
  • the electronic equipment can collect the environmental parameters of the environment in which it is located through components such as a camera or a light sensor.
  • Step 403 Adjust the display parameters of the light supplement layer based on the environmental parameters; the display parameters include at least one of the following: transparency, brightness, and display color.
  • the display parameter when the environmental parameter includes an environmental brightness value, the display parameter may include transparency; when the environmental parameter includes a color temperature value, the display parameter may include a display color.
  • the transparency of the light supplement layer can be adjusted according to the environmental brightness value, for example: see Figure 5, the light supplement layer 501 after adjusting the transparency;
  • the color temperature value adjusts the color of the fill light layer.
  • the display brightness of the electronic device ie, the screen
  • the display brightness of the electronic device may not be adjusted.
  • the specific method is not limited here.
  • the display parameter may also include the display color, that is, the display color of the light supplement layer can be adjusted according to the environmental brightness value of the environment where the electronic device is currently located. That is, when the current environment of the electronic device is a bright environment, the supplementary light layer can be displayed in a cooler color, and at the same time, the electronic device can be controlled to emit light with a cooler light source; when the current environment of the electronic device is a dark environment, the supplementary light layer can be Display in warmer colors, and at the same time, you can control electronic equipment to use warmer light sources to emit light. In this way, the light supplement effect on the shooting object can be further enhanced, and at the same time, different color displays can be displayed on the electronic device to enhance the display effect.
  • the display parameter includes transparency
  • the adjusting the display parameters of the light supplement layer based on the environmental parameters includes:
  • the specific method for calculating the target transparency based on the ambient brightness value and the preset brightness threshold is not limited here.
  • the environment brightness value can be compared with the brightness threshold value.
  • the target transparency can be calculated to be equal to the first transparency, and the current transparency can be increased to The first transparency (more than the preset transparency is sufficient);
  • the target transparency can be calculated to be equal to the second transparency, and the current transparency can be reduced to the second transparency (less than the preset transparency ).
  • the magnitude of increase and magnitude of decrease are not limited here, for example: when the ambient brightness value is closer to the brightness threshold, the magnitude of increase or decrease is smaller; when the value of ambient brightness is less than The greater the difference between the brightness thresholds, the greater the increase or the decrease.
  • the target transparency can also be calculated according to the ratio of the environmental brightness value to the brightness threshold. For example, when the ratio of the environmental brightness to the brightness threshold is 1, the target transparency is 100%; When the ratio of the ambient brightness value to the brightness threshold is 0.5, the target transparency is 50%; when the ratio of the ambient brightness to the brightness threshold is 2, the target transparency is 200%.
  • the target transparency is calculated by the environmental brightness value and the brightness threshold.
  • the calculation result of the target transparency can be correlated with the environmental brightness value, so that the target transparency can more accurately reflect the environment in which the electronic device is located. Brightness, so that the fill light result for the subject is more accurate, and the fill light effect is better.
  • the calculating the target transparency based on the environmental brightness value and a preset brightness threshold includes:
  • T is the target transparency
  • A is a constant
  • L is the ambient brightness value
  • Y is the brightness threshold
  • B 100%.
  • the specific value range of A is not limited here, and can be summarized based on experiments. Under different experimental conditions, the specific value may be different.
  • the brightness threshold may be 500 nits. It should be noted that the ambient brightness value or the unit of the brightness threshold in the full text may be nits.
  • the environmental brightness value can also be referred to as the current environmental brightness
  • the brightness threshold can also be referred to as the brightness critical value.
  • the brightness threshold is 500 nits, when the ambient brightness value is less than 500 nits, it is a dark environment, and when the ambient brightness value is greater than or equal to 500 nits, it is a bright environment.
  • the target transparency of the supplementary light layer can be adjusted to 100%, the supplementary light layer is completely transparent, and the user cannot see the supplementary light screen. There is no impact on the experience.
  • the ambient brightness value is 0, it is in the darkest environment.
  • the calculated target transparency is 0, that is, the fill light layer is completely opaque and fills the light completely.
  • the screen can be adjusted to a larger size. Display brightness, as an optional implementation manner, the display brightness of the screen can be adjusted to the maximum value. Of course, as another optional implementation manner, the display brightness of the light supplement layer can also be increased.
  • the target transparency is calculated by the above-mentioned preset formula, so that the calculation method of the target transparency can be made simpler and the calculation result is more accurate.
  • the method further includes:
  • the display brightness of the screen of the electronic device is adjusted.
  • the display brightness of the screen when the environmental parameter includes the environmental brightness value, after the transparency of the light-filling layer is decreased, the display brightness of the screen can be increased.
  • the environmental parameters include the color temperature value, after the display color of the light supplement layer is changed from a cool color to a warm color based on the color temperature value, the display brightness of the screen can also be improved.
  • the display brightness of the screen can also be lowered based on environmental parameters.
  • the display brightness of the screen can be adjusted, when the display brightness of the screen is increased, the intensity of light irradiated on the subject can also be increased, thereby further enhancing the light supplement effect on the subject.
  • the display parameter when the environmental parameter includes a color temperature value, the display parameter includes a display color; wherein the display color is associated with the color temperature value.
  • the display color of the light supplement layer can be adjusted according to the color temperature value of the environment where the electronic device is located. For example, when the color temperature value of the environment is low, the display color of the light supplement layer can be automatically switched to yellow light, and in other cases The display color of the fill light layer can be switched to white light. In this way, the display color of the light-filling layer can be adaptively adjusted according to the different color temperature values of the environment, thereby enhancing the light-filling effect of the light-filling layer on the subject.
  • the electronic device can obtain the environmental parameters of the environment in which it is located, and adjust the display parameters of the light-filling layer based on the environmental parameters, the electronic device can automatically adjust the display parameters of the light-filling layer. In this way, the degree of intelligence of the electronic device can be enhanced, thereby enhancing the user experience.
  • the user can adjust his posture, and the electronic device can collect the target image, where the target The image may be an image collected by the light supplement layer on the photographed object (which may be a user) after the light supplement is completed, and at the same time, it may also be an image collected by the user after the posture adjustment is completed.
  • the electronic device can continuously acquire the environmental parameters, and can continuously adjust the display parameters of the light supplement layer based on the environmental parameters.
  • FIG. 7 is a flowchart of a method for photographing and supplementing light according to an embodiment of the present invention.
  • the main difference between this embodiment and the previous embodiment is that the user can adjust the display parameters of the fill light layer by inputting the target control. As shown in Figure 7, it includes the following steps:
  • Step 701 Display a shooting preview interface, where the shooting preview interface includes a light supplement layer, and the shooting preview interface further includes a target control.
  • the expressions of the shooting preview interface and the light supplement layer can be referred to the corresponding expressions in the above-mentioned embodiment, which will not be repeated here.
  • Step 702 Receive a user's first input to the target control.
  • the type of the first input is not limited here.
  • the first input may be a voice input, or may be a sliding input or a touch input.
  • Step 703 In response to the first input, adjust the display parameters of the light supplement layer.
  • the specific type of the target control is not limited here.
  • the target control may be a bar control, and of course, the target control may also be a ring control.
  • each display parameter can correspond to a control, for example: see Figure 8 and Figure 9, Figure 8 shows the transparency adjustment control 801, Figure 9 shows the target control 901, and the target control 901 can be To display the color adjustment control 901, of course, a display brightness adjustment control 1001 (which can be used to adjust the display brightness of the light supplement layer) is also shown in FIG. 10.
  • a display brightness adjustment control 1001 (which can be used to adjust the display brightness of the light supplement layer) is also shown in FIG. 10.
  • multiple display parameters can share the same target control, and the types of display parameters controlled by the target control can be switched through instructions.
  • the display parameter includes a display color
  • the target control includes a target sub-control and at least one color identifier
  • the receiving a user's first input to the target control includes:
  • the adjusting the display information of the light supplement layer in response to the first input includes:
  • the display color of the light supplement layer is adjusted to a target color, and the target color identifier corresponds to the target color.
  • the target control 901 can be set in a circular shape, and the target sub-control 9011 can be set in a circular shape, and can be located in a preset area of the target control 901 (which can be a central area or an area to the left of the center, etc.), and
  • the target control 901 may also include four color identifications.
  • the four color identifications mentioned above may be the first color identification 9012, the second color identification 9013, the third color identification 9014, and the fourth color identification 9015 in a counterclockwise direction, respectively.
  • the four color marks can be located on the ring area of the target control 901.
  • Each color logo can represent a color, for example: the first color logo 9012 can represent yellow, the second color logo 9013 can represent light green, the third color logo 9014 can represent dark blue, and the fourth color logo 9015 can represent black .
  • the target color can be selected, and then the color of the fill light layer can be switched to the target color.
  • the selection of the target color is completed through the target sub-control and the color identification, which increases the diversity and flexibility of the method for determining the target color.
  • the preview interface further includes a preview layer
  • the light supplement layer is displayed superimposed on the preview layer
  • the light supplement layer includes a hollow area
  • the hollowed-out area may be a light-filling layer area whose transparency is greater than a preset threshold. See FIG. 12, which includes a preview layer 1201 and a light-filling layer 1202, where the light-filling layer 1202 includes a hollowed-out area 12022, and the preview layer 1201
  • the preview image 12011 may be displayed on the screen.
  • the hollowed-out area may also be an area without a light-filling layer, and the specific type is not limited here.
  • the specific value of the preset threshold is not limited here.
  • the preset threshold may be 50%, 70%, or 100%. In this way, because the hollowed out area is a high-transparency fill light layer area, the user can clearly see the preview image on the preview layer, which in turn makes the preview image display better.
  • the user can observe the preview image on the preview layer through the hollow area. In this way, the user can observe his posture on the preview image and adjust his posture. At the same time, it can also realize the supplementary light to the user.
  • the method further includes:
  • the display of the hollow area of the light supplement layer is updated.
  • the expression of the second input can also be referred to the corresponding expression of the first input in the foregoing embodiment, and details are not repeated here.
  • the specific method for updating the display of the hollowed-out area of the light supplement layer is not limited here, for example: the shape, size, or transparency of the hollowed-out area can be updated.
  • the display of the hollow area can be updated according to the user's input, the degree of intelligence of the electronic device is further enhanced, and the user experience is improved.
  • the updating the display of the hollow area of the light supplement layer includes at least one of the following:
  • the shape of the hollow area can be updated from a circle to an ellipse; the size of the hollow area can be adjusted larger or lower; the transparency can be adjusted higher or lower.
  • the display color or display brightness of the hollowed-out area can also be updated.
  • the shape, size and transparency of the hollowed-out area can be updated, the diversity of the display of the updated hollowed-out area is increased, thereby making the display of the hollowed-out area more flexible.
  • the user can adjust the display parameters of the light supplement layer through the target control, thereby increasing the diversity and flexibility of adjustment methods.
  • the electronic device can collect the target image, where the target The image may be an image obtained by the light-filling layer collecting a photographed object (which may be a user) after the light is filled, and at the same time, it may also be an image obtained by collecting the user after adjusting the posture.
  • FIG. 13 is a structural diagram of an electronic device provided by an embodiment of the present invention, which can realize the details of the method of photographing and supplementing light in the foregoing embodiment and achieve the same effect.
  • the electronic device 1300 includes:
  • the display module 1301 is configured to display a shooting preview interface, where the shooting preview interface includes a light supplement layer;
  • the first adjustment module 1302 is used to adjust the display parameters of the light supplement layer.
  • the electronic device 1300 further includes: an acquisition module for acquiring environmental parameters of the environment in which the electronic device is located;
  • the first adjustment module 1302 is further configured to adjust the display parameters of the light supplement layer based on the environmental parameters; wherein the environmental parameters include at least one of the following: an environmental brightness value and a color temperature value; the display parameters include the following At least one item: transparency, brightness and display color.
  • the display parameter includes transparency
  • the first adjustment module 1302 includes:
  • the calculation sub-module is used to calculate the target transparency based on the environmental brightness value and the preset brightness threshold;
  • the first adjustment sub-module is used to adjust the transparency of the light supplement layer to the target transparency.
  • the electronic device 1300 further includes: a second adjustment module configured to adjust the display brightness of the screen of the electronic device based on the environmental parameter.
  • the display parameter when the environmental parameter includes a color temperature value, the display parameter includes a display color; wherein the display color is associated with the color temperature value.
  • the shooting preview interface further includes a target control
  • the first adjustment module 1302 includes:
  • the second adjustment sub-module is configured to adjust the display parameters of the light supplement layer in response to the first input.
  • the display parameter includes a display color
  • the target control includes a target sub-control and at least one color identifier
  • the receiving sub-module is further configured to receive a user's first input to the target sub-control, and the first input is used to control the target sub-control to move from a preset area to the target color indicator in the at least one color indicator Area
  • the second adjustment sub-module is further configured to adjust the display color of the light supplement layer to a target color in response to the first input, and the target color identifier corresponds to the target color.
  • the preview interface further includes a preview layer
  • the light supplement layer is displayed superimposed on the preview layer
  • the light supplement layer includes a hollow area
  • the electronic device 1300 further includes:
  • the receiving module is used to receive the second input of the user
  • the update module is configured to update the display of the hollow area of the light supplement layer in response to the second input.
  • the update module is further configured to include at least one of the following:
  • the electronic device provided by the embodiment of the present invention can implement each process implemented by the electronic device in the method embodiments of FIG. 1, FIG. 4, and FIG. 7. To avoid repetition, details are not described herein again.
  • the photographing preview interface includes a light-filling layer, and the light from the light-filling layer can be irradiated on the photographic subject, the display brightness of the photographic subject in the image obtained by the camera is enhanced, thereby enhancing the display effect of the image .
  • FIG. 14 is a schematic diagram of the hardware structure of an electronic device that implements various embodiments of the present invention.
  • the electronic device 1400 includes but is not limited to: a radio frequency unit 1401, a network module 1402, an audio output unit 1403, an input unit 1404, a sensor 1405, a display unit 1406, a user input unit 1407, an interface unit 1408, a memory 1409, a processor 1410, and Power supply 1411 and other components.
  • a radio frequency unit 1401 includes but is not limited to: a radio frequency unit 1401, a network module 1402, an audio output unit 1403, an input unit 1404, a sensor 1405, a display unit 1406, a user input unit 1407, an interface unit 1408, a memory 1409, a processor 1410, and Power supply 1411 and other components.
  • Those skilled in the art can understand that the structure of the electronic device shown in FIG. 14 does not constitute a limitation on the electronic device.
  • the electronic device may include more or less components than those shown in the figure, or a combination of certain components, or different components. Layout.
  • electronic devices include, but are not limited to, mobile phones, tablet computers, notebook computers, palm
  • the display unit 1406 is configured to display a shooting preview interface, and the shooting preview interface includes a light supplement layer.
  • the processor 1410 is configured to adjust the display parameters of the light supplement layer.
  • the processor 1410 is further configured to obtain environmental parameters of the environment in which the electronic device is located;
  • the adjustment of the display parameters of the light supplement layer performed by the processor 1410 includes:
  • the environmental parameter includes at least one of the following: an environmental brightness value and a color temperature value
  • the display parameter includes at least one of the following: transparency, brightness, and display color.
  • the display parameter includes transparency
  • the adjustment of the display parameters of the light supplement layer performed by the processor 1410 based on the environmental parameters includes:
  • the processor 1410 is further configured to adjust the display brightness of the screen of the electronic device based on the environmental parameter.
  • the calculation of the target transparency based on the ambient brightness value and a preset brightness threshold performed by the processor 1410 includes:
  • T is the target transparency
  • A is a constant
  • L is the ambient brightness value
  • Y is the brightness threshold
  • B 100%.
  • the display parameter when the environmental parameter includes a color temperature value, the display parameter includes a display color; wherein the display color is associated with the color temperature value.
  • the shooting preview interface further includes a target control; the adjustment of the display parameters of the light supplement layer performed by the processor 1410 includes:
  • the user input unit 1407 is configured to receive a user's first input to the target control
  • the processor 1410 is configured to adjust the display parameters of the light supplement layer in response to the first input.
  • the display parameter includes a display color
  • the target control includes a target sub-control and at least one color identifier
  • the receiving user's first input to the target control performed by the user input unit 1407 includes:
  • the adjustment of the display information of the light supplement layer performed by the processor 1410 in response to the first input includes:
  • the display color of the light supplement layer is adjusted to a target color, and the target color identifier corresponds to the target color.
  • the preview interface further includes a preview layer
  • the light supplement layer is displayed superimposed on the preview layer
  • the light supplement layer includes a hollow area
  • the user input unit 1407 is further configured to receive a second input of the user; the processor 1410 is further configured to update the display of the hollow area of the light supplement layer in response to the second input.
  • the update of the display of the hollow area of the light supplement layer performed by the processor 1410 includes at least one of the following:
  • the electronic device provided in the embodiment of the present invention can implement each process implemented by the electronic device in the foregoing embodiment, and to avoid repetition, details are not described herein again.
  • the photographing preview interface includes a light-filling layer, and the light from the light-filling layer can be irradiated on the photographing object, the display brightness of the photographing object in the image obtained by the camera is enhanced, and the display effect of the image is enhanced.
  • the radio frequency unit 1401 can be used for receiving and sending signals in the process of sending and receiving information or talking. Specifically, after receiving the downlink data from the base station, it is processed by the processor 1410; Uplink data is sent to the base station.
  • the radio frequency unit 1401 includes, but is not limited to, an antenna, at least one amplifier, a transceiver, a coupler, a low noise amplifier, a duplexer, and the like.
  • the radio frequency unit 1401 can also communicate with the network and other devices through a wireless communication system.
  • the electronic device provides users with wireless broadband Internet access through the network module 1402, such as helping users to send and receive emails, browse web pages, and access streaming media.
  • the audio output unit 1403 may convert the audio data received by the radio frequency unit 1401 or the network module 1402 or stored in the memory 1409 into audio signals and output them as sounds. Moreover, the audio output unit 1403 may also provide audio output related to a specific function performed by the electronic device 1400 (for example, call signal reception sound, message reception sound, etc.).
  • the audio output unit 1403 includes a speaker, a buzzer, a receiver, and the like.
  • the input unit 1404 is used to receive audio or video signals.
  • the input unit 1404 may include a graphics processing unit (GPU) 14041 and a microphone 14042, and the graphics processor 14041 may be used for still pictures obtained by a first image capture device (such as a camera) in the video capture mode or the first image capture mode. Or the first image data of the video is processed.
  • the processed first image frame may be displayed on the display unit 1406.
  • the first image frame processed by the graphics processor 14041 may be stored in the memory 1409 (or other storage medium) or sent via the radio frequency unit 1401 or the network module 1402.
  • the microphone 14042 can receive sound, and can process such sound into audio data.
  • the processed audio data can be converted into a format that can be sent to a mobile communication base station via the radio frequency unit 1401 in the case of a telephone call mode for output.
  • the electronic device 1400 further includes at least one sensor 1405, such as a light sensor, a motion sensor, and other sensors.
  • the light sensor includes an ambient light sensor and a proximity sensor.
  • the ambient light sensor can adjust the brightness of the display panel 14061 according to the brightness of the ambient light.
  • the proximity sensor can close the display panel 14061 and the display panel 14061 when the electronic device 1400 is moved to the ear. / Or backlight.
  • the accelerometer sensor can detect the magnitude of acceleration in various directions (usually three axes), and can detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of electronic devices (such as horizontal and vertical screen switching, related games) , Magnetometer attitude calibration), vibration recognition related functions (such as pedometer, percussion), etc.; the sensor 1405 can also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, Infrared sensors, etc., will not be repeated here.
  • the display unit 1406 is used to display information input by the user or information provided to the user.
  • the display unit 1406 may include a display panel 14061, and the display panel 14061 may be configured in the form of a liquid crystal display (LCD), an organic light-emitting diode (OLED), etc.
  • LCD liquid crystal display
  • OLED organic light-emitting diode
  • the user input unit 1407 may be used to receive input digital or character information, and generate key signal input related to user settings and function control of the electronic device.
  • the user input unit 1407 includes a touch panel 14071 and other input devices 14072.
  • the touch panel 14071 also called a touch screen, can collect the user's touch operations on or near it (for example, the user uses any suitable objects or accessories such as fingers, stylus, etc.) on the touch panel 14071 or near the touch panel 14071. operate).
  • the touch panel 14071 may include two parts, a touch detection device and a touch controller.
  • the touch detection device detects the user's touch position, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and then sends it To the processor 1410, the command sent by the processor 1410 is received and executed.
  • the touch panel 14071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave.
  • the user input unit 1407 may also include other input devices 14072.
  • other input devices 14072 may include, but are not limited to, a physical keyboard, function keys (such as volume control buttons, switch buttons, etc.), trackball, mouse, and joystick, which will not be repeated here.
  • the touch panel 14071 can cover the display panel 14061.
  • the touch panel 14071 detects a touch operation on or near it, it transmits it to the processor 1410 to determine the type of touch event, and then the processor 1410 determines the type of the touch event according to the touch.
  • the type of event provides corresponding visual output on the display panel 14061.
  • the touch panel 14071 and the display panel 14061 are used as two independent components to realize the input and output functions of the electronic device, but in some embodiments, the touch panel 14071 and the display panel 14061 may be integrated
  • the implementation of the input and output functions of the electronic device is not specifically limited here.
  • the interface unit 1408 is an interface for connecting an external device and the electronic device 1400.
  • the external device may include a wired or wireless headset port, an external power source (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device with an identification module, audio input/output (I/O) port, video I/O port, headphone port, etc.
  • the interface unit 1408 can be used to receive input (for example, data information, power, etc.) from an external device and transmit the received input to one or more elements in the electronic device 1400 or can be used to connect to the electronic device 1400 and the external device. Transfer data between devices.
  • the memory 1409 can be used to store software programs and various data.
  • the memory 1409 may mainly include a storage program area and a storage data area, where the storage program area may store an operating system, an application program required by at least one function (such as a sound playback function, a first image playback function, etc.), etc.; the storage data area may Store data (such as audio data, phone book, etc.) created based on the use of mobile phones.
  • the memory 1409 may include a high-speed random access memory, and may also include a non-volatile memory, such as at least one magnetic disk storage device, a flash memory device, or other volatile solid-state storage devices.
  • the processor 1410 is the control center of the electronic device. It uses various interfaces and lines to connect the various parts of the entire electronic device, runs or executes the software programs and/or modules stored in the memory 1409, and calls the data stored in the memory 1409 , Perform various functions of electronic equipment and process data, so as to monitor the electronic equipment as a whole.
  • the processor 1410 may include one or more processing units; preferably, the processor 1410 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, and application programs, etc., the modem
  • the processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 1410.
  • the electronic device 1400 may also include a power source 1411 (such as a battery) for supplying power to various components.
  • a power source 1411 such as a battery
  • the power source 1411 may be logically connected to the processor 1410 through a power management system, so as to manage charging, discharging, and power consumption management through the power management system. And other functions.
  • the electronic device 1400 includes some functional modules not shown, which will not be repeated here.
  • the embodiment of the present invention also provides an electronic device, including a processor 1410, a memory 1409, and a computer program stored on the memory 1409 and running on the processor 1410.
  • an electronic device including a processor 1410, a memory 1409, and a computer program stored on the memory 1409 and running on the processor 1410.
  • the computer program is executed by the processor 1410,
  • Each process of the foregoing embodiment of the method for photographing and supplementing light is realized, and the same technical effect can be achieved. In order to avoid repetition, details are not repeated here.
  • the embodiment of the present invention also provides a computer-readable storage medium, and a computer program is stored on the computer-readable storage medium.
  • a computer program is stored on the computer-readable storage medium.
  • the computer-readable storage medium such as read-only memory (Read-Only Memory, ROM), random access memory (Random Access Memory, RAM), magnetic disk, or optical disk, etc.
  • the technical solution of the present invention essentially or the part that contributes to the existing technology can be embodied in the form of a software product, and the computer software product is stored in a storage medium (such as ROM/RAM, magnetic disk, The optical disc) includes several instructions to make a terminal (which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.) execute the method described in each embodiment of the present invention.
  • a terminal which can be a mobile phone, a computer, a server, an air conditioner, or a network device, etc.

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Human Computer Interaction (AREA)
  • Controls And Circuits For Display Device (AREA)
  • Studio Devices (AREA)

Abstract

本发明提供一种拍摄补光方法、电子设备及介质,所述方法包括:显示拍摄预览界面,所述拍摄预览界面包括补光层;调节所述补光层的显示参数。

Description

拍摄补光方法、电子设备及介质
相关申请的交叉引用
本申请主张在2020年2月10日在中国提交的中国专利申请号No.202010085335.3的优先权,其全部内容通过引用包含于此。
技术领域
本发明涉及通信技术领域,尤其涉及到一种拍摄补光方法、电子设备及介质。
背景技术
当前可以通过电子设备的摄像头拍摄图像(图像包括图片或者视频),但是在实际的使用过程中,当摄像头未配置有补光灯,且电子设备所处的环境的亮度较低时,容易导致通过摄像头获取的图像中的拍摄对象的显示亮度较低,从而导致图像的显示效果较差。
发明内容
本发明实施例提供一种拍摄补光方法、电子设备及介质,能够解决图像的显示效果较差的问题。
为了解决上述技术问题,本发明是这样实现的:
第一方面,本发明实施例提供了一种拍摄补光方法,应用于电子设备,所述方法包括:
显示拍摄预览界面,所述拍摄预览界面包括补光层;
调节所述补光层的显示参数。
第二方面,本发明实施例提供了一种电子设备,包括:
显示模块,用于显示拍摄预览界面,所述拍摄预览界面包括补光层;
调节模块,用于调节所述补光层的显示参数。
第三方面,本发明实施例还提供一种电子设备,包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器 执行所述计算机程序时实现上述拍摄补光方法中的步骤。
第四方面,本发明实施例还提供一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现上述拍摄补光方法中的步骤。
在本发明实施例中,拍摄补光方法包括:显示拍摄预览界面,所述拍摄预览界面包括补光层;调节所述补光层的显示参数。这样,由于拍摄预览界面中包括补光层,且补光层的光线可以照射至拍摄对象上,从而增强了摄像头获取的图像中拍摄对象的显示亮度,进而增强了图像的显示效果。
附图说明
图1是本发明实施例提供的拍摄补光方法的流程图之一;
图2是本发明实施例提供的电子设备的拍摄预览界面示意图之一;
图3是本发明实施例提供的电子设备的拍摄预览界面示意图之二;
图4是本发明实施例提供的拍摄补光方法的流程图之二;
图5是本发明实施例提供的电子设备的拍摄预览界面示意图之三;
图6是本发明实施例提供的电子设备的拍摄预览界面示意图之四;
图7是本发明实施例提供的拍摄补光方法的流程图之三;
图8是本发明实施例提供的电子设备的拍摄预览界面示意图之五;
图9是本发明实施例提供的电子设备的拍摄预览界面示意图之六;
图10是本发明实施例提供的电子设备的拍摄预览界面示意图之七;
图11是本发明实施例提供的电子设备的拍摄预览界面示意图之八;
图12是本发明实施例提供的电子设备的拍摄预览界面示意图之九;
图13是本发明实施例提供的电子设备的结构示意图之一;
图14是本发明实施例提供的电子设备的结构示意图之二。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创 造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
参见图1,图1是本发明实施例提供的拍摄补光方法的流程图,本实施例提供的方法可以应用于电子设备中,如图1所示,包括以下步骤:
步骤101、显示拍摄预览界面,所述拍摄预览界面包括补光层。
其中,拍摄预览界面可以通过电子设备的摄像头获取得到,而拍摄预览界面一般显示在电子设备的显示屏幕上,而上述摄像头与上述显示屏幕可以位于同一侧。
其中,拍摄预览界面中的预览图像可以通过电子设备上的摄像头采集得到,而该摄像头可以为电子设备的前置摄像头或者后置摄像头,即:上述拍摄预览界面中的预览图像可以为通过前置摄像头采集的图像,也可以为通过后置摄像头采集的图像。
需要说明的是,本发明实施例中的电子设备可以具有多面显示屏幕(当具有两面屏幕时,则电子设备可以被称作为双面屏电子设备),且每一显示屏幕均可以对应配置有摄像头。
步骤102、调节所述补光层的显示参数。
其中,本发明实施例的工作原理可以参见以下表述:
由于拍摄预览界面中包括补光层,通过调节补光层的显示参数(例如:透明度、亮度或者显示颜色等),这样,可以调节补光层照射至拍摄对象(拍摄对象可以为电子设备所处环境中的对象,例如:可以位于朝向显示有拍摄预览界面的屏幕的方向上)的光照强度或色温,从而达到对拍摄对象进行补光的目的,因而可以调节电子设备通过摄像头获取的预览图像中拍摄对象(例如人脸)的亮度,进而增强预览图像的显示效果。需要说明的是,预览图像可以为显示在拍摄预览界面上的图像,例如:拍摄预览界面包括预览层,且补光层可以叠加显示在预览层之上,则预览图像可以为显示在预览层上的图像。
需要说明的是,补光层与预览层的具体类型在此不做限定,例如:补光层与预览层可以分别为两个图层,或者补光层与预览层可以分别为两个窗口。
其中,补光层对拍摄对象进行补光的原理可以参见以下表述:
当未设置有补光层时,拍摄预览界面通常显示的为预览图像,而在电子 设备所处环境的亮度较暗(例如不开灯的夜晚)时,预览图像通常为黑色图像;当增加补光层后,由于补光层通常可以为白色或者其他颜色(一般不为黑色),这样,补光层发出的光线可以照亮拍摄对象(例如用户的人脸),从而增强了预览图像中拍摄对象的显示亮度,即补光层完成了对拍摄对象的补光。当然,补光层的显示颜色不一样,对拍摄对象的补光效果不同,同时,补光层的透明度不一样,对拍摄对象的补光效果也不同。本发明实施例中,可以通过调节补光层的显示参数(例如:透明度、颜色或者显示亮度等参数),从而完成对拍摄对象的补光效果的调整。
另外,补光层和预览层可以同时生成,当然,也可以先生成预览层,然后再生成补光层。例如:参见图2,电子设备显示预览层201,未显示补光层;参见图3,电子设备在预览层201上叠加显示补光层202,图3中斜线表示补光层202。
另外,作为一种可选的实施方式,预览层也可以叠加显示在补光层之上,这样,同样可以达到补光的效果,同时还可以对预览层上的预览图像起到补光效果。
其中,显示参数的具体类型在此不做限定,例如:显示参数可以包括透明度、显示颜色和显示亮度中的至少一种。
例如:当显示参数包括透明度,且当电子设备当前所处的外界环境中的显示亮度较低(低于亮度阈值,例如:亮度阈值可以为500尼特(nit))时,即此时外界环境可以认为是暗环境,而补光层的显示亮度可以为固定值,可以只调低补光层的透明度(例如可以调低为10%),这样,增强了补光层照射至拍摄对象上的光照强度,从而增强了对拍摄对象的补光效果,进而使得电子设备通过摄像头获取的预览图像中的拍摄对象的亮度较高,从而增强了预览图像的显示效果。需要说明的是,在调低透明度的同时,还可以调高电子设备的屏幕的显示亮度,从而可以进一步增强对拍摄对象的补光效果。
举例对上面实施原理进行说明:当补光层的透明度较低时,预览层上的光线透过补光层照射至用户的光线数量少,即此时对用户进行补光的光线多数为补光层上的光线,而当补光层的透明度较高时,预览层上显示预览图像发出的光线可以透过补光层对用户进行补光,而此时预览层上的预览图像通 常较暗(外界环境的亮度较暗),从而导致对用户补光效果较差。
另外,在补光层完成对拍摄对象的补光之后,拍摄对象(例如:人)还可以根据拍摄图像的需要改变拍照姿势,调整美颜或者滤镜等功能,从而使得电子设备获取的预览图像呈现更好的显示效果。
当然,当电子设备所处环境中的显示亮度较高(高于亮度阈值)时,即此时所处环境可以认为是亮环境,则此时电子设备获取预览图像时,无须补光,因此可以调高补光图层的透明度(例如可以调高为100%),使得补光图层不影响预览图像的正常显示。
需要说明的是,电子设备可以根据用户的输入指令来进行调节补光层的显示参数,例如:输入指令可以为语音指令,当然,也可以是针对拍摄预览界面上的控件的触控指令,具体类型在此不做限定。
另外,电子设备也可以根据当前所处的外界环境的环境参数自动调节补光层的显示参数,例如:当外界环境的亮度较高时,电子设备可以根据外界环境的光照强度调高补光图层的透明度(同时也可以调低电子设备的显示亮度或者不调整电子设备的显示亮度);当外界环境的亮度较暗时,电子设备可以根据外界环境的光照强度调低补光图层的透明度,同时还可以调高电子设备的显示亮度。
另外,电子设备同样还可以调节补光层的颜色,由于不同的颜色发出的光的色温值不同,因而对拍摄对象的补光效果也不同,这样,通过调节补光层的显示颜色,同样可以增强对拍摄对象的补光效果,进而增强电子设备通过摄像头采集的预览图像的显示效果。
其中,可以根据电子设备所处环境的色温值调整补光层的显示颜色,例如:当所处环境的色温值较低时,可以将补光层的显示颜色自动切换为黄光,而其他情况下可以将补光层的显示颜色切换为白光。这样,可以根据所处环境的色温值的不同,自适应的调整补光层的显示颜色,从而增强了补光层对拍摄对象的补光效果。
另外,作为一种可选的实施方式,还可以根据所处环境的亮度值来切换补光层的显示颜色,即当电子设备的所处环境为亮环境时,则可以调整补光层的显示颜色为偏冷颜色;当电子设备的所处环境为暗环境时,则可以调整 补光层的显示颜色为偏暖颜色,这样,补光层的显示颜色可以根据亮环境和暗环境的不同来进行调节,从而可以进一步增强对拍摄对象的补光效果。下面举例说明:
当光照度(表示被摄主体表面单位面积上受到的光通量)在0—300范围内补光层的显示颜色可以为暖色系颜色,从而进行补光;在300—500范围内补光层的显示颜色可以为冷色系颜色,从而进行补光;大于500时则不显示补光层。需要说明的是,光照度的单位为勒克斯(lux)。同时,光照度和亮度值为用于表示电子设备所处环境的光照条件的不同参数。
本发明实施例中,上述电子设备可以是手机、平板电脑(Tablet Personal Computer)、膝上型电脑(Laptop Computer)、个人数字助理(Personal Digital Assistant,PDA)、移动上网装置(Mobile Internet Device,MID)或可穿戴式设备(Wearable Device)等等。
在本发明实施例中,拍摄补光方法包括:显示拍摄预览界面,所述拍摄预览界面包括补光层;调节所述补光层的显示参数。这样,由于拍摄预览界面中包括补光层,且补光层的光线可以照射至拍摄对象上,从而增强了摄像头获取的图像中拍摄对象的显示亮度,进而增强了图像的显示效果。
参见图4,图4是本发明实施例提供的拍摄补光方法的流程图。本实施例与上个实施例的主要区别在于:电子设备可以根据获取的所处环境的环境参数,调节补光层的显示参数。如图4所示,包括以下步骤:
步骤401、显示拍摄预览界面,所述拍摄预览界面包括补光层。
其中,拍摄预览界面可以通过电子设备的摄像头获取得到,而拍摄预览界面一般显示在电子设备的显示屏幕上,而上述摄像头与上述显示屏幕可以位于同一侧。
需要说明的是,本发明实施例中的电子设备可以具有多面显示屏幕(当具有两面屏幕时,则电子设备可以被称作为双面屏电子设备),且每一显示屏幕均可以对应配置有摄像头。
步骤402、获取所述电子设备所处环境的环境参数,其中,所述环境参数包括以下至少一项:环境亮度值和色温值。
其中,电子设备可以通过摄像头或者光线传感器等元器件采集所处环境 的环境参数。
步骤403、基于所述环境参数,调节所述补光层的显示参数;所述显示参数包括以下至少一项:透明度、亮度和显示颜色。
可选地,当环境参数包括环境亮度值时,则显示参数可以包括透明度;当环境参数包括色温值时,则显示参数可以包括显示颜色。
例如:当环境参数包括环境亮度值时,则可以根据环境亮度值调节补光层的透明度,例如:参见图5,调节透明度之后的补光层501;当环境参数包括色温值时,则可以根据色温值调节补光层的颜色。
需要说明的是,当调节补光层的颜色时,电子设备(即屏幕)的显示亮度可以一同调整,当然,也可以不调整电子设备的显示亮度,具体方式在此不做限定。
可选地,当环境参数包括环境亮度值时,显示参数也可以包括显示颜色,即可以根据电子设备当前所处环境的环境亮度值来调节补光层的显示颜色。即电子设备当前所处环境为亮环境时,补光层可以以偏冷颜色显示,同时,还可以控制电子设备采用偏冷光源发光;电子设备当前所处环境为暗环境时,补光层可以以偏暖颜色显示,同时,还可以控制电子设备采用偏暖光源发光。这样,可以进一步的增强对拍摄对象的补光效果,同时,还可以使得电子设备上呈现不同的颜色显示,增强显示效果。
可选地,在所述环境参数包括环境亮度值的情况下,所述显示参数包括透明度;
所述基于所述环境参数,调节所述补光层的显示参数,包括:
基于所述环境亮度值以及预设的亮度阈值,计算目标透明度;
调节所述补光层的透明度为所述目标透明度。
其中,基于环境亮度值与预设的亮度阈值计算目标透明度的具体方式在此不做限定。
例如:作为一种可选的实施方式,可以比较环境亮度值与亮度阈值的大小,当环境亮度值大于亮度阈值时,可以计算得到目标透明度等于第一透明度,则可以将当前的透明度增大至第一透明度(大于预设的透明度即可);当环境亮度值小于亮度阈值时,可以计算得到目标透明度等于第二透明度,则 可以将当前的透明度减小至第二透明度(小于预设的透明度)。
需要说明的是,增大的幅度以及减小的幅度在此不做限定,例如:当环境亮度值与亮度阈值越接近时,增大的幅度或者减小的幅度越小;当环境亮度值与亮度阈值之间的差值越大时,增大的幅度或者减小的幅度越大。
当然,作为另一种可选的实施方式,还可以根据环境亮度值与亮度阈值的比值来计算目标透明度,例如:当环境亮度值与亮度阈值的比值为1时,则目标透明度为100%;当环境亮度值与亮度阈值的比值为0.5时,则目标透明度为50%;当环境亮度值与亮度阈值的比值为2时,则目标透明度为200%。
本发明实施方式中,通过环境亮度值和亮度阈值计算目标透明度,这样,可以使得目标透明度的计算结果与环境亮度值具有相关性,从而使得目标透明度可以更加准确的反应电子设备所处环境中的亮度情况,从而使得对拍摄对象的补光结果更加准确,补光效果更好。
其中,作为一种可选的实施方式,所述基于所述环境亮度值以及预设的亮度阈值,计算目标透明度,包括:
根据预设公式T=A×L/Y×B,计算目标透明度;
其中,T为所述目标透明度,A为常数,L为所述环境亮度值,Y为所述亮度阈值,B为100%。
其中,A的具体取值范围在此不做限定,可以根据实验进行总结得到。不同的实验条件下,其具体取值可能不同。
其中,亮度阈值的具体取值在此也不做限定,例如:亮度阈值可以为500尼特,需要说明的是,全文中的环境亮度值或者亮度阈值的单位均可以为尼特(nit)。
其中,环境亮度值也可以被称作为当前环境亮度,亮度阈值也可以被称作为亮度临界值。
例如:亮度阈值为500尼特,环境亮度值小于500尼特时则为暗环境,环境亮度值大于或等于500尼特时则为亮环境。
当环境亮度值大于或者等于500尼特时,处于亮环境,此时不需要补光,即可以调节补光层的目标透明度为100%,补光层全透明,用户看不到补光画面,对于体验无任何影响。当环境亮度值为0时,处于最暗环境,此时计算 得到目标透明度为0,即补光层完全不透明,完全补光,需要说明的是,当目标透明度为0时,可以调大屏幕的显示亮度,作为一种可选的实施方式,可以调节屏幕的显示亮度为最大值。当然,作为另一种可选的实施方式,也可以调大补光层的显示亮度。
本发明实施方式中,通过上述预设公式计算目标透明度,这样,可以使得目标透明度的计算方式更加简便,且计算结果更加准确。
可选地,所述获取所述电子设备所处环境的环境参数之后,所述方法还包括:
基于所述环境参数,调节所述电子设备的屏幕的显示亮度。
例如:当环境参数包括环境亮度值时,当调低补光层的透明度之后,可以调高屏幕的显示亮度。另外,当环境参数包括色温值时,根据色温值将补光层的显示颜色由冷色系变为暖色系后,同样可以提高屏幕的显示亮度。
当然,也可以基于环境参数调低屏幕的显示亮度。
本发明实施方式中,由于可以调节屏幕的显示亮度,这样,当调高屏幕的显示亮度时,同样可以增强照射至拍摄对象上的光照强度,从而进一步增强对拍摄对象的补光效果。
可选地,在所述环境参数包括色温值的情况下,所述显示参数包括显示颜色;其中,所述显示颜色与所述色温值相关联。
在本实施方式中,由于不同的颜色发出的光的色温值不同,因而对拍摄对象的补光效果也不同,这样,通过调节补光层的显示颜色,同样可以增强对拍摄对象的补光效果,进而增强电子设备通过摄像头采集的预览图像的显示效果。其中,可以根据电子设备所处环境的色温值调整补光层的显示颜色,例如:当所处环境的色温值较低时,可以将补光层的显示颜色自动切换为黄光,而其他情况下可以将补光层的显示颜色切换为白光。这样,可以根据所处环境的色温值的不同,自适应的调整补光层的显示颜色,从而增强了补光层对拍摄对象的补光效果。
本发明实施例中,通过步骤401至403,由于电子设备可以获取所处环境的环境参数,并基于环境参数调节补光层的显示参数,这样,使得电子设备可以自动调节补光层的显示参数,从而可以增强电子设备的智能化程度, 进而增强用户体验。
需要说明的是,当调节补光层的显示参数后,参见图6,拍摄预览界面上可以显示有预览图像601后,用户可以调整自己的姿势,且电子设备可以采集到目标图像,其中,目标图像可以为补光层对完成补光之后的拍摄对象(可以是用户)进行采集得到的图像,同时,也可以为对完成姿势调整之后的用户进行采集得到的图像。
另外,在完成采集目标图像后,电子设备可以持续获取环境参数,并可以基于环境参数持续调节补光层的显示参数。
参见图7,图7是本发明实施例提供的拍摄补光方法的流程图。本实施例与上个实施例的主要区别在于:用户可以通过对目标控件的输入来调节补光层的显示参数。如图7所示,包括以下步骤:
步骤701、显示拍摄预览界面,所述拍摄预览界面包括补光层,所述拍摄预览界面还包括目标控件。
其中,拍摄预览界面和补光层的表述可以参见上述实施例中的相应表述,在此不再赘述。
步骤702、接收用户对所述目标控件的第一输入。
其中,第一输入的类型在此不做限定,例如:第一输入可以为语音输入,也可以为滑动输入或者触控输入等。
步骤703、响应于所述第一输入,调节所述补光层的显示参数。
其中,目标控件的具体类型在此不做限定,例如:目标控件可以为条状控件,当然,目标控件也可以为环形控件。
其中,显示参数也可以参见上述实施例中的相应表述,具体在此不再赘述。需要说明的是,每一种显示参数均可以对应有一个控件,例如:参见图8和图9,图8中显示有透明度调节控件801,图9中显示有目标控件901,且目标控件901可以为显示颜色调节控件901,当然,图10中还显示有显示亮度调节控件1001(可以用于调节补光层的显示亮度)。当然,作为另一种可选的实施方式,多种显示参数均可以共用同一个目标控件,可以通过指令切换目标控件控制的显示参数的种类。
可选地,所述显示参数包括显示颜色,所述目标控件包括目标子控件和 至少一个颜色标识;
所述接收用户对所述目标控件的第一输入,包括:
接收用户对所述目标子控件的第一输入,所述第一输入用于控制所述目标子控件由预设区域移动至所述至少一个颜色标识中的目标颜色标识所在的区域;
所述响应于所述第一输入,调节所述补光层的显示信息,包括:
响应于所述第一输入,调节所述补光层的显示颜色为目标颜色,所述目标颜色标识与所述目标颜色对应。
其中,参见图9,目标控件901可以呈环形设置,而目标子控件9011可以呈圆形设置,且可以位于目标控件901的预设区域(可以为中心区域或者中心偏左的区域等),而目标控件901还可以包括四个颜色标识,上述四个颜色标识沿逆时针方向依次可以分别为第一颜色标识9012、第二颜色标识9013、第三颜色标识9014和第四颜色标识9015,即上述四个颜色标识可以位于目标控件901的环形区域上。每一种颜色标识可以表示一种颜色,例如:第一颜色标识9012可以表示黄色、第二颜色标识9013可以表示淡绿色、第三颜色标识9014可以表示深蓝色、第四颜色标识9015可以表示黑色。
这样,通过移动目标子控件至目标颜色标识所在的区域,即可选定目标颜色,进而可以将补光层的颜色切换为目标颜色。
本发明实施方式中,通过目标子控件与颜色标识完成对目标颜色的选择,增加了目标颜色确定方式的多样性和灵活性。
可选地,所述预览界面还包括预览层,所述补光层叠加显示于所述预览层之上,且所述补光层包括镂空区域。
其中,镂空区域可以为透明度为大于预设阈值的补光层区域,参见图12,图12中包括预览层1201和补光层1202,其中,补光层1202包括镂空区域12022,而预览层1201上可以显示有预览图像12011,当然,镂空区域也可以为不设置补光层的区域,具体类型在此不做限定。
其中,预设阈值的具体取值在此不做限定,例如:预设阈值可以为50%、70%或者100%等。这样,由于镂空区域为透明度较高的补光层区域,从而使得用户可以清楚的看到预览层上的预览图像,进而使得预览图像的显示效果 较好。
其中,本发明实施方式也可以应用于上述实施例中。
本发明实施方式中,由于设置有镂空区域,则使得用户可以通过镂空区域观察预览层上的预览图像,这样,使得用户既可以观察到自己在预览图像上的姿势,并可以调整自己的姿势,同时还可以实现对用户的补光。
可选地,所述显示拍摄预览界面之后,所述方法还包括:
接收用户的第二输入;
响应于所述第二输入,更新所述补光层的镂空区域的显示。
其中,第二输入的表述也可以参见上述实施例中第一输入的相应表述,具体在此不再赘述。
其中,更新补光层的镂空区域的显示的具体方式在此不做限定,例如:可以更新镂空区域的形状、尺寸或者透明度等。
本发明实施方式中,由于可以根据用户的输入更新镂空区域的显示,从而进一步的增强了电子设备的智能化程度,提升了用户体验。
其中,本发明实施方式同样也可以应用于上述实施例中。
可选地,所述更新所述补光层的镂空区域的显示,包括以下至少一项:
更新所述补光层的镂空区域的形状;
更新所述补光层的镂空区域的尺寸;
以及,更新所述补光层的镂空区域的透明度。
其中,例如:可以将镂空区域的形状由圆形更新为椭圆形;可以将镂空区域的尺寸调大或者调低;可以将透明度调高或者调低。
当然,还可以更新镂空区域的显示颜色或者显示亮度等。
这样,本发明实施方式中,由于可以更新镂空区域的形状、尺寸和透明度等,从而增加了更新镂空区域的显示的多样性,进而使得镂空区域的显示更加灵活。
其中,本发明实施方式同样也可以应用于上述实施例中。
本发明实施例中,通过步骤701至703,用户可以通过目标控件来调节补光层的显示参数,从而增加了调节方式的多样性和灵活性。
需要说明的是,当调节补光层的显示参数后,参见图11,拍摄预览界面 上可以显示有预览图像1101后,用户可以调整自己的姿势,且电子设备可以采集到目标图像,其中,目标图像可以为补光层对补光之后的拍摄对象(可以是用户)进行采集得到的图像,同时,也可以为对调整姿势之后的用户进行采集得到的图像。
参见图13,图13是本发明实施例提供的电子设备的结构图,能实现上述实施例中拍摄补光方法的细节,并达到相同的效果。如图13所示,电子设备1300包括:
显示模块1301,用于显示拍摄预览界面,所述拍摄预览界面包括补光层;
第一调节模块1302,用于调节所述补光层的显示参数。
可选地,电子设备1300还包括:获取模块,用于获取所述电子设备所处环境的环境参数;
第一调节模块1302,还用于基于所述环境参数,调节所述补光层的显示参数;其中,所述环境参数包括以下至少一项:环境亮度值和色温值;所述显示参数包括以下至少一项:透明度、亮度和显示颜色。
可选地,在所述环境参数包括环境亮度值的情况下,所述显示参数包括透明度;第一调节模块1302,包括:
计算子模块,用于基于所述环境亮度值以及预设的亮度阈值,计算目标透明度;
第一调节子模块,用于调节所述补光层的透明度为所述目标透明度。
可选地,电子设备1300还包括:第二调节模块,用于基于所述环境参数,调节所述电子设备的屏幕的显示亮度。
可选地,计算子模块,还用于根据预设公式T=A×L/Y×B,计算目标透明度;其中,T为所述目标透明度,A为常数,L为所述环境亮度值,Y为所述亮度阈值,B为100%。
可选地,在所述环境参数包括色温值的情况下,所述显示参数包括显示颜色;其中,所述显示颜色与所述色温值相关联。
可选地,所述拍摄预览界面还包括目标控件;
所述第一调节模块1302,包括:
接收子模块,用于接收用户对所述目标控件的第一输入;
第二调节子模块,用于响应于所述第一输入,调节所述补光层的显示参数。
可选地,所述显示参数包括显示颜色,所述目标控件包括目标子控件和至少一个颜色标识;
接收子模块,还用于接收用户对所述目标子控件的第一输入,所述第一输入用于控制所述目标子控件由预设区域移动至所述至少一个颜色标识中的目标颜色标识所在的区域;
第二调节子模块,还用于响应于所述第一输入,调节所述补光层的显示颜色为目标颜色,所述目标颜色标识与所述目标颜色对应。
可选地,所述预览界面还包括预览层,所述补光层叠加显示于所述预览层之上,且所述补光层包括镂空区域。
可选地,电子设备1300还包括:
接收模块,用于接收用户的第二输入;
更新模块,用于响应于所述第二输入,更新所述补光层的镂空区域的显示。
可选地,所述更新模块,还用于包括以下至少一项:
更新所述补光层的镂空区域的形状;
更新所述补光层的镂空区域的尺寸;
以及,更新所述补光层的镂空区域的透明度。
本发明实施例提供的电子设备能够实现图1、图4和图7的方法实施例中电子设备实现的各个过程,为避免重复,这里不再赘述。本发明实施例中,由于拍摄预览界面中包括补光层,且补光层的光线可以照射至拍摄对象上,从而增强了摄像头获取的图像中拍摄对象的显示亮度,进而增强了图像的显示效果。
图14为实现本发明各个实施例的一种电子设备的硬件结构示意图。
该电子设备1400包括但不限于:射频单元1401、网络模块1402、音频输出单元1403、输入单元1404、传感器1405、显示单元1406、用户输入单元1407、接口单元1408、存储器1409、处理器1410、以及电源1411等部件。本领域技术人员可以理解,图14中示出的电子设备结构并不构成对电子设备 的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,电子设备包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、电子设备、以及计步器等。
其中,显示单元1406,用于显示拍摄预览界面,所述拍摄预览界面包括补光层。
处理器1410,用于调节所述补光层的显示参数。
可选地,处理器1410,还用于获取所述电子设备所处环境的环境参数;
处理器1410执行的所述调节所述补光层的显示参数,包括:
基于所述环境参数,调节所述补光层的显示参数;
其中,所述环境参数包括以下至少一项:环境亮度值和色温值;所述显示参数包括以下至少一项:透明度、亮度和显示颜色。
可选地,在所述环境参数包括环境亮度值的情况下,所述显示参数包括透明度;
处理器1410执行的所述基于所述环境参数,调节所述补光层的显示参数,包括:
基于所述环境亮度值以及预设的亮度阈值,计算目标透明度;
调节所述补光层的透明度为所述目标透明度。
可选地,处理器1410,还用于基于所述环境参数,调节所述电子设备的屏幕的显示亮度。
可选地,处理器1410执行的所述基于所述环境亮度值以及预设的亮度阈值,计算目标透明度,包括:
根据预设公式T=A×L/Y×B,计算目标透明度;
其中,T为所述目标透明度,A为常数,L为所述环境亮度值,Y为所述亮度阈值,B为100%。
可选地,在所述环境参数包括色温值的情况下,所述显示参数包括显示颜色;其中,所述显示颜色与所述色温值相关联。
可选地,所述拍摄预览界面还包括目标控件;处理器1410执行的所述调节所述补光层的显示参数,包括:
用户输入单元1407,用于接收用户对所述目标控件的第一输入;
处理器1410,用于响应于所述第一输入,调节所述补光层的显示参数。
可选地,所述显示参数包括显示颜色,所述目标控件包括目标子控件和至少一个颜色标识;
用户输入单元1407执行的所述接收用户对所述目标控件的第一输入,包括:
接收用户对所述目标子控件的第一输入,所述第一输入用于控制所述目标子控件由预设区域移动至所述至少一个颜色标识中的目标颜色标识所在的区域;
处理器1410执行的所述响应于所述第一输入,调节所述补光层的显示信息,包括:
响应于所述第一输入,调节所述补光层的显示颜色为目标颜色,所述目标颜色标识与所述目标颜色对应。
可选地,所述预览界面还包括预览层,所述补光层叠加显示于所述预览层之上,且所述补光层包括镂空区域。
可选地,用户输入单元1407还用于接收用户的第二输入;处理器1410还用于响应于所述第二输入,更新所述补光层的镂空区域的显示。
可选地,处理器1410执行的所述更新所述补光层的镂空区域的显示,包括以下至少一项:
更新所述补光层的镂空区域的形状;
更新所述补光层的镂空区域的尺寸;
以及,更新所述补光层的镂空区域的透明度。
本发明实施例提供的电子设备能够实现前述实施例中电子设备实现的各个过程,为避免重复,这里不再赘述。通过上述步骤,由于拍摄预览界面中包括补光层,且补光层的光线可以照射至拍摄对象上,从而增强了摄像头获取的图像中拍摄对象的显示亮度,进而增强了图像的显示效果。
应理解的是,本发明实施例中,射频单元1401可用于收发信息或通话过程中,信号的接收和发送,具体的,将来自基站的下行数据接收后,给处理器1410处理;另外,将上行的数据发送给基站。通常,射频单元1401包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工 器等。此外,射频单元1401还可以通过无线通信系统与网络和其他设备通信。
电子设备通过网络模块1402为用户提供了无线的宽带互联网访问,如帮助用户收发电子邮件、浏览网页和访问流式媒体等。
音频输出单元1403可以将射频单元1401或网络模块1402接收的或者在存储器1409中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元1403还可以提供与电子设备1400执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元1403包括扬声器、蜂鸣器以及受话器等。
输入单元1404用于接收音频或视频信号。输入单元1404可以包括图形处理器(Graphics Processing Unit,GPU)14041和麦克风14042,图形处理器14041对在视频捕获模式或第一图像捕获模式中由第一图像捕获装置(如摄像头)获得的静态图片或视频的第一图像数据进行处理。处理后的第一图像帧可以显示在显示单元1406上。经图形处理器14041处理后的第一图像帧可以存储在存储器1409(或其它存储介质)中或者经由射频单元1401或网络模块1402进行发送。麦克风14042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元1401发送到移动通信基站的格式输出。
电子设备1400还包括至少一种传感器1405,比如光传感器、运动传感器以及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板14061的亮度,接近传感器可在电子设备1400移动到耳边时,关闭显示面板14061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别电子设备姿态(比如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(比如计步器、敲击)等;传感器1405还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。
显示单元1406用于显示由用户输入的信息或提供给用户的信息。显示单元1406可包括显示面板14061,可以采用液晶显示器(Liquid Crystal Display, LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板14061。
用户输入单元1407可用于接收输入的数字或字符信息,以及产生与电子设备的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元1407包括触控面板14071以及其他输入设备14072。触控面板14071,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板14071上或在触控面板14071附近的操作)。触控面板14071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器1410,接收处理器1410发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板14071。除了触控面板14071,用户输入单元1407还可以包括其他输入设备14072。具体地,其他输入设备14072可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。
进一步的,触控面板14071可覆盖在显示面板14061上,当触控面板14071检测到在其上或附近的触摸操作后,传送给处理器1410以确定触摸事件的类型,随后处理器1410根据触摸事件的类型在显示面板14061上提供相应的视觉输出。虽然在图14中,触控面板14071与显示面板14061是作为两个独立的部件来实现电子设备的输入和输出功能,但是在某些实施例中,可以将触控面板14071与显示面板14061集成而实现电子设备的输入和输出功能,具体此处不做限定。
接口单元1408为外部装置与电子设备1400连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元1408可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到电子设备1400内的一个或多个元件或者可以用于在电子设备1400和外部装置之间传输数据。
存储器1409可用于存储软件程序以及各种数据。存储器1409可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(比如声音播放功能、第一图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(比如音频数据、电话本等)等。此外,存储器1409可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
处理器1410是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器1409内的软件程序和/或模块,以及调用存储在存储器1409内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。处理器1410可包括一个或多个处理单元;优选的,处理器1410可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器1410中。
电子设备1400还可以包括给各个部件供电的电源1411(比如电池),优选的,电源1411可以通过电源管理系统与处理器1410逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。
另外,电子设备1400包括一些未示出的功能模块,在此不再赘述。
优选的,本发明实施例还提供一种电子设备,包括处理器1410,存储器1409,存储在存储器1409上并可在所述处理器1410上运行的计算机程序,该计算机程序被处理器1410执行时实现上述一种拍摄补光方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述一种拍摄补光方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,所述的计算机可读存储介质,如只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或 者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。
上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明宗旨和权利要求所保护的范围情况下,还可做出很多形式,均属于本发明的保护之内。

Claims (24)

  1. 一种拍摄补光方法,应用于电子设备,包括:
    显示拍摄预览界面,所述拍摄预览界面包括补光层;
    调节所述补光层的显示参数。
  2. 根据权利要求1所述的方法,其中,所述调节所述补光层的显示参数之前,还包括:
    获取所述电子设备所处环境的环境参数;
    所述调节所述补光层的显示参数,包括:
    基于所述环境参数,调节所述补光层的显示参数;
    其中,所述环境参数包括以下至少一项:环境亮度值和色温值;所述显示参数包括以下至少一项:透明度、亮度和显示颜色。
  3. 根据权利要求2所述的方法,其中,在所述环境参数包括环境亮度值的情况下,所述显示参数包括透明度;
    所述基于所述环境参数,调节所述补光层的显示参数,包括:
    基于所述环境亮度值以及预设的亮度阈值,计算目标透明度;
    调节所述补光层的透明度为所述目标透明度。
  4. 根据权利要求2或3所述的方法,其中,所述获取所述电子设备所处环境的环境参数之后,所述方法还包括:
    基于所述环境参数,调节所述电子设备的屏幕的显示亮度。
  5. 根据权利要求3所述的方法,其中,所述基于所述环境亮度值以及预设的亮度阈值,计算目标透明度,包括:
    根据预设公式T=A×L/Y×B,计算目标透明度;
    其中,T为所述目标透明度,A为常数,L为所述环境亮度值,Y为所述亮度阈值,B为100%。
  6. 根据权利要求2所述的方法,其中,在所述环境参数包括色温值的情况下,所述显示参数包括显示颜色;其中,所述显示颜色与所述色温值相关联。
  7. 根据权利要求1所述的方法,其中,所述拍摄预览界面还包括目标控 件;
    所述调节所述补光层的显示参数,包括:
    接收用户对所述目标控件的第一输入;
    响应于所述第一输入,调节所述补光层的显示参数。
  8. 根据权利要求7所述的方法,其中,所述显示参数包括显示颜色,所述目标控件包括目标子控件和至少一个颜色标识;
    所述接收用户对所述目标控件的第一输入,包括:
    接收用户对所述目标子控件的第一输入,所述第一输入用于控制所述目标子控件由预设区域移动至所述至少一个颜色标识中的目标颜色标识所在的区域;
    所述响应于所述第一输入,调节所述补光层的显示信息,包括:
    响应于所述第一输入,调节所述补光层的显示颜色为目标颜色,所述目标颜色标识与所述目标颜色对应。
  9. 根据权利要求1所述的方法,其中,所述预览界面还包括预览层,所述补光层叠加显示于所述预览层之上,且所述补光层包括镂空区域。
  10. 根据权利要求9所述的方法,其中,所述显示拍摄预览界面之后,所述方法还包括:
    接收用户的第二输入;
    响应于所述第二输入,更新所述补光层的镂空区域的显示。
  11. 根据权利要求10所述的方法,其中,所述更新所述补光层的镂空区域的显示,包括以下至少一项:
    更新所述补光层的镂空区域的形状;
    更新所述补光层的镂空区域的尺寸;
    以及,更新所述补光层的镂空区域的透明度。
  12. 一种电子设备,包括:
    显示模块,用于显示拍摄预览界面,所述拍摄预览界面包括补光层;
    第一调节模块,用于调节所述补光层的显示参数。
  13. 根据权利要求12所述的电子设备,还包括:获取模块,用于获取所述电子设备所处环境的环境参数;
    第一调节模块,还用于基于所述环境参数,调节所述补光层的显示参数;其中,所述环境参数包括以下至少一项:环境亮度值和色温值;所述显示参数包括以下至少一项:透明度、亮度和显示颜色。
  14. 根据权利要求13所述的电子设备,其中,在所述环境参数包括环境亮度值的情况下,所述显示参数包括透明度;第一调节模块,包括:
    计算子模块,用于基于所述环境亮度值以及预设的亮度阈值,计算目标透明度;
    第一调节子模块,用于调节所述补光层的透明度为所述目标透明度。
  15. 根据权利要求13或14所述的电子设备,还包括:第二调节模块,用于基于所述环境参数,调节所述电子设备的屏幕的显示亮度。
  16. 根据权利要求14所述的电子设备,其中,计算子模块,还用于根据预设公式T=A×L/Y×B,计算目标透明度;其中,T为所述目标透明度,A为常数,L为所述环境亮度值,Y为所述亮度阈值,B为100%。
  17. 根据权利要求13所述的电子设备,其中,在所述环境参数包括色温值的情况下,所述显示参数包括显示颜色;其中,所述显示颜色与所述色温值相关联。
  18. 根据权利要求12所述的电子设备,其中,所述拍摄预览界面还包括目标控件;
    所述第一调节模块,包括:
    接收子模块,用于接收用户对所述目标控件的第一输入;
    第二调节子模块,用于响应于所述第一输入,调节所述补光层的显示参数。
  19. 根据权利要求18所述的电子设备,其中,所述显示参数包括显示颜色,所述目标控件包括目标子控件和至少一个颜色标识;
    接收子模块,还用于接收用户对所述目标子控件的第一输入,所述第一输入用于控制所述目标子控件由预设区域移动至所述至少一个颜色标识中的目标颜色标识所在的区域;
    第二调节子模块,还用于响应于所述第一输入,调节所述补光层的显示颜色为目标颜色,所述目标颜色标识与所述目标颜色对应。
  20. 根据权利要求12所述的电子设备,其中,所述预览界面还包括预览层,所述补光层叠加显示于所述预览层之上,且所述补光层包括镂空区域。
  21. 根据权利要求20所述的电子设备,还包括:
    接收模块,用于接收用户的第二输入;
    更新模块,用于响应于所述第二输入,更新所述补光层的镂空区域的显示。
  22. 根据权利要求21所述的电子设备,所述更新模块,还用于包括以下至少一项:
    更新所述补光层的镂空区域的形状;
    更新所述补光层的镂空区域的尺寸;
    以及,更新所述补光层的镂空区域的透明度。
  23. 一种电子设备,包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述处理器执行所述计算机程序时实现如权利要求1至11中任一项所述的拍摄补光方法中的步骤。
  24. 一种计算机可读存储介质,其上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至11中任一项所述的拍摄补光方法中的步骤。
PCT/CN2021/075782 2020-02-10 2021-02-07 拍摄补光方法、电子设备及介质 WO2021160065A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN202010085335.3A CN111246121B (zh) 2020-02-10 2020-02-10 拍摄补光方法、电子设备及介质
CN202010085335.3 2020-02-10

Publications (1)

Publication Number Publication Date
WO2021160065A1 true WO2021160065A1 (zh) 2021-08-19

Family

ID=70865611

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2021/075782 WO2021160065A1 (zh) 2020-02-10 2021-02-07 拍摄补光方法、电子设备及介质

Country Status (2)

Country Link
CN (1) CN111246121B (zh)
WO (1) WO2021160065A1 (zh)

Families Citing this family (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111246121B (zh) * 2020-02-10 2021-12-24 维沃移动通信有限公司 拍摄补光方法、电子设备及介质
CN114070916B (zh) * 2020-07-31 2023-04-28 华为技术有限公司 一种拍摄的补光方法及相关装置
CN112312019A (zh) * 2020-10-30 2021-02-02 维沃移动通信有限公司 补光方法、装置和电子设备
CN112702531B (zh) * 2020-12-29 2022-06-17 维沃移动通信有限公司 拍摄方法、装置及电子设备
US11722779B2 (en) 2021-06-22 2023-08-08 Snap Inc. Viewfinder ring flash
CN113380176B (zh) * 2021-06-23 2022-12-09 Tcl通讯(宁波)有限公司 移动终端屏幕显示色温自动调节方法、装置、终端及介质
US11683592B2 (en) 2021-06-30 2023-06-20 Snap Inc. Adaptive front flash view
CN113840097A (zh) * 2021-09-30 2021-12-24 联想(北京)有限公司 控制方法及装置

Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103369138A (zh) * 2013-06-28 2013-10-23 深圳市有方科技有限公司 数字设备的照片拍摄方法以及数字设备
US20150163410A1 (en) * 2013-12-10 2015-06-11 Semiconductor Energy Laboratory Co., Ltd. Display Device and Electronic Device
CN106027916A (zh) * 2016-07-18 2016-10-12 广东欧珀移动通信有限公司 一种补光拍照方法及终端
CN106331487A (zh) * 2016-08-25 2017-01-11 广东欧珀移动通信有限公司 一种屏幕补光方法、装置及移动终端
CN107333069A (zh) * 2017-06-29 2017-11-07 上海传英信息技术有限公司 一种亮屏补光前摄拍照方法及移动终端
CN108377336A (zh) * 2018-04-26 2018-08-07 青岛海信移动通信技术股份有限公司 一种屏幕补光拍照的方法及设备
CN110113536A (zh) * 2019-05-17 2019-08-09 Oppo广东移动通信有限公司 一种屏幕补光方法、装置、存储介质及智能终端
CN111246121A (zh) * 2020-02-10 2020-06-05 维沃移动通信有限公司 拍摄补光方法、电子设备及介质
CN111246111A (zh) * 2020-02-10 2020-06-05 维沃移动通信有限公司 拍摄方法、电子设备及介质

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2018074421A (ja) * 2016-10-31 2018-05-10 キヤノン株式会社 撮像装置及びその制御方法並びにプログラム
CN107566717B (zh) * 2017-08-08 2020-05-05 维沃移动通信有限公司 一种拍摄方法、移动终端及计算机可读存储介质
CN108810422B (zh) * 2018-06-11 2020-11-20 北京小米移动软件有限公司 拍摄环境的补光方法、装置及计算机可读存储介质
CN109302564B (zh) * 2018-10-31 2021-01-08 维沃移动通信(杭州)有限公司 一种拍摄方法及移动终端

Patent Citations (9)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103369138A (zh) * 2013-06-28 2013-10-23 深圳市有方科技有限公司 数字设备的照片拍摄方法以及数字设备
US20150163410A1 (en) * 2013-12-10 2015-06-11 Semiconductor Energy Laboratory Co., Ltd. Display Device and Electronic Device
CN106027916A (zh) * 2016-07-18 2016-10-12 广东欧珀移动通信有限公司 一种补光拍照方法及终端
CN106331487A (zh) * 2016-08-25 2017-01-11 广东欧珀移动通信有限公司 一种屏幕补光方法、装置及移动终端
CN107333069A (zh) * 2017-06-29 2017-11-07 上海传英信息技术有限公司 一种亮屏补光前摄拍照方法及移动终端
CN108377336A (zh) * 2018-04-26 2018-08-07 青岛海信移动通信技术股份有限公司 一种屏幕补光拍照的方法及设备
CN110113536A (zh) * 2019-05-17 2019-08-09 Oppo广东移动通信有限公司 一种屏幕补光方法、装置、存储介质及智能终端
CN111246121A (zh) * 2020-02-10 2020-06-05 维沃移动通信有限公司 拍摄补光方法、电子设备及介质
CN111246111A (zh) * 2020-02-10 2020-06-05 维沃移动通信有限公司 拍摄方法、电子设备及介质

Also Published As

Publication number Publication date
CN111246121B (zh) 2021-12-24
CN111246121A (zh) 2020-06-05

Similar Documents

Publication Publication Date Title
WO2021160065A1 (zh) 拍摄补光方法、电子设备及介质
WO2021136268A1 (zh) 拍摄方法及电子设备
WO2020253382A1 (zh) 信息显示方法及终端设备
WO2019174628A1 (zh) 拍照方法及移动终端
CN110266930A (zh) 图像拍摄的补光方法、移动终端及灯光调节方法
WO2020199984A1 (zh) 摄像头模组、移动终端及控制方法
CN107798303A (zh) 一种调整屏幕背光的方法及移动终端
WO2021098672A1 (zh) 显示方法及电子设备
CN109361867B (zh) 一种滤镜处理方法及移动终端
WO2021057735A1 (zh) 图像处理方法、装置、电子设备和介质
WO2021136091A1 (zh) 闪光灯的补光方法和电子设备
CN107995437B (zh) 照片拍摄打光方法及移动终端
WO2021047325A1 (zh) 显示面板的控制方法及电子设备
WO2020238497A1 (zh) 图标移动方法及终端设备
CN108040209B (zh) 一种拍摄方法和移动终端
WO2021185139A1 (zh) 电子设备及屏幕显示方法
CN111031253B (zh) 一种拍摄方法及电子设备
WO2021036659A1 (zh) 视频录制方法及电子设备
CN110164372B (zh) 终端设备、屏幕亮度调节方法及装置
WO2021115172A1 (zh) 显示方法及电子设备
US11863901B2 (en) Photographing method and terminal
WO2021147911A1 (zh) 移动终端、拍摄模式的检测方法及存储介质
CN109302564B (zh) 一种拍摄方法及移动终端
WO2021083114A1 (zh) 照片查看方法及电子设备
CN111246111B (zh) 拍摄方法、电子设备及介质

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application

Ref document number: 21753386

Country of ref document: EP

Kind code of ref document: A1

NENP Non-entry into the national phase

Ref country code: DE

122 Ep: pct application non-entry in european phase

Ref document number: 21753386

Country of ref document: EP

Kind code of ref document: A1

32PN Ep: public notification in the ep bulletin as address of the adressee cannot be established

Free format text: NOTING OF LOSS OF RIGHTS PURSUANT TO RULE 112(1) EPC (EPO FORM 1205A DATED 22/02/2023)

122 Ep: pct application non-entry in european phase

Ref document number: 21753386

Country of ref document: EP

Kind code of ref document: A1