CN107809599B - Light supplementing method and device and mobile terminal - Google Patents

Light supplementing method and device and mobile terminal Download PDF

Info

Publication number
CN107809599B
CN107809599B CN201711135650.7A CN201711135650A CN107809599B CN 107809599 B CN107809599 B CN 107809599B CN 201711135650 A CN201711135650 A CN 201711135650A CN 107809599 B CN107809599 B CN 107809599B
Authority
CN
China
Prior art keywords
color temperature
brightness
flash
mobile terminal
flash lamp
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Active
Application number
CN201711135650.7A
Other languages
Chinese (zh)
Other versions
CN107809599A (en
Inventor
黄攀
占智贵
刘明建
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201711135650.7A priority Critical patent/CN107809599B/en
Publication of CN107809599A publication Critical patent/CN107809599A/en
Application granted granted Critical
Publication of CN107809599B publication Critical patent/CN107809599B/en
Active legal-status Critical Current
Anticipated expiration legal-status Critical

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/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/10Cameras or camera modules comprising electronic image sensors; Control thereof for generating image signals from different wavelengths
    • 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/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

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)
  • Telephone Function (AREA)

Abstract

The invention provides a light supplementing method and device and a mobile terminal, wherein the mobile terminal comprises at least two flash lamps arranged in the direction of a camera, and the method comprises the following steps: detecting the current color temperature of a shooting preview image when the camera carries out shooting preview; determining target supplementary lighting information according to the current color temperature; determining a first target flash lamp to be started according to the target fill-in light information, wherein the first target flash lamp is at least one of the at least two flash lamps, the at least two flash lamps comprise at least one first flash lamp and at least one second flash lamp, and the color temperature of the first flash lamp is different from that of the second flash lamp; and controlling the first target flash lamp to be started. The intelligent color temperature compensation can be carried out on the images shot by the camera, so that the shot images can show multiple color temperatures, and the user requirements are met.

Description

