WO2021136091A1 - 闪光灯的补光方法和电子设备 - Google Patents

闪光灯的补光方法和电子设备 Download PDF

Info

Publication number
WO2021136091A1
WO2021136091A1 PCT/CN2020/139441 CN2020139441W WO2021136091A1 WO 2021136091 A1 WO2021136091 A1 WO 2021136091A1 CN 2020139441 W CN2020139441 W CN 2020139441W WO 2021136091 A1 WO2021136091 A1 WO 2021136091A1
Authority
WO
WIPO (PCT)
Prior art keywords
color temperature
image
temperature distribution
light
scene image
Prior art date
Application number
PCT/CN2020/139441
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 WO2021136091A1 publication Critical patent/WO2021136091A1/zh

Links

Images

Classifications

    • GPHYSICS
    • G03PHOTOGRAPHY; CINEMATOGRAPHY; ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ELECTROGRAPHY; HOLOGRAPHY
    • G03BAPPARATUS OR ARRANGEMENTS FOR TAKING PHOTOGRAPHS OR FOR PROJECTING OR VIEWING THEM; APPARATUS OR ARRANGEMENTS EMPLOYING ANALOGOUS TECHNIQUES USING WAVES OTHER THAN OPTICAL WAVES; ACCESSORIES THEREFOR
    • G03B15/00Special procedures for taking photographs; Apparatus therefor
    • G03B15/02Illuminating scene
    • G03B15/06Special arrangements of screening, diffusing, or reflecting devices, e.g. in studio
    • GPHYSICS
    • G02OPTICS
    • G02FOPTICAL DEVICES OR ARRANGEMENTS FOR THE CONTROL OF LIGHT BY MODIFICATION OF THE OPTICAL PROPERTIES OF THE MEDIA OF THE ELEMENTS INVOLVED THEREIN; NON-LINEAR OPTICS; FREQUENCY-CHANGING OF LIGHT; OPTICAL LOGIC ELEMENTS; OPTICAL ANALOGUE/DIGITAL CONVERTERS
    • G02F1/00Devices or arrangements for the control of the intensity, colour, phase, polarisation or direction of light arriving from an independent light source, e.g. switching, gating or modulating; Non-linear optics
    • G02F1/01Devices or arrangements for the control of the intensity, colour, phase, polarisation or direction of light arriving from an independent light source, e.g. switching, gating or modulating; Non-linear optics for the control of the intensity, phase, polarisation or colour 
    • G02F1/15Devices or arrangements for the control of the intensity, colour, phase, polarisation or direction of light arriving from an independent light source, e.g. switching, gating or modulating; Non-linear optics for the control of the intensity, phase, polarisation or colour  based on an electrochromic effect
    • G02F1/163Operation of electrochromic cells, e.g. electrodeposition cells; Circuit arrangements therefor
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/56Cameras or camera modules comprising electronic image sensors; Control thereof provided with illuminating means

Definitions

  • the embodiments of the present invention relate to the technical field of electronic devices, and in particular, to a method for supplementing light of a flash and an electronic device.
  • the current flash technology will fill in the overall light of the captured image.
  • This method of fill light greatly limits the shooting effect of the camera and is difficult to be effective. Improve image quality and affect user experience to a certain extent.
  • the embodiments of the present invention provide a method for supplementing light of a flash and an electronic device to solve the problem that the supplementary light method in the related art limits the shooting effect of the camera and is difficult to effectively improve the image quality.
  • a method for supplementing light of a flash lamp which is applied to an electronic device.
  • the electronic device includes a flash lamp and an electrochromic film.
  • the electrochromic film is set in the light emission direction of the flash lamp.
  • the film includes multiple electrochromic units, and the method includes:
  • the flash is activated to fill the scene image; wherein, the second color temperature distribution characteristic of the light irradiated on the scene image matches the first color temperature distribution characteristic.
  • an electronic device in a second aspect, includes a flash lamp and an electrochromic film.
  • the electrochromic film is arranged in the light emission direction of the flash lamp.
  • the electrochromic film includes a plurality of electrochromic units.
  • the electronic device further includes:
  • Image acquisition module used to acquire scene images in the preview screen
  • the color temperature determination module is used to determine the first color temperature distribution feature of the scene image
  • a voltage adjustment module for adjusting the driving voltage of a plurality of electrochromic units based on the first color temperature distribution feature
  • the light supplement module is used to activate the flash to supplement the light of the scene image; wherein the second color temperature distribution characteristic of the light irradiated on the scene image matches the first color temperature distribution characteristic.
  • an electronic device in a third aspect, includes a processor, a memory, and a computer program that is stored on the memory and can run on the processor. The steps of the fill light method.
  • a computer-readable storage medium is provided, and a computer program is stored on the computer-readable storage medium.
  • the computer program is executed by a processor, the steps of the flash fill light method as in the first aspect are realized.
  • the zone color temperature control of the flash can be achieved by controlling the driving voltages of multiple electrochromic units, and the color temperature distribution characteristics of the light supplemented to the scene image are matched with the color temperature distribution characteristics of the scene image, so as to realize the control of the scene
  • the intelligent zone color temperature control of the image improves the shooting effect, facilitates the improvement of image quality, and brings a better shooting experience for users.
  • FIG. 1 is a schematic flowchart of a method for supplementing light of a flash provided by an embodiment of the present invention
  • FIG. 2 is a schematic diagram of an example of partial components such as a flashlight of an electronic device provided by an embodiment of the present invention
  • FIG. 3 is a schematic diagram of an example of partitioning scene images in a flash fill light method provided by an embodiment of the present invention
  • FIG. 4 is a schematic diagram of an example of the principle of the fill light area in the fill light method of a flash provided by an embodiment of the present invention
  • FIG. 5 is a schematic diagram of an example of fill light of a scene image in a method for fill light of a flash provided by an embodiment of the present invention
  • FIG. 6 is a schematic flowchart of a method for supplementing light of a flashlight according to another embodiment of the present invention.
  • FIG. 7 is a schematic structural diagram of an electronic device provided by an embodiment of the present invention.
  • FIG. 8 is a schematic diagram of the hardware structure of an electronic device implementing various embodiments of the present invention.
  • an embodiment of the present invention provides a flash fill light method 100.
  • the method can be applied to an electronic device.
  • the method can be applied to software or hardware installed in the electronic device.
  • the electronic equipment mentioned in each embodiment of this specification includes a flash lamp, an electrochromic film (or an electrochromic film array), and a control unit.
  • the electrochromic film is arranged in the light emission direction of the flash lamp, and the electrochromic film is roughly in the shape of a circular film, which can specifically cover the light emission position of the flash lamp.
  • the electrochromic film is roughly on the back of the electronic device. The surfaces are parallel or overlapping.
  • the electrochromic film includes a plurality of electrochromic units.
  • the shape of the plurality of electrochromic units may be square, and the plurality of electrochromic units are arranged in an array of rows and columns. .
  • the control unit is electrically connected to a plurality of electrochromic units, and the control unit is used to control the driving voltage of the plurality of electrochromic units, so that the color temperature of the light passing through each electrochromic unit can be adjusted to realize the color temperature division of the image Precise adjustment, specifically, the realization principle will be introduced in detail later.
  • the method embodiment 100 includes S102, S104, S106, and S108.
  • S102 Collect the scene image in the preview screen.
  • the back of the electronic device (specifically a mobile phone) shown in Figure 2 includes three cameras.
  • the camera is located near the left side of the flash.
  • the camera can be used to pre-shoot the shooting scene, that is, capture preview The scene image in the screen.
  • S104 Determine the first color temperature distribution feature of the scene image.
  • this step can partition the scene image by the processor of the electronic device, for example, as shown in FIG. 3, divided into a plurality of square image areas of equal area and size; and then determine the size of each image area one by one.
  • the color temperature value can specifically be calculated by calculating the average value of the color temperature value of each image area, and finally obtain the first color temperature distribution characteristic of the scene image.
  • S104 may specifically partition the scene image to obtain multiple image areas; generate a color temperature distribution matrix based on the color temperature value of each image area; obtain the first color temperature based on the color temperature distribution matrix Distribution characteristics.
  • the color temperature distribution matrix is the detailed data of the color temperature distribution.
  • the color temperature distribution matrix includes the color temperature value of each image area.
  • the color temperature values of multiple adjacent image areas may be equal or close;
  • the first color temperature distribution feature may be based on The color temperature distribution map of the scene image obtained by the above color temperature distribution matrix.
  • the first color temperature distribution feature can also be a combination of color temperature values in the color temperature distribution matrix that are close to the image area, and the first color temperature distribution feature as shown in FIG. 3 can be obtained.
  • the first color temperature distribution feature of the scene image is embodied as: the upper half of the scene image is warmer, for example, the color temperature values are all lower than a certain threshold; the lower half of the scene image is colder, for example The color temperature values are all higher than a certain threshold.
  • S106 Adjust the driving voltages of the multiple electrochromic units based on the first color temperature distribution characteristic.
  • the driving voltages of the multiple electrochromic units can be obtained by looking up a table or substituting the above-mentioned first color temperature distribution feature into a preset formula.
  • a comparison table between the first color temperature distribution feature (the color temperature value in) and the driving voltage of the multiple electrochromic units can be established in advance; or the first color temperature distribution feature and the multiple electrochromic units can be pre-determined The conversion formula of the drive voltage of the unit.
  • the second color temperature distribution feature of the light irradiated on the scene image matches the first color temperature distribution feature.
  • the matching mentioned in S108 may specifically be that the color temperature value of the second color temperature distribution feature is inversely related to the color temperature value of the first color temperature distribution feature.
  • the first color temperature distribution feature of the scene image is embodied as: the upper half of the scene image is warmer (the color temperature value is lower), and the lower half of the image is colder (color temperature value). Higher);
  • the driving voltage of multiple electrochromic units is adjusted by the control unit, and the second color temperature distribution characteristic of the light supplement on the scene image is embodied as: the upper half of the scene image is supplemented with cold light (the color temperature value is higher ); Supplement warm light in the lower half of the scene image (lower color temperature value), as shown in Figure 4 and Figure 5, where the circular area in Figure 5 is the entire fill light range of the fill light, Figure 5 The rectangular area in is the scene image area.
  • the control unit controls the driving voltage of the electrochromic unit to increase, the color temperature of the light passing through the electrochromic unit decreases (appears yellow light); when the control unit controls the driving voltage of the electrochromic unit to decrease , The color temperature of the light passing through the electrochromic unit increases (appears blue light).
  • the scene image can be collected, that is, the scene image can be obtained by shooting as generally understood.
  • the zone color temperature control of the flash lamp can be realized by controlling the driving voltage of a plurality of electrochromic units, and the color temperature distribution characteristics of the light supplemented to the scene image are matched with the color temperature distribution characteristics of the scene image. Realize the intelligent zone color temperature control of the scene image, improve the shooting effect, facilitate the improvement of the image quality, and bring a better shooting experience to the user.
  • the scene image is partitioned to obtain multiple image regions.
  • the shape of each image region can be It's a square.
  • the shape and area of an image area are equal to the shape and area of the scene image irradiated by light passing through an electrochromic unit.
  • the shape of the electrochromic unit can also be a square, and a plurality of electrochromic units are arranged in an array.
  • the light emitted by the flashlight passes through the electrochromic unit and irradiates the scene image (actually, it is irradiated on the scene image).
  • the scene corresponding to the scene image) can also be a square fill light area.
  • the position and area of the supplemental light area are equal to the positions and areas of the plurality of image areas.
  • this embodiment is actually equivalent to establishing a one-to-one correspondence between multiple image areas and multiple electrochromic units, so that multiple electrochromic units can easily perform multiple image areas of the scene image. Partition fill light.
  • the first color temperature distribution feature mentioned in Embodiment 100 includes the first color temperature value of the first image area and the second color temperature value of the second image area, the first color temperature value is greater than the second color temperature value, for example ,
  • the first image area is the lower half of the scene image, the average color temperature value of the first image area is 6500K (the first color temperature value);
  • the second image area is the upper half of the scene image, the second image The average color temperature value of the area is 3500K (the second color temperature value).
  • the above-mentioned second color temperature distribution feature includes the third color temperature value of the light irradiated in the first image area and the fourth color temperature value of the light irradiated in the second image area, the third color temperature value is less than the fourth color temperature value, for example, the third The color temperature value is 3500K, and the fourth color temperature value is 6500K.
  • This embodiment can directionally increase the color temperature for low-K warm light regions in the scene image; directionally reduce the color temperature for high-K cold light regions in the scene, realize synchronous adjustment of color temperature zones, and effectively improve the image shooting effect.
  • control unit Based on the color difference between the pre-collected scene image and the target image, the control unit adjusts the driving voltage of the multiple electrochromic units to adjust the second color temperature distribution characteristic.
  • the above-mentioned target image is, for example, a face image of a standard skin tone.
  • the pre-collected scene image is also a face image.
  • the purpose is to make the color difference between the collected scene image and the target image smaller and smaller, thereby improving the quality of the finally collected image.
  • the color temperature can also be referred to as coarse adjustment; and in this embodiment, the color temperature is based on the color difference.
  • the adjustment can be called fine adjustment, and the coarse adjustment and the fine adjustment can be carried out in the same color temperature direction (that is, both increase the color temperature or both decrease the color temperature).
  • the third color temperature value of the light irradiated in the first image area (the color temperature value of the smaller color temperature) and the fourth color temperature value of the light irradiated in the second image area (increase the color temperature) are obtained by coarse adjustment.
  • the third color temperature value is less than the fourth color temperature value.
  • This embodiment can reduce the third color temperature value of the light irradiated in the first image area and increase the fourth color temperature value of the light irradiated in the second image area. Color temperature value.
  • the embodiment 600 includes S602, S604, S606, S608, S610, and S612.
  • S602 Collect the scene image in the preview screen.
  • the electronic device in this embodiment is specifically a mobile phone.
  • the mobile phone pre-shoots the scene shot by the target to obtain the scene image.
  • S604 Determine the first color temperature distribution feature of the scene image.
  • the mobile phone processor can partition the scene image to obtain multiple image regions, as shown in Figure 3; generate a color temperature distribution matrix based on the color temperature value of each image region; obtain the first color temperature distribution based on the color temperature distribution matrix
  • the mobile phone processor can partition the scene image to obtain multiple image regions, as shown in Figure 3; generate a color temperature distribution matrix based on the color temperature value of each image region; obtain the first color temperature distribution based on the color temperature distribution matrix
  • S606 Transmit the first color temperature distribution characteristic data to the control unit.
  • S608 Adjust the driving voltage of the multiple electrochromic units.
  • control unit adjusts the driving voltage of the electrochromic unit according to the first color temperature distribution characteristic, so as to realize the corresponding color change control of each unit according to the color temperature zone of the captured image.
  • the LED flash will be activated according to the control signal of the mobile phone.
  • the light passes through the electrochromic film array, and the second color temperature distribution characteristic of the light irradiated on the scene image matches the first color temperature distribution characteristic.
  • this embodiment can directionally increase the color temperature for low-K warm light areas in the scene image; directionally reduce the color temperature for high-K cold light areas in the scene, realize synchronous adjustment of color temperature zones, and effectively improve the image shooting effect.
  • the zone color temperature control of the flash lamp can be realized by controlling the driving voltage of a plurality of electrochromic units, and the color temperature distribution characteristics of the light supplemented to the scene image are matched with the color temperature distribution characteristics of the scene image. Realize the intelligent zone color temperature control of the scene image, improve the shooting effect, facilitate the improvement of the image quality, and bring a better shooting experience to the user.
  • FIG. 7 is a schematic structural diagram of an electronic device according to an embodiment of the present invention.
  • the electronic device 700 includes a flash lamp and an electrochromic film, and the electrochromic film is arranged on the flash lamp. In the light emission direction, the electrochromic film includes a plurality of electrochromic units. As shown in FIG. 7, the electronic device 700 further includes:
  • the image collection module 702 can be used to collect scene images in the preview screen
  • the color temperature determination module 704 can be used to determine the first color temperature distribution feature of the scene image
  • the voltage adjustment module 706 can be used to adjust the driving voltage of a plurality of electrochromic units based on the first color temperature distribution feature
  • the fill light module 708 can be used to activate a flash to fill the scene image; wherein the second color temperature distribution characteristic of the light irradiated on the scene image matches the first color temperature distribution characteristic.
  • the electronic device of the flashlight in the embodiment of the present invention can realize the zone color temperature control of the flashlight by controlling the driving voltages of multiple electrochromic units, and the color temperature distribution characteristics of the light supplemented to the scene image are matched with the color temperature distribution characteristics of the scene image.
  • the intelligent zone color temperature control of the scene image improves the shooting effect, facilitates the improvement of image quality, and brings a better shooting experience for users.
  • the color temperature determination module 702 may be specifically used for
  • the first color temperature distribution characteristic is obtained based on the color temperature distribution matrix.
  • the shape and area of an image area are equal to the shape and area of the scene image irradiated by light passing through an electrochromic unit.
  • the first color temperature distribution feature includes a first color temperature value of the first image area and a second color temperature value of the second image area, and the first color temperature value is greater than the second color temperature value;
  • the second color temperature distribution feature includes a third color temperature value of the light irradiated in the first image area and a fourth color temperature value of the light irradiated in the second image area, the third color temperature value being less than the fourth color temperature value.
  • the image acquisition module 702 may also be used to pre-collect scene images
  • the voltage adjustment module 706 can also be used to adjust the driving voltages of multiple electrochromic units through the control unit based on the color difference between the pre-collected scene image and the target image to adjust the second color temperature distribution characteristic.
  • the electronic device can refer to the flow of the method for supplementing the light of the flashlight corresponding to the embodiment of the present invention, and each unit/module in the electronic device and the other operations and/or functions mentioned above are used to realize the supplementary light of the flashlight.
  • the corresponding process in the optical method will not be repeated here.
  • the electronic device 800 includes but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, User input unit 807, interface unit 808, memory 809, processor 810, power supply 811 and other components.
  • a radio frequency unit 801 for example, a radio frequency unit 801
  • a network module 802 for example, a radio frequency unit 801
  • an audio output unit 803 an input unit 804
  • a sensor 805 a display unit 806, User input unit 807, interface unit 808, memory 809, processor 810, power supply 811 and other components.
  • the electronic device may include more or fewer 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, palmtop computers, vehicle-mounted terminals, wearable devices, and pedometers.
  • the above-mentioned electronic device 800 further includes a flash lamp and an electrochromic film.
  • the electrochromic film is arranged in the light emission direction of the flash lamp.
  • the electrochromic film includes a plurality of electrochromic units.
  • the senor 805 is used to collect the scene image in the preview picture
  • the processor 810 is configured to determine the first color temperature distribution characteristic of the scene image; adjust the driving voltage of a plurality of electrochromic units based on the first color temperature distribution characteristic; activate the flash to fill the scene image; wherein, illuminate the scene image
  • the second color temperature distribution characteristic of the light matches the first color temperature distribution characteristic.
  • the electronic device in the embodiment of the present invention can realize the zone color temperature control of the flashlight by controlling the driving voltages of multiple electrochromic units, and the color temperature distribution characteristics of the light supplemented to the scene image are matched with the color temperature distribution characteristics of the scene image.
  • the intelligent zone color temperature control of the scene image improves the shooting effect, facilitates the improvement of image quality, and brings a better shooting experience for users.
  • the radio frequency unit 801 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 810; Uplink data is sent to the base station.
  • the radio frequency unit 801 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 801 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 802, such as helping users to send and receive emails, browse web pages, and access streaming media.
  • the audio output unit 803 can convert the audio data received by the radio frequency unit 801 or the network module 802 or stored in the memory 809 into audio signals and output them as sounds. Moreover, the audio output unit 803 may also provide audio output related to a specific function performed by the electronic device 800 (for example, call signal reception sound, message reception sound, etc.).
  • the audio output unit 803 includes a speaker, a buzzer, a receiver, and the like.
  • the input unit 804 is used to receive audio or video signals.
  • the input unit 804 may include a graphics processing unit (GPU) 8041 and a microphone 8042, and the graphics processor 8041 is configured to monitor images of still pictures or videos obtained by an image capture device (such as a camera) in a video capture mode or an image capture mode. Data is processed.
  • the processed image frame may be displayed on the display unit 806.
  • the image frame processed by the graphics processor 8041 may be stored in the memory 809 (or other storage medium) or sent via the radio frequency unit 801 or the network module 802.
  • the microphone 8042 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 the mobile communication base station via the radio frequency unit 801 for output in the case of a telephone call mode.
  • the electronic device 800 also includes at least one sensor 805, 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 8061 according to the brightness of the ambient light.
  • the proximity sensor can close the display panel 8061 and the display panel 8061 when the electronic device 800 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).
  • sensor 805 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 806 is used to display information input by the user or information provided to the user.
  • the display unit 806 may include a display panel 8061, and the display panel 8061 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 807 can be used to receive inputted numeric or character information, and generate key signal input related to user settings and function control of the electronic device.
  • the user input unit 807 includes a touch panel 8071 and other input devices 8072.
  • the touch panel 8071 also known as the 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 8071 or near the touch panel 8071. operating).
  • the touch panel 8071 may include two parts: a touch detection device and a touch controller.
  • the touch detection device detects the user's touch position, 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 810, the command sent by the processor 810 is received and executed.
  • the touch panel 8071 can be implemented in multiple types such as resistive, capacitive, infrared, and surface acoustic wave.
  • the user input unit 807 may also include other input devices 8072.
  • other input devices 8072 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 8071 can cover the display panel 8061.
  • the touch panel 8071 detects a touch operation on or near it, it transmits it to the processor 810 to determine the type of the touch event, and then the processor 810 determines the type of the touch event according to the touch.
  • the type of event provides corresponding visual output on the display panel 8061.
  • the touch panel 8071 and the display panel 8061 are used as two independent components to implement the input and output functions of the electronic device, in some embodiments, the touch panel 8071 and the display panel 8061 can be integrated
  • the implementation of the input and output functions of the electronic device is not specifically limited here.
  • the interface unit 808 is an interface for connecting an external device and the electronic device 800.
  • 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 808 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 800 or can be used to connect the electronic device 800 to an external device. Transfer data between devices.
  • the memory 809 can be used to store software programs and various data.
  • the memory 809 may mainly include a program storage area and a data storage area.
  • the program storage area may store an operating system, an application program required by at least one function (such as a sound playback function, an image playback function, etc.), etc.; Data (such as audio data, phone book, etc.) created by the use of mobile phones, etc.
  • the memory 809 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 810 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 809, and calls the data stored in the memory 809. , Perform various functions of electronic equipment and process data, so as to monitor the electronic equipment as a whole.
  • the processor 810 may include one or more processing units; optionally, the processor 810 may integrate an application processor and a modem processor, where the application processor mainly processes the operating system, user interface, application programs, etc., and the modem
  • the adjustment processor mainly deals with wireless communication. It can be understood that the foregoing modem processor may not be integrated into the processor 810.
  • the electronic device 800 may also include a power source 811 (such as a battery) for supplying power to various components.
  • a power source 811 such as a battery
  • the power source 811 may be logically connected to the processor 810 through a power management system, so as to manage charging, discharging, and power consumption through the power management system. Management and other functions.
  • the electronic device 800 includes some functional modules not shown, which will not be repeated here.
  • an embodiment of the present invention also provides an electronic device, including a processor 810, a memory 809, and a computer program stored on the memory 809 and running on the processor 810.
  • the computer program is executed when the processor 810 is executed.
  • 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.
  • each process of the above embodiment of the flash fill light method is realized, and the same can be achieved. In order to avoid repetition, I won’t repeat them here.
  • Examples of computer-readable storage media are non-transitory computer-readable storage media, such as Read-Only Memory (ROM), Random Access Memory (RAM), magnetic disks, or optical disks.
  • 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

  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Nonlinear Science (AREA)
  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Optics & Photonics (AREA)
  • Studio Devices (AREA)
  • Control Of Indicators Other Than Cathode Ray Tubes (AREA)