Light supplementing method and device and mobile terminal
Technical Field
The present invention relates to the field of communications technologies, and in particular, to a light supplementing method and apparatus, and a mobile terminal.
Background
With the development of communication technology, the functions of the mobile terminal are more and more powerful, and the photographing function of the mobile terminal brings convenience to daily life of users. When the mobile terminal shoots at night or in a dark environment, because ambient light is weak, light in a shooting area is uneven, and light is supplemented by a flash lamp to acquire clear image information in the shooting area.
The conventional mobile terminal is provided with a single flash lamp, and a user can only control the single flash lamp to be turned on to supplement light in a light radiation area if the user needs to supplement light when holding the mobile terminal to take a picture. The color temperature of the shot image is single, which results in poor quality of the shot image. Therefore, the existing mobile terminal has the technical problem that the quality of a shot image is poor due to single shooting color temperature.
Disclosure of Invention
The embodiment of the invention provides a light supplementing method and device and a mobile terminal, and aims to solve the technical problem that the quality of a shot image is poor due to single shooting color temperature of the conventional mobile terminal.
In order to solve the technical problem, the invention is realized as follows:
in a first aspect, an embodiment of the present invention provides a light supplement method, which is applied to a mobile terminal, where a mobile terminal lever includes at least two flash lamps arranged in a camera direction, and the method includes:
detecting the current color temperature of a shooting preview image when the camera carries out shooting preview;
determining target supplementary lighting information according to the current color temperature;
determining a first target flash lamp to be started according to the target fill-in light information, wherein the first target flash lamp is at least one of the at least two flash lamps, the at least two flash lamps comprise at least one first flash lamp and at least one second flash lamp, and the color temperature of the first flash lamp is different from that of the second flash lamp;
and controlling the first target flash lamp to be started.
In a second aspect, an embodiment of the present invention further provides a light supplement device, which is applied to a mobile terminal, where the mobile terminal includes at least two flash lamps arranged in a camera direction, and the device includes:
the color temperature detection module is used for detecting the current color temperature of a shooting preview image when the camera carries out shooting preview;
the light supplement information determination module is used for determining target light supplement information according to the current color temperature;
a first target flash determining module, configured to determine a first target flash to be turned on according to the target fill-in light information, where the first target flash is at least one of the at least two flashes, the at least two flashes include at least one first flash and at least one second flash, and a color temperature of the first flash is different from a color temperature of the second flash;
and the first target flash lamp starting module is used for controlling the first target flash lamp to be started.
In a third aspect, an embodiment of the present invention further provides a mobile terminal, including a mobile terminal, which includes a processor, a memory, and a computer program stored in the memory and executable on the processor, where the computer program, when executed by the processor, implements the steps of the light supplement method according to the first aspect.
In a fourth aspect, an embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the steps of the fill light method according to the first aspect are implemented.
In the embodiment of the invention, at least two flash lamps are arranged in the direction of the camera of the mobile terminal, the at least two flash lamps comprise at least one first flash lamp and at least one second flash lamp, and the color temperatures of the first flash lamp and the second flash lamp are different. When the camera carries out shooting preview, the current color temperature of the shooting preview image is detected. The method comprises the steps of determining target light supplement information according to the detected current color temperature, further determining a first target flash lamp needing to be started and controlling the first target flash lamp to be started, and performing intelligent color temperature compensation on images shot by a camera, so that the shot images can present multiple color temperatures, and user requirements are met.
Drawings
In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the drawings needed to be used in the description of the embodiments of the present invention will be briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present invention, and it is obvious for those skilled in the art that other drawings can be obtained according to these drawings without inventive exercise.
Fig. 1 is a schematic flow chart illustrating a light supplement method according to an embodiment of the present invention;
FIG. 2 is a schematic structural diagram of a flashlight according to an embodiment of the present invention;
fig. 3 is a second schematic structural diagram of a flash lamp according to an embodiment of the invention;
fig. 4 is a schematic flow chart illustrating a light supplement method according to another embodiment of the present invention;
fig. 5 is a schematic structural diagram of a light supplement device according to an embodiment of the present invention;
fig. 6 is a schematic structural diagram of a light supplement device according to another embodiment of the present invention;
fig. 7 is a schematic structural diagram of a mobile terminal according to an embodiment of the present invention.
Detailed Description
The technical solutions in the embodiments of the present invention will be clearly and completely described below with reference to the drawings in the embodiments of the present invention, and it is obvious that the described embodiments are some, not all, embodiments of the present invention. All other embodiments, which can be derived by a person skilled in the art from the embodiments given herein without making any creative effort, shall fall within the protection scope of the present invention.
Referring to fig. 1, fig. 1 is a schematic flow chart of a light supplement method according to an embodiment of the present invention. As shown in fig. 1, a light supplement method includes:
step 101, detecting the current color temperature of a shooting preview image when the camera carries out shooting preview.
The light supplementing method provided by the embodiment of the invention is applied to a mobile terminal, the mobile terminal comprises at least two flash lamps arranged in the direction of a camera of the mobile terminal, the at least two flash lamps can comprise at least one first flash lamp and at least one second flash lamp, and the color temperature of the first flash lamp is different from that of the second flash lamp, so that the at least two flash lamps can provide color temperature compensation functions with different color temperatures. In the at least two flash lamps of the mobile terminal, the control end of each flash lamp is correspondingly connected with the controller of the mobile terminal, and the on-off, the brightness and the like of each flash lamp can be controlled independently.
As shown in fig. 2 and 3, the number of the flashes of the mobile terminal may be at least four, the at least four flashes may include at least two first flashes 201 and at least two second flashes 202, and the first flashes 201 and the second flashes 202 may be set at preset intervals. The at least four flash lamps can be uniformly arranged into a circular or square structure to provide uniform and comprehensive light supplement effect corresponding to the shooting area.
The first flash lamp 201 with the colour temperature of second flash lamp 202 is different, can set up the colour temperature of whole first flash lamp 201 unanimously or all belong to between the first colour temperature district, sets up the colour temperature of whole second flash lamp 202 unanimously or all belong to between the second colour temperature district. The color temperature value of the first color temperature interval to which the first flash 201 belongs may also be set to be smaller than the color temperature value of the second color temperature interval, so that the color temperature of the first flash 201 is smaller than the color temperature of the second flash 202. Furthermore, at least one of the at least four flash lamps or at least two of the at least four flash lamps can be corresponding to a color temperature, so that the flash lamp set can provide more color temperature selections, and a more comprehensive color temperature compensation effect can be achieved.
When the color temperature of the lamp light exceeds 5000 Kelvin, the color of the lamp light is blue, so that people can feel cool and clear, and the lamp is called a cold light lamp. When the color temperature of the lamp light is below 3000 Kelvin, the color of the lamp light is red, so that people feel warm, and the lamp is called a warm light lamp. When shooting the light filling, in order to reach the light filling effect matched with the shooting scene, can set up the cold colour temperature is corresponded to between first colour temperature zone, include two at least cold light lamps that correspond the same or different colour temperature value in the first colour temperature interval in first flash light 201, include two at least warm light lamps that correspond the same or different colour temperature value in the second colour temperature interval in second flash light 202.
On the basis of the above embodiment, in consideration of the fact that the color temperatures of light supplementation required by different shooting scenes may be different, the first flash lamp 201 and the second flash lamp 202 can be set to be combined flash lamps with adjustable color temperatures, and the output color temperatures of the combined flash lamps are controlled by a controller of the mobile terminal so as to meet the light supplementation requirements. The combined flash lamp with adjustable color temperature can be realized in various ways, for example, the combined flash lamp can be designed to include a color temperature chip with at least two color temperatures and fluorescent powder, and the color temperature chip is selected to cooperate with the fluorescent powder to present different variable color temperatures. The color temperature of the flash lamp is selected through the controller, and the intelligent light compensation effect is achieved.
When the mobile terminal takes a picture, the camera provides a picture taking preview function. When the camera carries out shooting preview, the current color temperature of the shooting preview image is detected. The current color temperature of the photographed preview image can be obtained through modes such as pixel point color temperature value extraction and the like.
In one embodiment, when the camera performs photographing, the photographing area includes a photographing subject and a background, and the photographing preview image includes a subject image and a background image, and generally only color temperature supplementary lighting needs to be performed on the subject image to highlight a clear subject. When detecting the current color temperature of the photographing preview image, only the current color temperature of the subject image in the photographing preview image may be detected to achieve a clear subject highlighting effect and reduce the amount of calculation.
And step 102, determining target supplementary lighting information according to the current color temperature.
And after detecting the current color temperature of the photographed preview image according to the steps, determining target supplementary lighting information according to the current color temperature. The standard color temperature can be preset in the mobile terminal, and can be the color temperature standard of images shot by the camera or the color temperature standard of the current shooting mode of the camera. And calculating color temperature data to be compensated according to the color temperature difference value between the standard color temperature and the current color temperature, wherein the color temperature data is used as the target supplementary lighting information, and the target supplementary lighting information may include information such as a color temperature compensation difference value and a color temperature compensation area, which is not limited herein.
And 103, determining a first target flash lamp needing to be started according to the target supplementary lighting information.
And after the target supplementary lighting information is determined according to the steps, further determining a first target flash lamp needing to be started so as to meet the supplementary lighting requirement of the current color temperature. And determining the flash lamp to be started as a first target flash lamp according to the corresponding relation between the shooting area of the camera and at least two flash lamps of the mobile terminal and the target fill-in light information corresponding to the current color temperature.
And step 104, controlling the first target flash lamp to be started.
And after determining a first target flash lamp which needs to be started for the current color temperature compensation according to the steps, controlling the first target flash lamp to be started, and providing color temperature compensation for the current photographing area.
In the light supplementing method provided by the embodiment of the present invention, at least two flash lamps are arranged in the direction of the camera of the mobile terminal, where the at least two flash lamps include at least one first flash lamp and at least one second flash lamp, and the color temperatures of the first flash lamp and the second flash lamp are different. When the camera carries out shooting preview, the current color temperature of the shooting preview image is detected. The method comprises the steps of determining target light supplement information according to the detected current color temperature, further determining a first target flash lamp needing to be started and controlling the first target flash lamp to be started, and performing intelligent color temperature compensation on images shot by a camera, so that the shot images can present multiple color temperatures, and user requirements are met.
Fig. 4 is a schematic flow chart of a light supplement method according to another embodiment of the present invention. The light supplement method provided by the embodiment of the invention is different from the embodiment in that a brightness compensation function is additionally arranged. As shown in fig. 4, a light supplement method includes:
step 401, detecting the current brightness of each region of the photographed preview image.
The light supplement method provided by the embodiment of the invention is additionally provided with a brightness compensation function besides the color temperature compensation function provided by the embodiment. At least two flash lamps are arranged in the direction of a camera of the mobile terminal and are arranged according to a preset distance. When the mobile terminal takes a picture, the camera provides a picture taking preview function. The camera collects a shooting preview image, and the processor detects the current brightness of the shooting preview image. The current brightness of the photographed preview image can be obtained through modes such as brightness value extraction of pixel points.
In other embodiments, when it is considered that the camera takes a picture, a shooting area acquired by the camera generally includes a shooting subject and a background, and a corresponding shooting preview image includes a subject image and a background image, so that only the subject image may be brightly supplemented to highlight a clear subject. When the current brightness of the photographing preview image is detected, only the current brightness of the main body image in the photographing preview image can be detected, the clear main body display effect is highlighted, and the light supplement calculation amount is reduced.
And step 402, determining a light supplement area according to the current brightness of each area.
And after detecting the current brightness of each region of the photographed preview image or the current brightness of each region of the main body image according to the steps, calculating a brightness difference value between the standard brightness and the current brightness according to the standard brightness corresponding to the current photographing mode of the mobile terminal, namely the brightness data needing to be compensated. And determining a light supplement area according to the brightness difference of each area.
And step 403, determining a second target flash lamp corresponding to the supplementary lighting area.
And after the light supplement area is determined according to the steps, further determining a flash lamp of which the output brightness needs to be adjusted in the brightness compensation of the light supplement area to serve as the second target flash lamp so as to meet the light supplement requirement of the current brightness. And screening out corresponding flash lamps from the first target flash lamps started by color temperature compensation to serve as second target flash lamps according to the corresponding relation between the shooting area of the camera and at least two flash lamps arranged on the camera of the mobile terminal and the light supplement area corresponding to the current brightness.
And step 404, adjusting the brightness of the second target flash lamp.
And determining a second target flash lamp for brightness compensation from the first target flash lamps according to the steps, and adjusting the brightness of the second target flash lamp by combining the brightness difference value of the light supplement area so as to adjust the brightness of the shooting area or the brightness of the shooting main body area of the shooting area, thereby meeting the brightness compensation requirement of the shot image.
On the basis of the above embodiment, the light supplement method provided by this embodiment may also be used for light supplement in a self-photographing mode of the mobile terminal, and mainly performs light supplement on a face area in a photographing area. The front camera of the mobile terminal is provided with at least two flash lamps, the at least two flash lamps comprise at least one first flash lamp and at least one second flash lamp, and the color temperatures of the first flash lamp and the second flash lamp are different. When the front camera carries out image preview in a self-photographing mode, the current color temperature and/or the current brightness of a human body in a photographed preview image are/is detected. And determining the target supplementary lighting information according to the current color temperature of the face image in the photographing preview image, and selecting a first target flash lamp which needs to be started for color temperature compensation. And determining the light supplementing area according to the current brightness of each area of the face image in the shooting preview image, and selecting a second target flash lamp for brightness adjustment from the first target flash lamps. And starting the first target flash lamp and adjusting the brightness of the second target flash lamp, so that the light supplement function of the human face area in the self-photographing mode can be realized.
On the basis of the embodiment, the user-defined light supplement function can be added in consideration of the fact that the light supplement requirements of the user for the photographing area are possibly different. The user can input a brightness adjustment request at the mobile terminal, and the mobile terminal determines the light supplement area according to the brightness adjustment request and the current brightness of each area. Specifically, a plurality of customized light supplement options can be set at the mobile terminal for the user to select, where the customized light supplement options may include: gradually brighten from left to right, gradually brighten from right to left, gradually brighten from the periphery to the middle, manually adjust brightness, and the like. The manual brightness adjustment option may be that the user clicks a partial region in the photographed preview image, and manually inputs compensation brightness to the clicked region to achieve the effect of self-defining brightness compensation. Other schemes capable of realizing user-defined adjustment of the fill-in light brightness are applicable to the embodiment and are not limited.
On the basis of the embodiment, the function of custom-defining and adjusting the color temperature by a user can be added. And the user inputs a color temperature adjustment request at the mobile terminal, and the mobile terminal determines the target supplementary lighting information according to the color temperature pre-adjustment request and the current color temperature. Specifically, a plurality of custom color temperature adjustment options may be set at the mobile terminal for the user to select, where the custom adjustment options may include: gradually warming from left to right, gradually warming from right to left, gradually warming from the periphery to the middle, manually adjusting the color temperature and the like. The manual color temperature adjustment option can be that a user clicks and selects a partial region in the shooting preview image, and the compensation color temperature is manually input into the clicked region to achieve the user-defined compensation effect. Other schemes capable of realizing user-defined adjustment of the fill light color temperature are applicable to the embodiment without limitation.
The light supplementing method provided by the embodiment of the invention has the advantages that the color temperature compensation function and the brightness compensation function are set, the first target flash lamp which needs to be started for compensating the color temperature and the second target flash lamp which needs to be adjusted for compensating the brightness can be determined according to the current color temperature and the current brightness of the shot preview image, the intelligent light supplementing function is realized, the non-uniform light supplementing of a shot area is realized, and the color temperature and brightness compensation effect of the face image in the self-photographing mode can be optimized. Add user-defined light filling function for the user can carry out flash light on-off control and brightness control according to the actual demand, further improves the intellectuality of shooting regional inequality and light filling, improves user experience. For a specific implementation process of the light supplement method provided by the embodiment of the present invention, reference may be made to the specific implementation process of the light supplement method provided by the above embodiment, and details are not repeated herein.
Referring to fig. 5, fig. 5 is a schematic structural diagram of a light supplement device according to an embodiment of the present invention. As shown in fig. 5, a light supplement device 500 is applied to a mobile terminal, where the mobile terminal includes at least two flash lamps arranged in a direction of a camera, the at least two flash lamps include at least one first flash lamp and at least one second flash lamp, and color temperatures of the first flash lamp and the second flash lamp are different. As shown in fig. 5, the light supplement device 500 includes:
the color temperature detection module 501 is configured to detect a current color temperature of a preview picture when the camera performs preview shooting;
a light supplement information determining module 502, configured to determine target light supplement information according to the current color temperature;
a first target flash determining module 503, configured to determine a first target flash to be turned on according to the target fill lighting information, where the first target flash is at least one of the at least two flashes, the at least two flashes include at least one first flash and at least one second flash, and a color temperature of the first flash is different from a color temperature of the second flash;
a first target flash turning-on module 504, configured to control turning-on of the first target flash.
On the basis of the above embodiment, the at least two flash lamps are distributed on the mobile terminal at a preset interval, as shown in fig. 6, the light supplement device 500 further includes:
a brightness detection module 505, configured to detect current brightness of each region of the photographed preview image;
a supplementary lighting area determining module 506, configured to determine a supplementary lighting area according to the current brightness of each area;
a second target flash determining module 507, configured to determine a second target flash corresponding to the light supplement region, where the second target flash is at least one of the first target flashes;
a brightness adjusting module 508, configured to adjust the brightness of the second target flash.
On the basis of the above embodiment, the color temperature detection module 501 is configured to:
detecting the current color temperature of a main body image in the shooting preview image;
the brightness detection module 505 is configured to:
and detecting brightness information of each region of the main body image of the photographing preview image.
On the basis of the embodiment, the at least two flash lamps are arranged in the direction of the front camera of the mobile terminal;
the color temperature detection module 501 is configured to:
when the front camera carries out photographing preview in a self-photographing mode, detecting the color temperature of a face image in a photographing preview image;
the brightness detection module 505 is configured to:
and detecting the brightness information of each region of the face image in the photographing preview image.
On the basis of the foregoing embodiment, the fill light region determining module 506 is configured to:
receiving a brightness adjustment request input by a user;
and determining the supplementary lighting area according to the brightness adjustment request and the current brightness of each area.
The light supplementing device provided by the embodiment of the invention has the color temperature compensation function and the brightness compensation function, can determine the first target flash lamp required to be started for compensating the color temperature and the second target flash lamp required to be adjusted for compensating the brightness according to the current color temperature and the current brightness of the shot preview image, realizes the intelligent light supplementing function, realizes the non-uniform light supplementing of a shot area, and can optimize the color temperature and brightness compensation effect on a face image in a self-photographing mode. Add user-defined light filling function for the user can carry out flash light on-off control and brightness control according to the actual demand, further improves the intellectuality of shooting regional inequality and light filling, improves user experience. For a specific implementation process of the light supplement device provided by the embodiment of the present invention, reference may be made to the specific implementation process of the light supplement method provided by the above embodiment, and details are not repeated herein.
In this embodiment of the present invention, the mobile terminal may be any mobile terminal including a camera, for example: a Mobile phone, a Tablet Personal Computer (Tablet Personal Computer), a Laptop Computer (Laptop Computer), a Personal Digital Assistant (PDA), a Mobile Internet Device (MID), a Wearable Device (Wearable Device), or the like.
Referring to fig. 7, fig. 7 is a schematic structural diagram of a mobile terminal according to another embodiment of the present invention. As shown in fig. 7, to implement a mobile terminal according to various embodiments of the present invention, the mobile terminal 700 includes, but is not limited to: a radio frequency unit 701, a network module 702, an audio output unit 703, an input unit 704, a sensor 705, a display unit 706, a user input unit 707, an interface unit 708, a memory 709, a processor 710, a power supply 711, and the like. Those skilled in the art will appreciate that the mobile terminal architecture shown in fig. 7 is not intended to be limiting of mobile terminals, and that a mobile terminal may include more or fewer components than shown, or some components may be combined, or a different arrangement of components. In the embodiment of the present invention, the mobile terminal includes, but is not limited to, a mobile phone, a tablet computer, a notebook computer, a palm computer, a vehicle-mounted terminal, a wearable device, a pedometer, and the like.
The mobile terminal comprises at least two flash lamps arranged in the direction of a camera. The processor 710 is configured to detect a current color temperature of a preview image when the camera performs preview;
determining target supplementary lighting information according to the current color temperature;
determining a first target flash lamp to be started according to the target fill-in light information, wherein the first target flash lamp is at least one of the at least two flash lamps, the at least two flash lamps comprise at least one first flash lamp and at least one second flash lamp, and the color temperature of the first flash lamp is different from that of the second flash lamp;
and controlling the first target flash lamp to be started.
Optionally, the at least two flash lamps are distributed on the mobile terminal at a preset interval, and the processor 710 is further configured to: identifying a main body image and a background image of the original image layer;
detecting the current brightness of each region of the photographed preview image;
determining a light supplement area according to the current brightness of each area;
determining a second target flash lamp corresponding to the supplementary lighting area, wherein the second target flash lamp is at least one of the first target flash lamps;
and adjusting the brightness of the second target flash lamp.
Optionally, the processor 710 is further configured to: detecting the current color temperature of a main body image in the shooting preview image;
the step of detecting the brightness information of each region of the photographed preview image includes:
and detecting brightness information of each region of the main body image of the photographing preview image.
Optionally, the processor 710 is further configured to: when the front camera carries out photographing preview in a self-photographing mode, detecting the current color temperature of a face image in a photographing preview image;
and detecting the brightness information of each region of the face image in the photographing preview image.
Optionally, the processor 710 is further configured to: receiving a brightness adjustment request input by a user;
and determining the supplementary lighting area according to the brightness adjustment request and the current brightness of each area.
The mobile terminal 700 can implement the processes implemented by the mobile terminal in the foregoing embodiments, and details are not repeated here to avoid repetition.
The mobile terminal provided by the embodiment of the invention is provided with the color temperature compensation function and the brightness compensation function, can determine the first target flash lamp required to be started for compensating the color temperature and the second target flash lamp required to be adjusted for compensating the brightness according to the current color temperature and the current brightness of the shot preview image, realizes the intelligent light supplementing function, realizes the uneven light supplementing of a shot area, and can optimize the color temperature and brightness compensation effect on a face image in a self-photographing mode. Add user-defined light filling function for the user can carry out flash light on-off control and brightness control according to the actual demand, further improves the intellectuality of shooting regional inequality and light filling, improves user experience. For a specific implementation process of the mobile terminal provided by the embodiment of the present invention, reference may be made to the specific implementation process of the light supplement method provided by the above embodiment, and details are not repeated here.
It should be understood that, in the embodiment of the present invention, the radio frequency unit 701 may be used for receiving and sending signals during a message transmission and reception process or a call process, and specifically, receives downlink data from a base station and then processes the received downlink data to the processor 710; in addition, the uplink data is transmitted to the base station. In general, radio frequency unit 701 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. In addition, the radio frequency unit 701 may also communicate with a network and other devices through a wireless communication system.
The mobile terminal provides the user with wireless broadband internet access via the network module 702, such as helping the user send and receive e-mails, browse web pages, and access streaming media.
The audio output unit 703 may convert audio data received by the radio frequency unit 701 or the network module 702 or stored in the memory 709 into an audio signal and output as sound. Also, the audio output unit 703 may also provide audio output related to a specific function performed by the mobile terminal 700 (e.g., a call signal reception sound, a message reception sound, etc.). The audio output unit 703 includes a speaker, a buzzer, a receiver, and the like.
The input unit 704 is used to receive audio or video signals. The input Unit 704 may include a Graphics Processing Unit (GPU) 7041 and a microphone 7042, and the Graphics processor 7041 processes image data of a still picture or video obtained by an image capturing device (e.g., a camera) in a video capturing mode or an image capturing mode. The processed image frames may be displayed on the display unit 706. The image frames processed by the graphic processor 7041 may be stored in the memory 709 (or other storage medium) or transmitted via the radio unit 701 or the network module 702. The microphone 7042 may receive sounds and may be capable of processing such sounds into audio data. The processed audio data may be converted into a format output transmittable to a mobile communication base station via the radio frequency unit 701 in case of a phone call mode.
The mobile terminal 700 also includes at least one sensor 705, such as a light sensor, motion sensor, and other sensors. Specifically, the light sensor includes an ambient light sensor that can adjust the brightness of the display panel 7061 according to the brightness of ambient light, and a proximity sensor that can turn off the display panel 7061 and/or a backlight when the mobile terminal 700 is moved to the ear. As one of the motion sensors, the accelerometer sensor can detect the magnitude of acceleration in each direction (generally three axes), detect the magnitude and direction of gravity when stationary, and can be used to identify the posture of the mobile terminal (such as horizontal and vertical screen switching, related games, magnetometer posture calibration), and vibration identification related functions (such as pedometer, tapping); the sensors 705 may also include fingerprint sensors, pressure sensors, iris sensors, molecular sensors, gyroscopes, barometers, hygrometers, thermometers, infrared sensors, etc., which are not described in detail herein.
The display unit 706 is used to display information input by the user or information provided to the user. The Display unit 706 may include a Display panel 7061, and the Display panel 7061 may be configured in the form of a Liquid Crystal Display (LCD), an Organic Light-Emitting Diode (OLED), or the like.
The user input unit 707 may be used to receive input numeric or character information and generate key signal inputs related to user settings and function control of the mobile terminal. Specifically, the user input unit 707 includes a touch panel 7071 and other input devices 7072. The touch panel 7071, also referred to as a touch screen, may collect touch operations by a user on or near the touch panel 7071 (e.g., operations by a user using a finger, a stylus, or any other suitable object attached to or near the touch panel 7071). The touch panel 7071 may include two parts of a touch detection device and a touch controller. The touch detection device detects the touch direction of a user, detects a signal brought by touch operation and transmits the signal to the touch controller; the touch controller receives touch information from the touch sensing device, converts the touch information into touch point coordinates, sends the touch point coordinates to the processor 710, receives a command from the processor 710, and executes the command. In addition, the touch panel 7071 can be implemented by various types such as resistive, capacitive, infrared, and surface acoustic wave. The user input unit 707 may include other input devices 7072 in addition to the touch panel 7071. In particular, the other input devices 7072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which are not described herein again.
Further, the touch panel 7071 may be overlaid on the display panel 7061, and when the touch panel 7071 detects a touch operation on or near the touch panel 7071, the touch operation is transmitted to the processor 710 to determine the type of the touch event, and then the processor 710 provides a corresponding visual output on the display panel 7061 according to the type of the touch event. Although the touch panel 7071 and the display panel 7061 are shown in fig. 7 as two separate components to implement the input and output functions of the mobile terminal, in some embodiments, the touch panel 7071 and the display panel 7061 may be integrated to implement the input and output functions of the mobile terminal, which is not limited herein.
The interface unit 708 is an interface through which an external device is connected to the mobile terminal 700. For example, the external device may include a wired or wireless headset port, an external power supply (or battery charger) port, a wired or wireless data port, a memory card port, a port for connecting a device having an identification module, an audio input/output (I/O) port, a video I/O port, an earphone port, and the like. The interface unit 708 may be used to receive input (e.g., data information, power, etc.) from external devices and transmit the received input to one or more elements within the mobile terminal 700 or may be used to transmit data between the mobile terminal 700 and external devices.
The memory 709 may be used to store software programs as well as various data. The memory 709 may mainly include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required by at least one function (such as a sound playing function, an image playing function, etc.), and the like; the storage data area may store data (such as audio data, a phonebook, etc.) created according to the use of the cellular phone, and the like. Further, the memory 709 may include high speed random access memory, and may also include non-volatile memory, such as at least one magnetic disk storage device, flash memory device, or other volatile solid state storage device.
The processor 710 is a control center of the mobile terminal, connects various parts of the entire mobile terminal using various interfaces and lines, and performs various functions of the mobile terminal and processes data by operating or executing software programs and/or modules stored in the memory 709 and calling data stored in the memory 709, thereby integrally monitoring the mobile terminal. Processor 710 may include one or more processing units; preferably, the processor 710 may integrate an application processor, which mainly handles operating systems, user interfaces, application programs, etc., and a modem processor, which mainly handles wireless communications. It will be appreciated that the modem processor described above may not be integrated into processor 710.
The mobile terminal 700 may also include a power supply 711 (e.g., a battery) for powering the various components, and the power supply 711 may be logically coupled to the processor 710 via a power management system that may enable managing charging, discharging, and power consumption by the power management system.
In addition, the mobile terminal 700 includes some functional modules that are not shown, and thus will not be described in detail herein.
Preferably, an embodiment of the present invention further provides a mobile terminal, including a processor 710, a memory 709, and a computer program stored in the memory 709 and capable of running on the processor 710, where the computer program is executed by the processor 710 to implement each process of the above-mentioned image processing method embodiment, and can achieve the same technical effect, and in order to avoid repetition, details are not described here again.
The embodiment of the present invention further provides a computer-readable storage medium, where a computer program is stored on the computer-readable storage medium, and when the computer program is executed by a processor, the computer program implements each process of the embodiment of the image processing method, and can achieve the same technical effect, and in order to avoid repetition, details are not repeated here. The computer-readable storage medium may be a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk or an optical disk.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present invention may be embodied in the form of a software product, which is stored in a storage medium (such as ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling a terminal (such as a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present invention.
While the present invention has been described with reference to the embodiments shown in the drawings, the present invention is not limited to the embodiments, which are illustrative and not restrictive, and it will be apparent to those skilled in the art that various changes and modifications can be made therein without departing from the spirit and scope of the invention as defined in the appended claims.

Claims (10)

1. A light supplement method is applied to a mobile terminal, and is characterized in that the mobile terminal comprises at least two flash lamps arranged in the direction of a camera, and the method comprises the following steps:
detecting the current color temperature of a shooting preview image when the camera carries out shooting preview;
determining a color temperature compensation difference value and a color temperature compensation area according to the current color temperature and the standard color temperature;
determining a first target flash lamp corresponding to the color temperature compensation region to be started according to the color temperature compensation difference value, the color temperature compensation region and the corresponding relation between the shooting region of the camera and the at least two flash lamps of the mobile terminal, wherein the first target flash lamp is at least one flash lamp of the at least two flash lamps, the at least two flash lamps comprise at least one first flash lamp and at least one second flash lamp, and the color temperature of the first flash lamp is different from that of the second flash lamp;
controlling the first target flash lamp to be started;
the at least two flash lamps are distributed on the mobile terminal at a preset interval, and the method further comprises the following steps:
detecting the current brightness of each region of the photographed preview image;
determining a light supplement area according to the current brightness of each area;
determining a second target flash lamp corresponding to the supplementary lighting area, wherein the second target flash lamp is at least one of the first target flash lamps;
and adjusting the brightness of the second target flash lamp.
2. The method of claim 1, wherein the step of detecting the current color temperature of the photographed preview image comprises:
detecting the current color temperature of a main body image in the shooting preview image;
the step of detecting the current brightness of each region of the photographed preview image includes:
and detecting the current brightness of each area of the main image of the photographing preview image.
3. The method according to claim 2, wherein the at least two flash lamps are arranged in a front camera direction of the mobile terminal;
when the camera carries out shooting preview, the step of detecting the current color temperature of the shooting preview image comprises the following steps:
when the front camera carries out photographing preview in a self-photographing mode, detecting the current color temperature of a face image in a photographing preview image;
the step of detecting the brightness information of each region of the photographed preview image includes:
and detecting the brightness information of each region of the face image in the photographing preview image.
4. The method according to claim 1, wherein the step of determining the supplementary lighting area according to the current brightness of each area comprises:
receiving a brightness adjustment request input by a user;
and determining the supplementary lighting area according to the brightness adjustment request and the current brightness of each area.
5. The utility model provides a light filling device, is applied to mobile terminal, its characterized in that, mobile terminal includes two at least flash lights that set up in the camera direction, light filling device includes:
the color temperature detection module is used for detecting the current color temperature of a shooting preview image when the camera carries out shooting preview;
the light supplement information determining module is used for determining a color temperature compensation difference value and a color temperature compensation area according to the current color temperature and the standard color temperature;
a first target flash determining module, configured to determine, according to the color temperature compensation difference, the color temperature compensation region, and a correspondence between a shooting region of the camera and the at least two flashes of the mobile terminal, a first target flash corresponding to the color temperature compensation region that needs to be turned on, where the first target flash is at least one flash of the at least two flashes, the at least two flashes include at least one first flash and at least one second flash, and a color temperature of the first flash is different from a color temperature of the second flash;
the first target flash lamp starting module is used for controlling the first target flash lamp to be started;
the at least two flash lamps are distributed on the mobile terminal at a preset interval, and the device further comprises:
the brightness detection module is used for detecting the current brightness of each area of the photographed preview image;
a light supplement area determination module, configured to determine a light supplement area according to the current brightness of each area;
a second target flash determining module, configured to determine a second target flash corresponding to the light supplement region, where the second target flash is at least one of the first target flashes;
and the brightness adjusting module is used for adjusting the brightness of the second target flash lamp.
6. The light supplement device of claim 5, wherein the color temperature detection module is configured to:
detecting the current color temperature of a main body image in the shooting preview image;
the brightness detection module is used for:
and detecting brightness information of each region of the main body image of the photographing preview image.
7. The light supplement device of claim 6, wherein the at least two flash lamps are arranged in a direction of a front camera of the mobile terminal;
the color temperature detection module is used for:
when the front camera carries out photographing preview in a self-photographing mode, detecting the color temperature of a face image in a photographing preview image;
the brightness detection module is used for:
and detecting the brightness information of each region of the face image in the photographing preview image.
8. The apparatus of claim 5, wherein the fill light region determining module is configured to:
receiving a brightness adjustment request input by a user;
and determining the supplementary lighting area according to the brightness adjustment request and the current brightness of each area.
9. A mobile terminal, comprising a processor, a memory, and a computer program stored on the memory and executable on the processor, wherein the computer program, when executed by the processor, implements the steps of the fill light method according to any one of claims 1 to 4.
10. A computer-readable storage medium, having a computer program stored thereon, which, when being executed by a processor, implements the steps of the fill-in light method according to any one of claims 1 to 4.
CN201711135650.7A 2017-11-16 2017-11-16 Light supplementing method and device and mobile terminal Active CN107809599B (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201711135650.7A CN107809599B (en) 2017-11-16 2017-11-16 Light supplementing method and device and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201711135650.7A CN107809599B (en) 2017-11-16 2017-11-16 Light supplementing method and device and mobile terminal

Publications (2)

Publication Number Publication Date
CN107809599A CN107809599A (en) 2018-03-16
CN107809599B true CN107809599B (en) 2020-02-18

Family

ID=61580408

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201711135650.7A Active CN107809599B (en) 2017-11-16 2017-11-16 Light supplementing method and device and mobile terminal

Country Status (1)

Country Link
CN (1) CN107809599B (en)

Families Citing this family (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN111031255B (en) * 2018-10-09 2021-07-27 科沃斯机器人股份有限公司 Method, device and storage medium for light supplement
CN109302564B (en) * 2018-10-31 2021-01-08 维沃移动通信(杭州)有限公司 Shooting method and mobile terminal
CN109788174B (en) * 2019-01-11 2021-05-07 维沃移动通信有限公司 Light supplementing method and terminal
CN109803093B (en) * 2019-01-28 2021-02-26 深圳市云之梦科技有限公司 Imaging method of virtual fitting and virtual fitting equipment
CN110198416A (en) * 2019-06-11 2019-09-03 威海德盛电子有限公司 Light compensating apparatus and its control method
CN110460763A (en) * 2019-09-23 2019-11-15 天津天地伟业信息***集成有限公司 A kind of multi color temperature dynamic regulation integrated camera and image capture method
CN112751999A (en) * 2019-10-31 2021-05-04 北京小米移动软件有限公司 Electronic device, shooting method and shooting device
CN112995439A (en) * 2019-12-02 2021-06-18 北京小米移动软件有限公司 Light assembly, control method and control device thereof and electronic equipment
CN111182228B (en) * 2019-12-06 2021-07-23 广东小天才科技有限公司 Light supplement control method and intelligent loudspeaker box
CN111045279B (en) * 2019-12-30 2022-02-01 维沃移动通信有限公司 Flash lamp light supplementing method and electronic equipment
CN116405783A (en) * 2020-07-31 2023-07-07 华为技术有限公司 Shooting light supplementing method and related device
CN111935388B (en) * 2020-09-22 2022-01-04 Oppo广东移动通信有限公司 Flash lamp control method of mobile terminal, storage medium and equipment
CN112333399A (en) * 2020-11-30 2021-02-05 深圳创维-Rgb电子有限公司 Shooting light supplementing method, intelligent terminal and readable storage medium
CN114125241A (en) * 2021-11-30 2022-03-01 维沃移动通信有限公司 Shooting device, light supplementing method, light supplementing device and electronic equipment
CN115242984A (en) * 2022-06-30 2022-10-25 纳欣科技有限公司 Shooting light supplement method and electronic equipment
CN115631113B (en) * 2022-12-06 2023-03-17 深圳市蔚来芯科技有限公司 Image correction method and system

Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101888486A (en) * 2009-05-14 2010-11-17 鸿富锦精密工业(深圳)有限公司 Luminance compensation system and luminance compensation method
CN104967776A (en) * 2015-06-11 2015-10-07 广东欧珀移动通信有限公司 Photographing setting method and user terminal
CN105744174A (en) * 2016-02-15 2016-07-06 广东欧珀移动通信有限公司 Selfie method and device and mobile terminal
CN106101569A (en) * 2016-08-22 2016-11-09 维沃移动通信有限公司 A kind of method of light filling of taking pictures and mobile terminal
CN106657752A (en) * 2017-03-03 2017-05-10 上海传英信息技术有限公司 Light filling apparatus and light filling method of front camera

Family Cites Families (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107302669A (en) * 2017-08-25 2017-10-27 上海鼎为电子科技(集团)有限公司 Light compensation method, device and mobile terminal

Patent Citations (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN101888486A (en) * 2009-05-14 2010-11-17 鸿富锦精密工业(深圳)有限公司 Luminance compensation system and luminance compensation method
CN104967776A (en) * 2015-06-11 2015-10-07 广东欧珀移动通信有限公司 Photographing setting method and user terminal
CN105744174A (en) * 2016-02-15 2016-07-06 广东欧珀移动通信有限公司 Selfie method and device and mobile terminal
CN106101569A (en) * 2016-08-22 2016-11-09 维沃移动通信有限公司 A kind of method of light filling of taking pictures and mobile terminal
CN106657752A (en) * 2017-03-03 2017-05-10 上海传英信息技术有限公司 Light filling apparatus and light filling method of front camera

Also Published As

Publication number Publication date
CN107809599A (en) 2018-03-16

Similar Documents

Publication Publication Date Title
CN107809599B (en) Light supplementing method and device and mobile terminal
CN109639970B (en) Shooting method and terminal equipment
CN108848308B (en) Shooting method and mobile terminal
CN107302663B (en) Image brightness adjusting method, terminal and computer readable storage medium
CN111045279B (en) Flash lamp light supplementing method and electronic equipment
CN109361867B (en) Filter processing method and mobile terminal
CN108111754B (en) Method for determining image acquisition mode and mobile terminal
CN107621738B (en) Control method of mobile terminal and mobile terminal
CN108307109B (en) High dynamic range image preview method and terminal equipment
CN111246121B (en) Shooting light supplement method, electronic equipment and medium
CN109688322B (en) Method and device for generating high dynamic range image and mobile terminal
CN108040209B (en) Shooting method and mobile terminal
CN110266930A (en) Light compensation method, mobile terminal and the light adjusting method of image taking
CN108513067B (en) Shooting control method and mobile terminal
CN108924412B (en) Shooting method and terminal equipment
CN107888765B (en) Method for switching scene mode and mobile terminal
CN107995437B (en) Photo shooting and lighting method and mobile terminal
CN107644396B (en) Lip color adjusting method and device
CN107240072B (en) Screen brightness adjusting method, terminal and computer readable storage medium
CN110290331B (en) Screen control method and terminal
JP7467667B2 (en) Detection result output method, electronic device and medium
CN109102555B (en) Image editing method and terminal
JP2023518895A (en) Imaging methods and electronics
CN112019929A (en) Volume adjusting method and device
CN109101151B (en) Information display processing method and terminal equipment

Legal Events

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