Abstract

一种闪光灯的补光方法(100)和电子设备(700)。补光方法(100)应用于电子设备(700),电子设备(700)包括闪光灯和电致变色薄膜,电致变色薄膜设置在闪光灯的光线出射方向,电致变色薄膜包括多个电致变色单元,补光方法(100)包括:采集预览画面中的场景图像(S102);确定场景图像的第一色温分布特征(S104);基于第一色温分布特征,调整多个电致变色单元的驱动电压(S106);启动闪光灯对场景图像进行补光(S108),其中,照射在场景图像上的光线的第二色温分布特征与第一色温分布特征相匹配。

Description

闪光灯的补光方法和电子设备
相关申请的交叉引用
本申请主张2019年12月30日在中国提交的中国专利申请号201911389525.8的优先权,其全部内容通过引用包含于此。
技术领域
本发明实施例涉及电子设备技术领域,尤其涉及一种闪光灯的补光方法和电子设备。
背景技术
随着电子设备技术的快速发展,电子设备(例如手机)的拍摄功能越来越强,但作为电子设备的摄像头助手—闪光灯,其能力却没有什么实质性的进步。闪光灯所提供的服务依然是为所拍摄画面进行全局性的补光,难以满足用户日益增长的多样化需求。
具体地,例如,当用户在暗光且光线复杂的环境下进行拍摄时,当前的闪光灯技术会对所拍摄画面进行整体的补光,这种补光方式大大限制了摄像头的拍摄效果,难以有效提升图像质量,并在一定程度上影响用户体验。
发明内容
本发明实施例提供一种闪光灯的补光方法和电子设备,以解决相关技术中的补光方式限制摄像头的拍摄效果,难以有效提升图像质量的问题。
为了解决上述技术问题,第一方面,提供了一种闪光灯的补光方法,应用于电子设备,电子设备包括闪光灯和电致变色薄膜,电致变色薄膜设置在闪光灯的光线出射方向,电致变色薄膜包括多个电致变色单元,方法包括:
采集预览画面中的场景图像;
确定场景图像的第一色温分布特征;
基于第一色温分布特征,调整多个电致变色单元的驱动电压;
启动闪光灯以对场景图像进行补光;其中,照射在场景图像上的光线的第二色温分布特征与第一色温分布特征相匹配。
第二方面,提供了一种电子设备,电子设备包括闪光灯和电致变色薄膜,电致变色薄膜设置在闪光灯的光线出射方向,电致变色薄膜包括多个电致变色单元,电子设备还包括:
图像采集模块,用于采集预览画面中的场景图像;
色温确定模块,用于确定场景图像的第一色温分布特征;
电压调整模块,用于基于第一色温分布特征,调整多个电致变色单元的驱动电压;
补光模块,用于启动闪光灯以对场景图像进行补光;其中,照射在场景图像上的光线的第二色温分布特征与第一色温分布特征相匹配。
第三方面,提供了一种电子设备,该电子设备包括处理器、存储器及存储在存储器上并可在处理器上运行的计算机程序,计算机程序被处理器执行时实现如第一方面的闪光灯的补光方法的步骤。
第四方面,提供了一种计算机可读存储介质,计算机可读存储介质上存储计算机程序,计算机程序被处理器执行时实现如第一方面的闪光灯的补光方法的步骤。
在本发明实施例中,通过控制多个电致变色单元的驱动电压即可实现闪光灯的分区色温控制,且对场景图像补充的光线的色温分布特征与场景图像的色温分布特征匹配,实现对场景图像智能化的分区色温控制,提升拍摄效果,便于提升图像质量,为用户带来更好的拍摄体验。
附图说明
此处所说明的附图用来提供对本发明的进一步理解,构成本发明的一部 分,本发明的示意性实施例及其说明用于解释本发明,并不构成对本发明的不当限定。在附图中:
图1是本发明实施例提供的闪光灯的补光方法流程示意图;
图2是本发明实施例提供的电子设备的闪光灯等局部部件的示例的示意图;
图3是本发明实施例提供的闪光灯的补光方法中对场景图像进行分区的示例的示意图;
图4是本发明实施例提供的闪光灯的补光方法中的补光区域原理示例的示意图;
图5是本发明实施例提供的闪光灯的补光方法中场景图像的补光示例的示意图;
图6是本发明另一实施例提供的闪光灯的补光方法流程示意图;
图7是本发明实施例提供的电子设备结构示意图;
图8为实现本发明各个实施例的电子设备的硬件结构示意图。
具体实施方式
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
如图1所示,本发明的实施例提供一种闪光灯的补光方法100,该方法可以应用于电子设备,换言之,该方法可以应用于安装在电子设备的软件或硬件。
如图2所示,本说明书各个实施例中提到的电子设备包括闪光灯、电致变色薄膜(或称电致变色薄膜阵列)和控制单元。
在一个实施例中,电致变色薄膜设置在闪光灯的光线出射方向,电致变色 薄膜大致呈圆形的薄膜状,具体可以覆盖在闪光灯的光线出射位置,电致变色薄膜大致和电子设备的背部表面平行或重叠。
在一个实施例中,电致变色薄膜包括多个电致变色单元,可选地,这多个电致变色单元的形状均可以是正方形,且这多个电致变色单元呈行列的阵列排布。
控制单元与多个电致变色单元均电连接,该控制单元用于控制多个电致变色单元的驱动电压,从而可以调节透过每个电致变色单元的光线的色温,实现图像的色温分区精准调节,具体地,实现原理后续将会详细介绍。
如图1所示,该方法实施例100包括S102、S104、S106和S108。
S102:采集预览画面中的场景图像。
如图2所示,图2所示的电子设备(具体可以是手机)的背部包括有三颗摄像头,摄像头位于闪光灯的左侧位置附近,在S102可以通过摄像头对拍摄场景进行预拍摄,即采集预览画面中的场景图像。
S104:确定场景图像的第一色温分布特征。
如图3所示,该步骤可以通过电子设备的处理器对场景图像进行分区,例如,如图3所示的分为多个面积和大小相等的正方形的图像区域;然后逐一判断各个图像区域的色温值,具体可以是计算每个图像区域的色温值的平均值,最终得到场景图像的第一色温分布特征。
在一个具体的例子中,S104具体可以是对场景图像进行分区,以得到多个图像区域;基于每个图像区域的色温值,生成色温分布矩阵;基于所述色温分布矩阵得到所述第一色温分布特征。
需要说明的是,色温分布矩阵是色温分布的详细数据,色温分布矩阵包括每个图像区域的色温值,多个相邻的图像区域的色温值可能相等或接近;第一色温分布特征可以是基于上述色温分布矩阵得到的场景图像的色温分布图。在一个具体的例子中,第一色温分布特征还可以是对色温分布矩阵中的色温值相接近图像区域的进行合并处理,可以得到如图3所示的第一色温分布特征。
在图3所示的例子中,场景图像的第一色温分布特征体现为:场景图像的上半部分图像偏暖,例如色温值均低于一定阈值;场景图像的下半部分图像偏冷,例如色温值均高于一定阈值。
S106:基于第一色温分布特征,调整多个电致变色单元的驱动电压。
在一个例子中,在S106可以通过查表或是将上述第一色温分布特征代入一预设的公式来得到多个电致变色单元的驱动电压。当然,该实施例执行之前可以预先建立第一色温分布特征(中的色温值)和多个电致变色单元的驱动电压的对照表;或者是预先确定第一色温分布特征和多个电致变色单元的驱动电压的换算公式。
S108:启动闪光灯以对场景图像进行补光。
在一个例子中,照射在场景图像上的光线的第二色温分布特征与第一色温分布特征相匹配。在中S108提到的相匹配,具体可以是第二色温分布特征的色温值与第一色温分布特征的色温值反相关。
具体地,例如,在图3所示的例子中,场景图像的第一色温分布特征体现为:场景图像的上半部分图像偏暖(色温值较低),下半部分图像偏冷(色温值较高);该步骤则通过控制单元调节多个电致变色单元的驱动电压,在场景图像上补光的第二色温分布特征体现为:在场景图像的上半部分补充冷光(色温值较高);在场景图像的下半部分补充暖光(色温值较低),具体如图4和图5所示,其中,图5中的圆形区域为补光灯的整个补光范围,图5中的矩形区域为场景图像区域。
该实施例中,当控制单元控制电致变色单元的驱动电压升高时,通过该电致变色单元的光线的色温降低(呈现黄光);当控制单元控制电致变色单元的驱动电压降低时,通过该电致变色单元的光线的色温升高(呈现蓝光)。
需要说明的是,该实施例的S106中提到的“调整”多个电致变色单元的驱动电压,具体可以体现为以下三种情况的一种或多种的组合:
1)增大一些(可以是部分也可以是全部)电致变色单元的驱动电压;
2)减小一些(可以是部分也可以是全部)电致变色单元的驱动电压;
3)维持一些(可以是部分也可以是全部)电致变色单元的驱动电压不变。
可选地,该启动闪光灯以对场景图像进行补光之后,即可采集场景图像,即通常理解的拍摄得到场景图像。
本发明实施例闪光灯的补光方法,通过控制多个电致变色单元的驱动电压即可实现闪光灯的分区色温控制,且对场景图像补充的光线的色温分布特征与场景图像的色温分布特征匹配,实现对场景图像智能化的分区色温控制,提升拍摄效果,便于提升图像质量,为用户带来更好的拍摄体验。
可选地,在实施例100的S102中确定场景图像的第一色温分布特征时是对场景图像进行分区,以得到多个图像区域,具体如图3所示,每个图像区域的形状均可以是正方形。
在一个可选的实施例中,一个图像区域的形状及面积,与通过一个电致变色单元的光线照射在场景图像上的形状和面积相等。
具体例如,电致变色单元的形状也可以是正方形,多个电致变色单元呈行列的阵列排布,这样,闪光灯发出的光线通过电致变色单元后,照射在场景图像上(实际是照射在场景图像对应的场景中)还可以为正方形的补光区域。且该补光区域的位置以及面积与上述多个图像区域的位置以及面积相等。
该实施例通过上述设置,实际上相当于是建立了多个图像区域与多个电致变色单元的一一对应关系,这样即可方便通过多个电致变色单元对场景图像的多个图像区域进行分区补光。
可选地,在实施例100中提到的第一色温分布特征包括第一图像区域的第一色温值以及第二图像区域的第二色温值,第一色温值大于第二色温值,具体例如,在图3中,第一图像区域为场景图像的下半部分,第一图像区域的色温值均值为6500K(第一色温值);第二图像区域为场景图像的上半部分,第二图像区域的色温值均值为3500K(第二色温值)。
上述第二色温分布特征包括照射在第一图像区域的光线的第三色温值以 及照射在第二图像区域的光线的第四色温值,第三色温值小于第四色温值,具体例如,第三色温值为3500K,第四色温值为6500K。
该实施例可针对场景图像中的低K值暖光区域定向提升色温;针对场景中的高K值冷光区域定向降低色温,实现色温分区同步调节,有效幅提升图像拍摄效果。
可选地,前文各个实施例启动闪光灯以对场景图像进行补光之后,还可以包括如下步骤:
1)对场景图像进行预采集。该步骤是对分区补光后的场景图像进行预采集。
2)基于预采集后的场景图像与目标图像之间的色差,通过控制单元调整多个电致变色单元的驱动电压,以调整第二色温分布特征。
上述目标图像,例如是标准肤色的人脸图像,当然,预采集的场景图像也是人脸图像。
该实施例通过调整第二色温分布特征,目的是使得采集后的场景图像与目标图像之间的色差越来越小,从而提高最终采集得到的图像质量。
需要说明的是,在S106中调整多个电致变色单元的驱动电压,即实现对场景图像的分区色温调节,该色温还可以称作是粗调;而在该实施例中基于色差进行的色温调整则可以称作是微调,粗调和微调可以是朝着同一个色温方向进行的(即两者均是增加色温或两者均是减小色温)。
具体例如,在之前的例子中,粗调得到照射在第一图像区域的光线的第三色温值(较小色温的色温值)以及照射在第二图像区域的光线的第四色温值(增加色温后的色温值),第三色温值小于第四色温值,该实施例则可以减小照射在第一图像区域的光线的第三色温值,增大照射在第二图像区域的光线的第四色温值。
为详细说明本发明上述实施例提供的闪光灯的补光方法,以下将结合一个具体的实施例进行说明,该实施例以电子设备是手机为例进行介绍,该手机可 以包括有前文实施例介绍的闪光灯、电致变色薄膜阵列和控制单元,如图6所示,该实施例600包括S602、S604、S606、S608、S610和S612。
S602:采集预览画面中的场景图像。
该实施例中的电子设备具体是手机,该步骤中手机对目标拍摄的场景进行预拍摄,获得场景图像。
S604:确定场景图像的第一色温分布特征。
可选地,手机处理器可以对场景图像进行分区,以得到多个图像区域,参考图3所示;基于每个图像区域的色温值,生成色温分布矩阵;基于色温分布矩阵得到第一色温分布特征,具体可以参见前文实施例的介绍。
S606:将第一色温分布特征数据传输至控制单元。
S608:调整多个电致变色单元的驱动电压。
具体地,控制单元根据第一色温分布特征,调整电致变色单元的的驱动电压,实现对每个单元根据所拍摄画面的色温分区进行相应的变色控制。
S610:启动闪光灯。
若拍摄环境需要补光,则根据手机控制信号,启动LED闪光灯。
S612:对场景图像进行分区调光。
LED闪光灯点亮后,光线通过电致变色薄膜阵列,照射在场景图像上的光线的第二色温分布特征与第一色温分布特征相匹配。
具体地,该实施例可以针对场景图像中的低K值暖光区域定向提升色温;针对场景中的高K值冷光区域定向降低色温,实现色温分区同步调节,有效幅提升图像拍摄效果。
本发明实施例闪光灯的补光方法,通过控制多个电致变色单元的驱动电压即可实现闪光灯的分区色温控制,且对场景图像补充的光线的色温分布特征与场景图像的色温分布特征匹配,实现对场景图像智能化的分区色温控制,提升拍摄效果,便于提升图像质量,为用户带来更好的拍摄体验。
以上结合图1至图6详细描述了根据本发明实施例的闪光灯的补光方法。 下面将结合图7详细描述根据本发明实施例的电子设备,图7是根据本发明实施例的电子设备的结构示意图,电子设备700包括闪光灯和电致变色薄膜,电致变色薄膜设置在闪光灯的光线出射方向,电致变色薄膜包括多个电致变色单元。如图7所示,电子设备700还包括:
图像采集模块702,可以用于采集预览画面中的场景图像;
色温确定模块704,可以用于确定场景图像的第一色温分布特征;
电压调整模块706,可以用于基于第一色温分布特征,调整多个电致变色单元的驱动电压;
补光模块708,可以用于启动闪光灯以对场景图像进行补光;其中,照射在场景图像上的光线的第二色温分布特征与第一色温分布特征相匹配。
本发明实施例闪光灯的电子设备,通过控制多个电致变色单元的驱动电压即可实现闪光灯的分区色温控制,且对场景图像补充的光线的色温分布特征与场景图像的色温分布特征匹配,实现对场景图像智能化的分区色温控制,提升拍摄效果,便于提升图像质量,为用户带来更好的拍摄体验。
可选地,作为一个实施例,色温确定模块702,具体可以用于
对场景图像进行分区,以得到多个图像区域;
基于每个图像区域的色温值,生成色温分布矩阵;
基于色温分布矩阵得到第一色温分布特征。
可选地,作为一个实施例,一个图像区域的形状及面积,与通过一个电致变色单元的光线照射在场景图像上的形状和面积相等。
可选地,作为一个实施例,第一色温分布特征包括第一图像区域的第一色温值以及第二图像区域的第二色温值,第一色温值大于第二色温值;
第二色温分布特征包括照射在第一图像区域的光线的第三色温值以及照射在第二图像区域的光线的第四色温值,第三色温值小于第四色温值。
可选地,作为一个实施例,图像采集模块702,还可以用于对场景图像进行预采集;
电压调整模块706,还可以用于基于预采集后的场景图像与目标图像之间的色差,通过控制单元调整多个电致变色单元的驱动电压,以调整第二色温分布特征。
根据本发明实施例的电子设备可以参照对应本发明实施例的闪光灯的补光方法的流程,并且,该电子设备中的各个单元/模块和上述其他操作和/或功能分别为了实现上述闪光灯的补光方法中的相应流程,为了简洁,在此不再赘述。
本说明书中的各个实施例采用递进的方式描述,每个实施例重点说明的通常是与其他实施例的不同之处,各个实施例之间相同相似的部分互相参见即可。对于电子设备实施例而言,由于其与方法实施例基本相似,所以描述的比较简单,相关之处参见方法实施例的部分说明即可。
图8为实现本发明各个实施例的电子设备的硬件结构示意图,该电子设备800包括但不限于:射频单元801、网络模块802、音频输出单元803、输入单元804、传感器805、显示单元806、用户输入单元807、接口单元808、存储器809、处理器810、以及电源811等部件。本领域技术人员可以理解,图8中示出的电子设备结构并不构成对电子设备的限定,电子设备可以包括比图示更多或更少的部件,或者组合某些部件,或者不同的部件布置。在本发明实施例中,电子设备包括但不限于手机、平板电脑、笔记本电脑、掌上电脑、车载终端、可穿戴设备、以及计步器等。
上述电子设备800还包括闪光灯和电致变色薄膜,电致变色薄膜设置在闪光灯的光线出射方向,电致变色薄膜包括多个电致变色单元。
其中,传感器805用于采集预览画面中的场景图像;
处理器810用于确定场景图像的第一色温分布特征;基于第一色温分布特征,调整多个电致变色单元的驱动电压;启动闪光灯以对场景图像进行补光;其中,照射在场景图像上的光线的第二色温分布特征与第一色温分布特征相匹配。
本发明实施例中的电子设备,通过控制多个电致变色单元的驱动电压即可实现闪光灯的分区色温控制,且对场景图像补充的光线的色温分布特征与场景图像的色温分布特征匹配,实现对场景图像智能化的分区色温控制,提升拍摄效果,便于提升图像质量,为用户带来更好的拍摄体验。
应理解的是,本发明实施例中,射频单元801可用于收发信息或通话过程中,信号的接收和发送,具体地,将来自基站的下行数据接收后,给处理器810处理;另外,将上行的数据发送给基站。通常,射频单元801包括但不限于天线、至少一个放大器、收发信机、耦合器、低噪声放大器、双工器等。此外,射频单元801还可以通过无线通信系统与网络和其他设备通信。
电子设备通过网络模块802为用户提供了无线的宽带互联网访问,例如帮助用户收发电子邮件、浏览网页和访问流式媒体等。
音频输出单元803可以将射频单元801或网络模块802接收的或者在存储器809中存储的音频数据转换成音频信号并且输出为声音。而且,音频输出单元803还可以提供与电子设备800执行的特定功能相关的音频输出(例如,呼叫信号接收声音、消息接收声音等等)。音频输出单元803包括扬声器、蜂鸣器以及受话器等。
输入单元804用于接收音频或视频信号。输入单元804可以包括图形处理器(Graphics Processing Unit,GPU)8041和麦克风8042,图形处理器8041对在视频捕获模式或图像捕获模式中由图像捕获装置(例如摄像头)获得的静态图片或视频的图像数据进行处理。处理后的图像帧可以显示在显示单元806上。经图形处理器8041处理后的图像帧可以存储在存储器809(或其它存储介质)中或者经由射频单元801或网络模块802进行发送。麦克风8042可以接收声音,并且能够将这样的声音处理为音频数据。处理后的音频数据可以在电话通话模式的情况下转换为可经由射频单元801发送到移动通信基站的格式输出。
电子设备800还包括至少一种传感器805,例如光传感器、运动传感器以 及其他传感器。具体地,光传感器包括环境光传感器及接近传感器,其中,环境光传感器可根据环境光线的明暗来调节显示面板8061的亮度,接近传感器可在电子设备800移动到耳边时,关闭显示面板8061和/或背光。作为运动传感器的一种,加速计传感器可检测各个方向上(一般为三轴)加速度的大小,静止时可检测出重力的大小及方向,可用于识别电子设备姿态(例如横竖屏切换、相关游戏、磁力计姿态校准)、振动识别相关功能(例如计步器、敲击)等;传感器805还可以包括指纹传感器、压力传感器、虹膜传感器、分子传感器、陀螺仪、气压计、湿度计、温度计、红外线传感器等,在此不再赘述。
显示单元806用于显示由用户输入的信息或提供给用户的信息。显示单元806可包括显示面板8061,可以采用液晶显示器(Liquid Crystal Display,LCD)、有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板8061。
用户输入单元807可用于接收输入的数字或字符信息,以及产生与电子设备的用户设置以及功能控制有关的键信号输入。具体地,用户输入单元807包括触控面板8071以及其他输入设备8072。触控面板8071,也称为触摸屏,可收集用户在其上或附近的触摸操作(例如用户使用手指、触笔等任何适合的物体或附件在触控面板8071上或在触控面板8071附近的操作)。触控面板8071可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给处理器810,接收处理器810发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板8071。除了触控面板8071,用户输入单元807还可以包括其他输入设备8072。具体地,其他输入设备8072可以包括但不限于物理键盘、功能键(例如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆,在此不再赘述。
进一步的,触控面板8071可覆盖在显示面板8061上,当触控面板8071 检测到在其上或附近的触摸操作后,传送给处理器810以确定触摸事件的类型,随后处理器810根据触摸事件的类型在显示面板8061上提供相应的视觉输出。虽然在图8中,触控面板8071与显示面板8061是作为两个独立的部件来实现电子设备的输入和输出功能,但是在某些实施例中,可以将触控面板8071与显示面板8061集成而实现电子设备的输入和输出功能,具体此处不做限定。
接口单元808为外部装置与电子设备800连接的接口。例如,外部装置可以包括有线或无线头戴式耳机端口、外部电源(或电池充电器)端口、有线或无线数据端口、存储卡端口、用于连接具有识别模块的装置的端口、音频输入/输出(I/O)端口、视频I/O端口、耳机端口等等。接口单元808可以用于接收来自外部装置的输入(例如,数据信息、电力等等)并且将接收到的输入传输到电子设备800内的一个或多个元件或者可以用于在电子设备800和外部装置之间传输数据。
存储器809可用于存储软件程序以及各种数据。存储器809可主要包括存储程序区和存储数据区,其中,存储程序区可存储操作系统、至少一个功能所需的应用程序(例如声音播放功能、图像播放功能等)等;存储数据区可存储根据手机的使用所创建的数据(例如音频数据、电话本等)等。此外,存储器809可以包括高速随机存取存储器,还可以包括非易失性存储器,例如至少一个磁盘存储器件、闪存器件、或其他易失性固态存储器件。
处理器810是电子设备的控制中心,利用各种接口和线路连接整个电子设备的各个部分,通过运行或执行存储在存储器809内的软件程序和/或模块,以及调用存储在存储器809内的数据,执行电子设备的各种功能和处理数据,从而对电子设备进行整体监控。处理器810可包括一个或多个处理单元;可选的,处理器810可集成应用处理器和调制解调处理器,其中,应用处理器主要处理操作系统、用户界面和应用程序等,调制解调处理器主要处理无线通信。可以理解的是,上述调制解调处理器也可以不集成到处理器810中。
电子设备800还可以包括给各个部件供电的电源811(例如电池),可选 的,电源811可以通过电源管理系统与处理器810逻辑相连,从而通过电源管理系统实现管理充电、放电、以及功耗管理等功能。
另外,电子设备800包括一些未示出的功能模块,在此不再赘述。
可选的,本发明实施例还提供一种电子设备,包括处理器810,存储器809,存储在存储器809上并可在处理器810上运行的计算机程序,该计算机程序被处理器810执行时实现上述闪光灯的补光方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。
本发明实施例还提供一种计算机可读存储介质,计算机可读存储介质上存储有计算机程序,该计算机程序被处理器执行时实现上述闪光灯的补光方法实施例的各个过程,且能达到相同的技术效果,为避免重复,这里不再赘述。其中,计算机可读存储介质的示例为非暂态计算机可读存储介质,如只读存储器(Read-Only Memory,ROM)、随机存取存储器(Random Access Memory,RAM)、磁碟或者光盘等。
需要说明的是,在本文中,术语“包括”、“包含”或者其任何其他变体意在涵盖非排他性的包含,从而使得包括一系列要素的过程、方法、物品或者装置不仅包括那些要素,而且还包括没有明确列出的其他要素,或者是还包括为这种过程、方法、物品或者装置所固有的要素。在没有更多限制的情况下,由语句“包括一个……”限定的要素,并不排除在包括该要素的过程、方法、物品或者装置中还存在另外的相同要素。
通过以上的实施方式的描述,本领域的技术人员可以清楚地了解到上述实施例方法可借助软件加必需的通用硬件平台的方式来实现,当然也可以通过硬件,但很多情况下前者是更佳的实施方式。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质(例如ROM/RAM、磁碟、光盘)中,包括若干指令用以使得一台终端(可以是手机,计算机,服务器,空调器,或者网络设备等)执行本发明各个实施例所述的方法。
上面结合附图对本发明的实施例进行了描述,但是本发明并不局限于上述的具体实施方式,上述的具体实施方式仅仅是示意性的,而不是限制性的,本领域的普通技术人员在本发明的启示下,在不脱离本发明构思和权利要求所保护的范围情况下,还可做出很多形式,均属于本发明的保护之内。

Claims (14)

  1. 一种闪光灯的补光方法,应用于电子设备,所述电子设备包括闪光灯和电致变色薄膜,所述电致变色薄膜设置在所述闪光灯的光线出射方向,所述电致变色薄膜包括多个电致变色单元,所述方法包括:
    采集预览画面中的场景图像;
    确定所述场景图像的第一色温分布特征;
    基于所述第一色温分布特征,调整多个所述电致变色单元的驱动电压;
    启动所述闪光灯以对所述场景图像进行补光,其中,照射在所述场景图像上的光线的第二色温分布特征与所述第一色温分布特征相匹配。
  2. 根据权利要求1所述的方法,其中,所述确定所述场景图像的第一色温分布特征,包括:
    对所述场景图像进行分区,得到多个图像区域;
    基于每个图像区域的色温值,生成色温分布矩阵;
    基于所述色温分布矩阵得到所述第一色温分布特征。
  3. 根据权利要求2所述的方法,其中,一个所述图像区域的形状及面积,与通过一个所述电致变色单元的光线照射在所述场景图像上的形状及面积相等。
  4. 根据权利要求1至3任一项所述的方法,其中,
    所述第一色温分布特征包括第一图像区域的第一色温值以及第二图像区域的第二色温值,所述第一色温值大于所述第二色温值;
    所述第二色温分布特征包括照射在所述第一图像区域的光线的第三色温值以及照射在所述第二图像区域的光线的第四色温值,所述第三色温值小于所述第四色温值。
  5. 根据权利要求1至4任一项所述的方法,其中,所述启动所述闪光灯以对所述场景图像进行补光之后,所述方法包括:
    对所述场景图像进行预采集;
    基于预采集后的场景图像与目标图像之间的色差,调整多个所述电致变色单元的驱动电压,以调整所述第二色温分布特征。
  6. 一种电子设备,包括闪光灯和电致变色薄膜,所述电致变色薄膜设置在所述闪光灯的光线出射方向,所述电致变色薄膜包括多个电致变色单元,其中,所述电子设备还包括:
    图像采集模块,用于采集预览画面中的场景图像;
    色温确定模块,用于确定所述场景图像的第一色温分布特征;
    电压调整模块,用于基于所述第一色温分布特征,调整多个所述电致变色单元的驱动电压;
    补光模块,用于启动所述闪光灯以对所述场景图像进行补光,其中,照射在所述场景图像上的光线的第二色温分布特征与所述第一色温分布特征相匹配。
  7. 根据权利要求6所述的电子设备,其中,所述色温确定模块,用于:
    对所述场景图像进行分区,以得到多个图像区域;
    基于每个图像区域的色温值,生成色温分布矩阵;
    基于所述色温分布矩阵得到所述第一色温分布特征。
  8. 根据权利要求7所述的电子设备,其中,一个所述图像区域的形状及面积,与通过一个所述电致变色单元的光线照射在所述场景图像上的形状及面积相等。
  9. 根据权利要求6至8任一项所述的电子设备,其中,
    所述第一色温分布特征包括第一图像区域的第一色温值以及第二图像区域的第二色温值,所述第一色温值大于所述第二色温值;
    所述第二色温分布特征包括照射在所述第一图像区域的光线的第三色温值以及照射在所述第二图像区域的光线的第四色温值,所述第三色温值小于所述第四色温值。
  10. 根据权利要求6至9任一项所述的电子设备,其中,
    所述图像采集模块,还用于对所述场景图像进行预采集;
    所述电压调整模块,还用于基于预采集后的场景图像与目标图像之间的色差,调整多个所述电致变色单元的驱动电压,以调整所述第二色温分布特征。
  11. 一种电子设备,包括:存储器、处理器及存储在所述存储器上并可在所述处理器上运行的计算机程序,所述计算机程序被所述处理器执行时实现如权利要求1至5中任一项所述的闪光灯的补光方法。
  12. 一种计算机可读存储介质,所述计算机可读存储介质上存储有计算机程序,所述计算机程序被处理器执行时实现如权利要求1至5中任一项所述的闪光灯的补光方法。
  13. 一种闪光灯的补光装置,所述闪光灯的补光装置被配置用于执行如权利要求1至5中任一项所述的闪光灯的补光方法。
  14. 一种计算机程序产品,所述程序产品被存储在非易失的存储介质中,所述程序产品被至少一个处理器执行以实现如权利要求1-5任一项所述的闪光灯的补光方法。
PCT/CN2020/139441 2019-12-30 2020-12-25 闪光灯的补光方法和电子设备 WO2021136091A1 (zh)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
CN201911389525.8 2019-12-30
CN201911389525.8A CN111045279B (zh) 2019-12-30 2019-12-30 闪光灯的补光方法和电子设备

Publications (1)

Publication Number Publication Date
WO2021136091A1 true WO2021136091A1 (zh) 2021-07-08

Family

ID=70241298

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/CN2020/139441 WO2021136091A1 (zh) 2019-12-30 2020-12-25 闪光灯的补光方法和电子设备

Country Status (2)

Country Link
CN (1) CN111045279B (zh)
WO (1) WO2021136091A1 (zh)

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP4071548A4 (en) * 2020-01-06 2023-01-25 Oneplus Technology (Shenzhen) Co., Ltd. FLASH LAMP, FLASH LAMP CONTROL METHOD AND MOBILE DEVICE
WO2023010912A1 (zh) * 2021-07-31 2023-02-09 荣耀终端有限公司 一种图像处理方法及电子设备

Families Citing this family (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111045279B (zh) * 2019-12-30 2022-02-01 维沃移动通信有限公司 闪光灯的补光方法和电子设备
CN113949793A (zh) * 2020-07-17 2022-01-18 深圳市万普拉斯科技有限公司 一种闪光灯及其光效改善方法、电子设备
CN111787235B (zh) * 2020-08-12 2022-07-12 努比亚技术有限公司 一种拍摄控制方法、设备及计算机可读存储介质
CN114076576B (zh) * 2020-08-21 2023-11-21 深圳市万普拉斯科技有限公司 光发射器、摄像模组、电子设备及图像三维信息采集方法
CN114650349B (zh) * 2020-12-21 2023-12-01 扬州比亚迪半导体有限公司 摄像机模组、摄像机模组控制方法及监控系统
CN114355649B (zh) * 2021-12-27 2024-01-12 绵阳惠科光电科技有限公司 色温补偿装置、背光模组及显示装置

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104280979A (zh) * 2013-07-10 2015-01-14 宏达国际电子股份有限公司 相机装置以及闪光灯控制方法
US20160219255A1 (en) * 2015-01-27 2016-07-28 Canon Kabushiki Kaisha Image pickup apparatus
CN107037659A (zh) * 2017-04-27 2017-08-11 维沃移动通信有限公司 一种柔光灯控制方法及移动终端
CN107637062A (zh) * 2015-05-13 2018-01-26 苹果公司 具有可调整漫射的光源模块
CN107809599A (zh) * 2017-11-16 2018-03-16 维沃移动通信有限公司 一种补光方法和装置及移动终端
CN110176531A (zh) * 2018-02-19 2019-08-27 欧司朗光电半导体有限公司 光电子组件、光电子设备、闪光灯和探照灯
CN111045279A (zh) * 2019-12-30 2020-04-21 维沃移动通信有限公司 闪光灯的补光方法和电子设备

Family Cites Families (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR102466444B1 (ko) * 2017-12-21 2022-11-14 루미리즈 홀딩 비.브이. 조명 디바이스
CN109525783A (zh) * 2018-12-25 2019-03-26 努比亚技术有限公司 一种曝光拍摄方法、终端及计算机可读存储介质

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN104280979A (zh) * 2013-07-10 2015-01-14 宏达国际电子股份有限公司 相机装置以及闪光灯控制方法
US20160219255A1 (en) * 2015-01-27 2016-07-28 Canon Kabushiki Kaisha Image pickup apparatus
CN107637062A (zh) * 2015-05-13 2018-01-26 苹果公司 具有可调整漫射的光源模块
CN107037659A (zh) * 2017-04-27 2017-08-11 维沃移动通信有限公司 一种柔光灯控制方法及移动终端
CN107809599A (zh) * 2017-11-16 2018-03-16 维沃移动通信有限公司 一种补光方法和装置及移动终端
CN110176531A (zh) * 2018-02-19 2019-08-27 欧司朗光电半导体有限公司 光电子组件、光电子设备、闪光灯和探照灯
CN111045279A (zh) * 2019-12-30 2020-04-21 维沃移动通信有限公司 闪光灯的补光方法和电子设备

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
EP4071548A4 (en) * 2020-01-06 2023-01-25 Oneplus Technology (Shenzhen) Co., Ltd. FLASH LAMP, FLASH LAMP CONTROL METHOD AND MOBILE DEVICE
WO2023010912A1 (zh) * 2021-07-31 2023-02-09 荣耀终端有限公司 一种图像处理方法及电子设备

Also Published As

Publication number Publication date
CN111045279A (zh) 2020-04-21
CN111045279B (zh) 2022-02-01

Similar Documents

Publication Publication Date Title
WO2021136091A1 (zh) 闪光灯的补光方法和电子设备
CN107809599B (zh) 一种补光方法和装置及移动终端
WO2021160065A1 (zh) 拍摄补光方法、电子设备及介质
WO2020238635A1 (zh) 移动终端及出音口的切换方法
WO2021098677A1 (zh) 显示方法及电子设备
WO2021057735A1 (zh) 图像处理方法、装置、电子设备和介质
EP3691234B1 (en) Photographing method and terminal
WO2021233176A1 (zh) 环境光检测方法及电子设备
WO2021077908A1 (zh) 参数调节方法和电子设备
EP3934213B1 (en) Mobile terminal and sound output control method
CN107240072B (zh) 一种屏幕亮度调节方法、终端和计算机可读存储介质
WO2021190387A1 (zh) 检测结果输出的方法、电子设备及介质
WO2021036623A1 (zh) 显示方法及电子设备
WO2020220990A1 (zh) 受话器控制方法及终端
US11842029B2 (en) Image display method and mobile terminal
WO2020199986A1 (zh) 视频通话方法及终端设备
WO2021078096A1 (zh) 受话器控制方法、装置和电子设备
WO2021147911A1 (zh) 移动终端、拍摄模式的检测方法及存储介质
WO2020173316A1 (zh) 图像显示方法、终端和移动终端
CN112188708B (zh) 一种基于移动终端的音乐伴奏方法、装置及终端设备
WO2021104450A1 (zh) 电子设备及其音量调节方法
CN107943402B (zh) 区域亮度控制方法、智能终端及计算机可读存储介质
WO2021185142A1 (zh) 图像处理方法、电子设备及存储介质
WO2021190370A1 (zh) 截图方法及电子设备
WO2021204101A1 (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: 20909475

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: 20909475

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 18.01.2023)

122 Ep: pct application non-entry in european phase

Ref document number: 20909475

Country of ref document: EP

Kind code of ref document: A1