[go: up one dir, main page]

CN106101569A - A kind of method of light filling of taking pictures and mobile terminal - Google Patents

A kind of method of light filling of taking pictures and mobile terminal Download PDF

Info

Publication number
CN106101569A
CN106101569A CN201610701349.7A CN201610701349A CN106101569A CN 106101569 A CN106101569 A CN 106101569A CN 201610701349 A CN201610701349 A CN 201610701349A CN 106101569 A CN106101569 A CN 106101569A
Authority
CN
China
Prior art keywords
color temperature
compensating lamp
light compensating
mobile terminal
temperature value
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN201610701349.7A
Other languages
Chinese (zh)
Inventor
陈满生
刘杰
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Vivo Mobile Communication Co Ltd
Original Assignee
Vivo Mobile Communication Co Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Vivo Mobile Communication Co Ltd filed Critical Vivo Mobile Communication Co Ltd
Priority to CN201610701349.7A priority Critical patent/CN106101569A/en
Publication of CN106101569A publication Critical patent/CN106101569A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/70Circuitry for compensating brightness variation in the scene
    • H04N23/74Circuitry for compensating brightness variation in the scene by influencing the scene brightness using illuminating means

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Studio Devices (AREA)
  • Image Input (AREA)
  • Color Image Communication Systems (AREA)

Abstract

本发明提供了一种拍照补光的方法及移动终端,其中,方法应用于移动终端,包括:获取移动终端的摄像头所采集的一帧预览图像;基于预览图像,计算移动终端所处环境的环境色温值;基于环境色温值,确定移动终端的至少两个补光灯中待启动的目标补光灯;控制目标补光灯进行补光;其中,至少两个补光灯的色温值均不同。本发明实施例解决了现有技术中移动终端的补光灯的亮度和色温都是定值造成的补光灯的补光效果会随移动终端所处环境发生变化,且补光灯的补光色彩与所处环境不匹配的问题,使得移动终端能够拍出效果更好的图片,提高了用户体验。

The present invention provides a method for supplementing light when photographing and a mobile terminal, wherein the method is applied to the mobile terminal, including: acquiring a frame of preview image collected by the camera of the mobile terminal; based on the preview image, calculating the environment where the mobile terminal is located Color temperature value; based on the ambient color temperature value, determine the target fill light to be activated among the at least two fill lights of the mobile terminal; control the target fill light to perform fill light; wherein, the color temperature values of at least two fill lights are different. The embodiment of the present invention solves the problem that the brightness and color temperature of the supplementary light of the mobile terminal in the prior art are fixed values. The supplementary light effect of the supplementary light will change with the environment where the mobile terminal is located, and the supplementary light color of the supplementary light The problem of incompatibility with the environment enables the mobile terminal to take pictures with better effects and improves user experience.

Description

一种拍照补光的方法及移动终端Method and mobile terminal for supplementing light when taking photos

技术领域technical field

本发明涉及通信技术领域,尤其涉及一种拍照补光的方法及移动终端。The present invention relates to the field of communication technology, in particular to a method for supplementing light when taking pictures and a mobile terminal.

背景技术Background technique

随着移动终端不断发展,拍照和摄像已经成为了移动终端的标准功能,并且人们对拍照和摄像效果的要求也越来越高。但是由于环境亮度的影响,移动终端在较暗环境中拍摄的照片效果都较差,例如照片的清晰度差、噪点严重以及亮度较低等。此时,为了解决较暗环境中拍摄效果差的问题,越来越多的移动终端上开始安装补光灯。With the continuous development of mobile terminals, photographing and video recording have become standard functions of mobile terminals, and people's requirements for photographing and video recording effects are also getting higher and higher. However, due to the influence of the ambient brightness, the pictures taken by the mobile terminal in a dark environment are poor in effect, for example, the pictures have poor definition, severe noise, and low brightness. At this time, in order to solve the problem of poor shooting effect in a dark environment, more and more mobile terminals have begun to install supplementary lights.

目前移动终端上的补光灯大多为一颗外界光源,该光源在较暗环境时会自动开启,从而提高所处环境的环境亮度。但是,该光源不管是亮度还是色温都是固定的,即不管移动终端处于何种环境下,该光源的亮度和色温都是一定值,这导致移动终端处于不同环境下时,补光灯的补光效果会随移动终端所处环境发生变化,同时也容易导致补光灯的补光色彩与所处环境不匹配的问题出现。At present, most of the supplementary light on the mobile terminal is an external light source, which will be automatically turned on in a dark environment, thereby increasing the ambient brightness of the environment. However, the brightness and color temperature of the light source are fixed, that is, no matter what environment the mobile terminal is in, the brightness and color temperature of the light source are all certain values. The light effect will change with the environment where the mobile terminal is located, and it is also easy to cause the problem that the fill light color of the fill light does not match the environment.

发明内容Contents of the invention

本发明提供一种拍照补光的方法及移动终端,以解决现有技术中移动终端处于不同环境下时,补光灯的补光效果会随移动终端所处环境发生变化,以及补光色彩容易与环境不相匹配的问题。The present invention provides a method and a mobile terminal for supplementary light for photographing, so as to solve the problem that in the prior art, when the mobile terminal is in different environments, the supplementary light effect of the supplementary light will change with the environment where the mobile terminal is located, and the color of the supplementary light is easy to be different from that of the mobile terminal. The environment does not match the problem.

第一方面,本发明提供了一种拍照补光的方法,应用于移动终端,所述方法包括:In a first aspect, the present invention provides a method for supplementing light when taking pictures, which is applied to a mobile terminal, and the method includes:

获取所述移动终端的摄像头所采集的一帧预览图像;Obtain a frame of preview image collected by the camera of the mobile terminal;

基于所述预览图像,计算所述移动终端所处环境的环境色温值;Based on the preview image, calculate the ambient color temperature value of the environment where the mobile terminal is located;

基于所述环境色温值,确定所述移动终端的至少两个补光灯中待启动的目标补光灯;Based on the ambient color temperature value, determine a target fill light to be activated among at least two fill lights of the mobile terminal;

控制所述目标补光灯进行补光;controlling the target fill light to perform fill light;

其中,所述至少两个补光灯的色温值均不同。Wherein, the color temperature values of the at least two fill lights are different.

第二方面,本发明还提供了一种移动终端,所述移动终端包括摄像头和至少两个补光灯,还包括:In the second aspect, the present invention also provides a mobile terminal, the mobile terminal includes a camera and at least two supplementary lights, and further includes:

获取模块,用于获取所述移动终端的摄像头所采集的一帧预览图像;An acquisition module, configured to acquire a frame of preview image collected by the camera of the mobile terminal;

第一计算模块,用于基于所述获取模块获取的所述预览图像,计算所述移动终端所处环境的环境色温值;A first calculation module, configured to calculate an ambient color temperature value of the environment where the mobile terminal is located based on the preview image acquired by the acquisition module;

第一确定模块,用于基于所述第一计算模块计算得到的环境色温值,确定所述移动终端的至少两个补光灯中待启动的目标补光灯;A first determination module, configured to determine a target supplementary light to be activated among at least two supplementary lights of the mobile terminal based on the ambient color temperature value calculated by the first calculation module;

控制模块,用于控制所述第一确定模块确定的目标补光灯进行补光;其中,所述至少两个补光灯的色温值均不同。The control module is configured to control the target fill light determined by the first determination module to perform fill light; wherein, the color temperature values of the at least two fill lights are different.

这样,本发明实施例中,通过首先获取移动终端的摄像头所采集的一帧预览图像,然后基于通过该预览图像计算得到的移动终端所处环境的环境色温值,确定移动终端的至少两个色温值均不同的补光灯中待启动的目标补光灯,最后控制目标补光灯进行补光,这样,使得移动终端能够控制可以发出与移动终端所处环境的环境色温最为接近的色温的目标补光灯进行补光,从而使得移动终端能够利用目标补光灯的补光效果拍摄出效果更好的图像,解决了现有技术中移动终端处于不同环境下时,补光灯的补光效果会随移动终端所处环境发生变化,以及补光色彩容易与环境不相匹配的问题。In this way, in the embodiment of the present invention, by first acquiring a preview image captured by the camera of the mobile terminal, and then determining at least two color temperature values of the mobile terminal based on the ambient color temperature value of the environment where the mobile terminal is located through the calculation of the preview image Among the fill lights with different values, the target fill light to be started is finally controlled to perform fill light, so that the mobile terminal can control the target that can emit the color temperature closest to the ambient color temperature of the environment where the mobile terminal is located. The supplementary light performs supplementary light, so that the mobile terminal can take advantage of the supplementary light effect of the target supplementary light to take better images, and solves the problem of the supplementary light effect of the supplementary light in the prior art when the mobile terminal is in different environments. The environment of the mobile terminal changes, and the color of the supplementary light does not easily match the environment.

附图说明Description of drawings

为了更清楚地说明本发明实施例的技术方案,下面将对本发明实施例的描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动性的前提下,还可以根据这些附图获得其他的附图。In order to more clearly illustrate the technical solutions of the embodiments of the present invention, the following will briefly introduce the accompanying drawings that need to be used in the description of the embodiments of the present invention. Obviously, the accompanying drawings in the following description are only some embodiments of the present invention , for those skilled in the art, other drawings can also be obtained according to these drawings without paying creative labor.

图1表示本发明的第一实施例中拍照补光的方法的流程图;Fig. 1 represents the flow chart of the method for photographing supplementary light in the first embodiment of the present invention;

图2表示本发明的第二实施例中拍照补光的方法的流程图;Fig. 2 shows the flowchart of the method for taking pictures and supplementing light in the second embodiment of the present invention;

图3表示本发明的第三实施例中移动终端的结构框图之一;Fig. 3 represents one of the structural block diagrams of the mobile terminal in the third embodiment of the present invention;

图4表示本发明的第三实施例中移动终端的结构框图之二;Fig. 4 shows the second structural block diagram of the mobile terminal in the third embodiment of the present invention;

图5表示本发明的第四实施例中移动终端的结构框图;Fig. 5 shows the structural block diagram of mobile terminal in the 4th embodiment of the present invention;

图6表示本发明的第五实施例中移动终端的结构框图。Fig. 6 shows a block diagram of a mobile terminal in a fifth embodiment of the present invention.

具体实施方式detailed description

下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。The following will clearly and completely describe the technical solutions in the embodiments of the present invention with reference to the accompanying drawings in the embodiments of the present invention. Obviously, the described embodiments are some of the embodiments of the present invention, but not all of them. Based on the embodiments of the present invention, all other embodiments obtained by persons of ordinary skill in the art without creative efforts fall within the protection scope of the present invention.

第一实施例:First embodiment:

如图1所示,为本发明的第一实施例中拍照补光的方法的流程图,包括:As shown in Figure 1, it is a flow chart of the method for taking pictures and supplementing light in the first embodiment of the present invention, including:

步骤101,获取移动终端的摄像头所采集的一帧预览图像。Step 101, acquire a frame of preview image captured by a camera of a mobile terminal.

在本步骤中,具体的,移动终端上设置有摄像头,移动终端可以获取移动终端的摄像头所采集的一帧预览图像。In this step, specifically, the mobile terminal is provided with a camera, and the mobile terminal can obtain a frame of preview image collected by the camera of the mobile terminal.

步骤102,基于预览图像,计算移动终端所处环境的环境色温值。Step 102, based on the preview image, calculate the ambient color temperature value of the environment where the mobile terminal is located.

在本步骤中,具体的,在基于预览图像,计算移动终端所处环境的环境色温值时,可以先获取预览图像的RGB信息,然后基于获取到的RGB信息和自动白平衡算法,计算得到移动终端所处环境的环境色温值。In this step, specifically, when calculating the ambient color temperature value of the environment where the mobile terminal is located based on the preview image, the RGB information of the preview image can be obtained first, and then the mobile terminal can be calculated based on the obtained RGB information and the automatic white balance algorithm. The ambient color temperature value of the environment where the terminal is located.

步骤103,基于环境色温值,确定移动终端的至少两个补光灯中待启动的目标补光灯。Step 103, based on the ambient color temperature value, determine a target supplementary light to be activated among at least two supplementary lights of the mobile terminal.

具体的,移动终端上设置有至少两个补光灯,且至少两个补光灯的色温值均不相同。在本步骤中,移动终端可以基于环境色温值,确定移动终端的至少两个补光灯中待启动的目标补光灯。Specifically, the mobile terminal is provided with at least two supplementary lights, and the color temperature values of the at least two supplementary lights are different. In this step, the mobile terminal may determine a target supplementary light to be activated among at least two supplementary lights of the mobile terminal based on the ambient color temperature value.

具体的,由于至少两个补光灯的色温值均不相同,因此在基于环境色温值确定移动终端的待启动的目标补光灯时,可以确定移动终端的至少两个补光灯中能够发出与环境色温值相匹配的色温的补光灯为目标补光灯。Specifically, since the color temperature values of at least two supplementary lights are different, when determining the target supplementary light to be activated of the mobile terminal based on the ambient color temperature value, it can be determined that the at least two supplementary lights of the mobile terminal can emit The fill light with a color temperature matching the ambient color temperature value is the target fill light.

步骤104,控制目标补光灯进行补光。Step 104, controlling the target fill light to perform fill light.

在本步骤中,具体的,当确定待启动的目标补光灯之后,可以控制启动目标补光灯,即控制目标补光灯进行补光。In this step, specifically, after the target fill light to be activated is determined, the target fill light may be controlled to be activated, that is, the target fill light may be controlled to perform fill light.

这样,本实施例通过获取移动终端的摄像头所采集的一帧预览图像,并基于通过该预览图像计算得到的移动终端所处环境的环境色温值,确定移动终端的至少两个色温值均不同的补光灯中待启动的目标补光灯,最后控制目标补光灯进行补光,使得移动终端能够控制可以发出与移动终端所处环境的环境色温最为接近的色温的目标补光灯进行补光,从而使得移动终端能够利用目标补光灯的补光效果拍摄出效果更好的图像,解决了现有技术中移动终端处于不同环境下时,补光灯的补光效果会随移动终端所处环境发生变化,以及补光色彩容易与环境不相匹配的问题。In this way, in this embodiment, by acquiring a frame of preview image collected by the camera of the mobile terminal, and based on the ambient color temperature value of the environment where the mobile terminal is located calculated through the preview image, it is determined that at least two color temperature values of the mobile terminal are different. The target fill light to be started in the fill light, and finally control the target fill light to fill in light, so that the mobile terminal can control the target fill light that can emit the color temperature closest to the ambient color temperature of the environment where the mobile terminal is located. , so that the mobile terminal can use the fill light effect of the target fill light to take better images, and solve the problem that in the prior art, when the mobile terminal is in different environments, the fill light effect of the fill light will vary with the environment where the mobile terminal is located. Changes, and the problem that the color of the fill light is easy to not match the environment.

第二实施例:Second embodiment:

如图2所示,为本发明的第二实施例中拍照补光的方法的流程图,包括:As shown in Figure 2, it is a flow chart of the method for taking pictures and supplementing light in the second embodiment of the present invention, including:

步骤201,获取移动终端的摄像头所采集的一帧预览图像。Step 201, acquire a frame of preview image captured by a camera of a mobile terminal.

在本步骤中,具体的,移动终端上设置有摄像头,移动终端可以获取移动终端的摄像头所采集的一帧预览图像。In this step, specifically, the mobile terminal is provided with a camera, and the mobile terminal can obtain a frame of preview image collected by the camera of the mobile terminal.

步骤202,基于预览图像,计算移动终端所处环境的环境色温值。Step 202, based on the preview image, calculate the ambient color temperature value of the environment where the mobile terminal is located.

在本步骤中,具体的,在基于预览图像,计算移动终端所处环境的环境色温值时,可以先获取预览图像的RGB信息,然后基于获取到的RGB信息和自动白平衡算法,计算得到移动终端所处环境的环境色温值。In this step, specifically, when calculating the ambient color temperature value of the environment where the mobile terminal is located based on the preview image, the RGB information of the preview image can be obtained first, and then the mobile terminal can be calculated based on the obtained RGB information and the automatic white balance algorithm. The ambient color temperature value of the environment where the terminal is located.

步骤203,基于环境色温值,确定移动终端的至少两个补光灯中待启动的目标补光灯。Step 203, based on the ambient color temperature value, determine a target supplementary light to be activated among at least two supplementary lights of the mobile terminal.

具体的,移动终端包括具有第一色温值的第一补光灯、具有第二色温值的第二补光灯和具有第三色温值的第三补光灯,其中,第一色温值小于第二色温值,第二色温值小于第三色温值。这样,在基于获取到的环境色温值,确定移动终端的至少两个补光灯中待启动的目标补光灯时,若移动终端所处环境的环境色温值大于预设的第一色温阈值,则可以确定待启动的目标补光灯为第三补光灯;若环境色温值大于预设的第二色温阈值且小于第一色温阈值,则确定待启动的目标补光灯为第二补光灯和第三补光灯;若环境色温值大于预设的第三色温阈值且小于第二色温阈值,则确定待启动的目标补光灯为第一补光灯和第二补光灯;若环境色温值小于第三色温阈值,则确定待启动的目标补光灯为第一补光灯。Specifically, the mobile terminal includes a first supplementary light with a first color temperature value, a second supplementary light with a second color temperature value, and a third supplementary light with a third color temperature value, wherein the first color temperature value is smaller than the first color temperature value Two color temperature values, the second color temperature value is smaller than the third color temperature value. In this way, when determining the target fill light to be activated among the at least two fill lights of the mobile terminal based on the acquired ambient color temperature value, if the ambient color temperature value of the environment where the mobile terminal is located is greater than the preset first color temperature threshold, Then it can be determined that the target fill light to be activated is the third fill light; if the ambient color temperature value is greater than the preset second color temperature threshold and less than the first color temperature threshold, then it is determined that the target fill light to be activated is the second fill light light and the third fill light; if the ambient color temperature value is greater than the preset third color temperature threshold and less than the second color temperature threshold, then determine that the target fill light to be activated is the first fill light and the second fill light; if If the ambient color temperature value is less than the third color temperature threshold, it is determined that the target supplementary light to be activated is the first supplementary light.

这样,当环境色温值大于最高的第一色温阈值时,可以确定待启动的目标补光灯为移动终端的所有补光灯中能够发出最高色温的补光灯;当环境色温值小于最低的第三色温阈值时,可以确定待启动的目标补光灯为移动终端的所有补光灯中能够发出最低色温的补光灯;当环境色温值小于最高的第一色温阈值,且大于仅次于第一色温阈值的第二色温阈值时,可以确定待启动的目标补光灯为移动终端的所有补光灯中能够发出最高色温的补光灯和能够发出仅次于最高色温的补光灯;当环境色温值小于仅次于最高的第一色温阈值的第二色温阈值,且大于最低的第三色温阈值时,可以确定待启动的目标补光灯为移动终端的所有补光灯中能够发出仅次于最高色温的补光灯和能够发出最低色温的补光灯。这样,能够使得待启动的目标补光灯发出与移动终端所处环境的环境色温最为接近的色温,从而使得移动终端能够根据目标补光灯的补光效果拍摄出效果更好的图像。In this way, when the ambient color temperature value is greater than the highest first color temperature threshold, it can be determined that the target supplementary light to be started is the supplementary light that can emit the highest color temperature among all supplementary lights of the mobile terminal; When there are three color temperature thresholds, it can be determined that the target supplementary light to be started is the supplementary light with the lowest color temperature among all the supplementary lights of the mobile terminal; when the ambient color temperature value is less than the highest first color temperature threshold, and greater than the next When the first color temperature threshold is the second color temperature threshold, it can be determined that the target supplementary light to be started is the supplementary light that can emit the highest color temperature and the supplementary light that can emit the highest color temperature among all the supplementary lights of the mobile terminal; When the ambient color temperature value is less than the second color temperature threshold next to the highest first color temperature threshold, and greater than the third lowest color temperature threshold, it can be determined that the target supplementary light to be activated is one of all supplementary lights of the mobile terminal that can emit only The fill light with the highest color temperature and the fill light with the lowest color temperature. In this way, the target fill light to be activated can be made to emit a color temperature closest to that of the environment where the mobile terminal is located, so that the mobile terminal can capture images with better effects according to the fill light effect of the target fill light.

步骤204,基于预览图像,计算移动终端所处环境的环境亮度值。Step 204, based on the preview image, calculate the ambient brightness value of the environment where the mobile terminal is located.

在本步骤中,具体的,当基于获取到的环境色温值,确定移动终端的至少两个补光灯中待启动的目标补光灯之后,还可以基于获取到的预览图像,计算移动终端所处环境的环境亮度值。具体的,在基于获取到的预览图像,计算移动终端所处环境的环境亮度值时,可以先获取预览图像的曝光时间值、曝光增益值和图像亮度值,然后基于曝光时间值和曝光增益值,计算曝光指数,最后基于曝光指数和图像亮度值,计算移动终端所处环境的环境亮度值。In this step, specifically, after determining the target supplementary light to be activated among the at least two supplementary lights of the mobile terminal based on the acquired ambient color temperature value, the mobile terminal can also be calculated based on the acquired preview image. The ambient brightness value of the environment. Specifically, when calculating the ambient brightness value of the environment where the mobile terminal is located based on the obtained preview image, the exposure time value, exposure gain value, and image brightness value of the preview image can be obtained first, and then based on the exposure time value and exposure gain value , calculate the exposure index, and finally calculate the ambient brightness value of the environment where the mobile terminal is located based on the exposure index and the image brightness value.

步骤205,根据环境亮度值以及环境亮度值与补光灯电流的预设关系,确定目标补光灯的补光灯电流。Step 205: Determine the fill light current of the target fill light according to the ambient brightness value and the preset relationship between the ambient brightness value and the fill light current.

在本步骤中,具体的,移动终端可以根据获取到的环境亮度值以及环境亮度值与补光灯电流的预设关系,确定目标补光灯的补光灯电流。具体的,环境亮度值与补光灯电流呈反相关关系,即环境亮度值越大,补光灯电流越小,环境亮度值越小,补光灯电流越大。In this step, specifically, the mobile terminal may determine the supplementary light current of the target supplementary light according to the acquired ambient brightness value and the preset relationship between the ambient brightness value and the supplementary light current. Specifically, there is an inverse correlation between the ambient brightness value and the fill light current, that is, the larger the ambient brightness value, the smaller the fill light current, and the smaller the ambient brightness value, the greater the fill light current.

这样,获取到的环境亮度值越小时,目标补光灯的补光灯电流越大,即目标补光灯的亮度越大,从而使得移动终端的目标补光灯发出的亮度能够与移动终端所处环境的环境亮度相匹配,从而使得移动终端的目标补光灯能够根据该补光灯电流对应的补光灯亮度,拍摄出效果更好的图片。当然,当获取到的环境亮度值越大时,目标补光灯的补光灯电流越小,即目标补光灯的亮度越小,从而使得目标补光灯的亮度在满足移动终端的拍摄需求时,为移动终端节约电量。In this way, the smaller the acquired ambient brightness value, the greater the current of the fill light of the target fill light, that is, the greater the brightness of the target fill light, so that the brightness emitted by the target fill light of the mobile terminal can be compared with that of the mobile terminal. The ambient brightness of the surrounding environment is matched, so that the target supplementary light of the mobile terminal can take pictures with better effects according to the brightness of the supplementary light corresponding to the current of the supplementary light. Of course, when the acquired ambient brightness value is larger, the current of the target supplementary light is smaller, that is, the brightness of the target supplementary light is smaller, so that the brightness of the target supplementary light meets the shooting requirements of the mobile terminal. , saving power for the mobile terminal.

步骤206,控制目标补光灯根据补光灯电流进行补光。Step 206, controlling the target fill light to perform fill light according to the current of the fill light.

在本步骤中,具体的,在确定目标补光灯的补光灯电流之后,可以控制目标补光灯根据补光灯电流进行补光。此外,可选的,为了缩小移动终端所处环境的环境色温与目标补光灯发出的色温之间的差值,可以对补光灯电流进行微调,从而使得目标补光灯发出的色温与移动终端所处环境的环境色温更加接近,进而使得移动终端能够根据目标补光灯的补光效果拍摄出效果更好的图片。In this step, specifically, after the fill light current of the target fill light is determined, the target fill light may be controlled to perform fill light according to the fill light current. In addition, optionally, in order to narrow the difference between the ambient color temperature of the environment where the mobile terminal is located and the color temperature emitted by the target fill light, the current of the fill light can be fine-tuned, so that the color temperature emitted by the target fill light is consistent with the mobile The ambient color temperature of the environment where the terminal is located is closer, so that the mobile terminal can take pictures with better effects according to the fill light effect of the target fill light.

在此对此进行举例说明。This is illustrated here with an example.

假设待启动的目标补光灯为第一色温值对应的第一补光灯和第二色温值对应的第二补光灯,虽然第一色温值对应的第一补光灯和第二色温值对应的第二补光灯综合发出的色温与移动终端所处环境的环境色温最为接近,但第一色温值对应的第一补光灯和第二色温值对应的第二补光灯综合发出的色温与移动终端所处环境的环境色温之间还是存在一定的差距。此时,可以分别对第一补光灯和第二补光灯的补光灯电流进行微调,以使调节后的第一补光灯和第二补光灯发出的色温更接近于环境色温,进一步提高了环境色温和目标补光灯发出的色温之间的匹配度。Assume that the target fill light to be activated is the first fill light corresponding to the first color temperature value and the second fill light corresponding to the second color temperature value, although the first fill light corresponding to the first color temperature value and the second color temperature value The color temperature comprehensively emitted by the corresponding second supplementary light is closest to the ambient color temperature of the environment where the mobile terminal is located, but the comprehensive emission of the first supplementary light corresponding to the first color temperature value and the second supplementary light corresponding to the second color temperature value is There is still a certain gap between the color temperature and the ambient color temperature of the environment where the mobile terminal is located. At this time, the currents of the first supplementary light and the second supplementary light can be fine-tuned respectively, so that the adjusted color temperature of the first supplementary light and the second supplementary light is closer to the ambient color temperature. Further improved the matching between the ambient color temperature and the color temperature emitted by the target fill light.

这样,本实施例通过移动终端所处环境的环境色温值,来确定移动终端的至少两个补光灯中待启动的目标补光灯,然后再通过移动终端所处环境的环境亮度值,来确定目标补光灯的补光灯电流,最后再控制目标补光灯根据该补光灯电流进行补光。这样,本实施例能够使得移动终端在拍照时,目标补光灯能够发出与移动终端所处环境的环境色温最为接近的色温,并发出与环境亮度最为接近的亮度,解决了现有技术中移动终端的补光灯的亮度和色温都是定值造成的补光灯的补光效果会随移动终端所处环境发生变化,且补光灯的补光色彩与所处环境不匹配的问题,使得移动终端能够根据目标补光灯的补光效果拍摄出效果更好的图片,提高了用户体验。In this way, in this embodiment, the target supplementary light to be activated among the at least two supplementary lights of the mobile terminal is determined through the ambient color temperature value of the environment where the mobile terminal is located, and then the target supplementary light to be activated is determined according to the ambient brightness value of the environment where the mobile terminal is located. Determine the fill light current of the target fill light, and finally control the target fill light to perform fill light according to the fill light current. In this way, in this embodiment, when the mobile terminal is taking pictures, the target supplementary light can emit the color temperature closest to the ambient color temperature of the environment where the mobile terminal is located, and emit the brightness closest to the ambient brightness, which solves the problem of mobile terminals in the prior art. The brightness and color temperature of the fill light are fixed values. The fill light effect of the fill light will change with the environment where the mobile terminal is located, and the fill light color of the fill light does not match the environment. The terminal can take pictures with better effects according to the fill light effect of the target fill light, which improves the user experience.

第三实施例:Third embodiment:

如图3所示,为本发明的第三实施例中移动终端的结构框图之一,该移动终端包括摄像头和至少两个补光灯,还包括:As shown in Figure 3, it is one of the structural block diagrams of the mobile terminal in the third embodiment of the present invention, the mobile terminal includes a camera and at least two supplementary lights, and also includes:

获取模块301,用于获取移动终端的摄像头所采集的一帧预览图像;An acquisition module 301, configured to acquire a frame of preview image collected by the camera of the mobile terminal;

第一计算模块302,用于基于获取模块301获取的预览图像,计算移动终端所处环境的环境色温值;The first calculation module 302 is used to calculate the environmental color temperature value of the environment where the mobile terminal is located based on the preview image acquired by the acquisition module 301;

第一确定模块303,用于基于第一计算模块302计算得到的环境色温值,确定移动终端的至少两个补光灯中待启动的目标补光灯;The first determination module 303 is configured to determine the target supplementary light to be activated among the at least two supplementary lights of the mobile terminal based on the ambient color temperature value calculated by the first calculation module 302;

控制模块304,用于控制第一确定模块303确定的目标补光灯进行补光;其中,至少两个补光灯的色温值均不同。The control module 304 is configured to control the target fill light determined by the first determination module 303 to perform fill light; where at least two fill light have different color temperature values.

这样,通过获取模块获取移动终端的摄像头所采集的一帧预览图像,然后通过第一计算模块基于通过该预览图像计算得到的移动终端所处环境的环境色温值,然后通过第一确定模块确定移动终端的至少两个色温值均不同的补光灯中待启动的目标补光灯,最后通过控制模块控制目标补光灯进行补光,这样,使得移动终端能够控制可以发出与移动终端所处环境的环境色温最为接近的色温的目标补光灯进行补光,从而使得移动终端能够利用目标补光灯的补光效果拍摄出效果更好的图像,解决了现有技术中移动终端处于不同环境下时,补光灯的补光效果会随移动终端所处环境发生变化,以及补光色彩容易与环境不相匹配的问题。In this way, a frame of preview image collected by the camera of the mobile terminal is obtained by the acquisition module, and then the ambient color temperature value of the environment where the mobile terminal is located is calculated based on the preview image by the first calculation module, and then determined by the first determination module. The target fill light to be started among the at least two fill lights with different color temperature values of the terminal is finally controlled by the control module to perform fill light, so that the mobile terminal can control the light that can be emitted and the environment where the mobile terminal is located. The target fill light with the color temperature closest to the ambient color temperature is used to fill in the light, so that the mobile terminal can use the fill light effect of the target fill light to shoot better images, which solves the problem of mobile terminals in different environments in the prior art. , the supplementary light effect of the supplementary light will change with the environment where the mobile terminal is located, and the problem that the supplementary light color is likely not to match the environment.

如图4所示,为本发明的第三实施例中移动终端的结构框图之二。As shown in FIG. 4 , it is the second structural block diagram of the mobile terminal in the third embodiment of the present invention.

可选地,第一计算模块302包括:第一获取单元3021,用于获取预览图像的RGB信息;第一计算单元3022,用于基于第一获取单元获取的RGB信息和自动白平衡算法,计算得到移动终端所处环境的环境色温值。Optionally, the first calculation module 302 includes: a first acquisition unit 3021, configured to acquire the RGB information of the preview image; a first calculation unit 3022, configured to calculate based on the RGB information acquired by the first acquisition unit and the automatic white balance algorithm The ambient color temperature value of the environment where the mobile terminal is located is obtained.

可选地,移动终端包括具有第一色温值的第一补光灯、具有第二色温值的第二补光灯和具有第三色温值的第三补光灯,其中,第一色温值小于第二色温值,第二色温值小于第三色温值。Optionally, the mobile terminal includes a first supplementary light with a first color temperature value, a second supplementary light with a second color temperature value, and a third supplementary light with a third color temperature value, wherein the first color temperature value is less than The second color temperature value, the second color temperature value is smaller than the third color temperature value.

可选地,第一确定模块303用于,若环境色温值大于预设的第一色温阈值,则确定待启动的目标补光灯为第三补光灯。Optionally, the first determination module 303 is configured to determine that the target supplementary light to be activated is the third supplementary light if the ambient color temperature value is greater than the preset first color temperature threshold.

可选地,第一确定模块303用于,若环境色温值大于预设的第二色温阈值且小于第一色温阈值,则确定待启动的目标补光灯为第二补光灯和第三补光灯。Optionally, the first determining module 303 is configured to determine that the target supplementary light to be activated is the second supplementary light and the third supplementary light if the ambient color temperature value is greater than the preset second color temperature threshold and less than the first color temperature threshold. lights.

可选地,第一确定模块303用于,若环境色温值大于预设的第三色温阈值且小于第二色温阈值,则确定待启动的目标补光灯为第一补光灯和第二补光灯。Optionally, the first determining module 303 is configured to determine that the target supplementary light to be activated is the first supplementary light and the second supplementary light if the ambient color temperature value is greater than the preset third color temperature threshold and less than the second color temperature threshold. lights.

可选地,第一确定模块303用于,若环境色温值小于第三色温阈值,则确定待启动的目标补光灯为第一补光灯。Optionally, the first determination module 303 is configured to determine that the target supplementary light to be activated is the first supplementary light if the ambient color temperature value is less than the third color temperature threshold.

可选地,移动终端还包括:第二计算模块305,用于基于获取模块301获取的预览图像,计算移动终端所处环境的环境亮度值;第二确定模块306,用于根据第二计算模块305计算得到的环境亮度值以及环境亮度值与补光灯电流的预设关系,确定目标补光灯的补光灯电流;其中,环境亮度值与补光灯电流反相关。Optionally, the mobile terminal further includes: a second calculation module 305, configured to calculate the ambient brightness value of the environment where the mobile terminal is located based on the preview image acquired by the acquisition module 301; 305 Determine the supplementary light current of the target supplementary light based on the calculated ambient brightness value and the preset relationship between the ambient brightness value and the current of the supplementary light; wherein, the ambient brightness value is inversely correlated with the current of the supplementary light.

可选地,第二计算模块305包括:第二获取单元3051,用于获取预览图像的曝光时间值、曝光增益值和图像亮度值;第二计算单元3052,用于基于曝光时间值和曝光增益值,计算曝光指数;第三计算单元3053,用于基于曝光指数和图像亮度值,计算移动终端所处环境的环境亮度值。Optionally, the second computing module 305 includes: a second obtaining unit 3051, configured to obtain the exposure time value, exposure gain value, and image brightness value of the preview image; a second computing unit 3052, configured to value to calculate the exposure index; the third calculation unit 3053 is configured to calculate the ambient brightness value of the environment where the mobile terminal is located based on the exposure index and the image brightness value.

可选地,控制模块304用于,控制目标补光灯根据第二确定模块确定的补光灯电流进行补光。Optionally, the control module 304 is configured to control the target fill light to perform fill light according to the current of the fill light determined by the second determination module.

这样,本实施例通过移动终端所处环境的环境色温值,来确定移动终端的至少两个补光灯中待启动的目标补光灯,然后再通过移动终端所处环境的环境亮度值,来确定目标补光灯的补光灯电流,最后再控制目标补光灯根据该补光灯电流进行补光。这样,本实施例能够使得移动终端在拍照时,目标补光灯能够发出与移动终端所处环境的环境色温最为接近的色温,并发出与环境亮度最为接近的亮度,解决了现有技术中移动终端的补光灯的亮度和色温都是定值造成的补光灯的补光效果会随移动终端所处环境发生变化,且补光灯的补光色彩与所处环境不匹配的问题,使得移动终端能够根据目标补光灯的补光效果拍摄出效果更好的图片,提高了用户体验。In this way, in this embodiment, the target supplementary light to be activated among the at least two supplementary lights of the mobile terminal is determined through the ambient color temperature value of the environment where the mobile terminal is located, and then the target supplementary light to be activated is determined according to the ambient brightness value of the environment where the mobile terminal is located. Determine the fill light current of the target fill light, and finally control the target fill light to perform fill light according to the fill light current. In this way, in this embodiment, when the mobile terminal is taking pictures, the target supplementary light can emit the color temperature closest to the ambient color temperature of the environment where the mobile terminal is located, and emit the brightness closest to the ambient brightness, which solves the problem of mobile terminals in the prior art. The brightness and color temperature of the fill light are fixed values. The fill light effect of the fill light will change with the environment where the mobile terminal is located, and the fill light color of the fill light does not match the environment. The terminal can take pictures with better effects according to the fill light effect of the target fill light, which improves the user experience.

第四实施例:Fourth embodiment:

如图5所示,为本发明的第四实施例中移动终端的结构框图。图5所示的移动终端500包括:至少一个处理器501、存储器502、至少一个网络接口504、用户接口503。移动终端500中的各个组件通过总线系统505耦合在一起。可理解,总线系统505用于实现这些组件之间的连接通信。总线系统505除包括数据总线之外,还包括电源总线、控制总线和状态信号总线。但是为了清楚说明起见,在图5中将各种总线都标为总线系统505。此外,移动终端500还包括摄像头506和至少两个补光灯507。As shown in FIG. 5 , it is a structural block diagram of the mobile terminal in the fourth embodiment of the present invention. The mobile terminal 500 shown in FIG. 5 includes: at least one processor 501 , a memory 502 , at least one network interface 504 , and a user interface 503 . Various components in the mobile terminal 500 are coupled together through the bus system 505 . It can be understood that the bus system 505 is used to realize connection and communication between these components. In addition to the data bus, the bus system 505 also includes a power bus, a control bus and a status signal bus. However, for clarity of illustration, the various buses are labeled as bus system 505 in FIG. 5 . In addition, the mobile terminal 500 also includes a camera 506 and at least two supplementary lights 507 .

其中,用户接口503可以包括显示器、键盘或者点击设备(例如,鼠标,轨迹球(trackball)、触感板或者触摸屏等。Wherein, the user interface 503 may include a display, a keyboard, or a pointing device (for example, a mouse, a trackball (trackball), a touch panel, or a touch screen, and the like.

可以理解,本发明实施例中的存储器502可以是易失性存储器或非易失性存储器,或可包括易失性和非易失性存储器两者。其中,非易失性存储器可以是只读存储器(Read-Only Memory,ROM)、可编程只读存储器(Programmable ROM,PROM)、可擦除可编程只读存储器(Erasable PROM,EPROM)、电可擦除可编程只读存储器(Electrically EPROM,EEPROM)或闪存。易失性存储器可以是随机存取存储器(Random Access Memory,RAM),其用作外部高速缓存。通过示例性但不是限制性说明,许多形式的RAM可用,例如静态随机存取存储器(Static RAM,SRAM)、动态随机存取存储器(Dynamic RAM,DRAM)、同步动态随机存取存储器(Synchronous DRAM,SDRAM)、双倍数据速率同步动态随机存取存储器(Double Data RateSDRAM,DDRSDRAM)、增强型同步动态随机存取存储器(Enhanced SDRAM,ESDRAM)、同步连接动态随机存取存储器(Synchlink DRAM,SLDRAM)和直接内存总线随机存取存储器(DirectRambus RAM,DRRAM)。本发明实施例描述的系统和方法的存储器502旨在包括但不限于这些和任意其它适合类型的存储器。It can be understood that the memory 502 in the embodiment of the present invention may be a volatile memory or a nonvolatile memory, or may include both volatile and nonvolatile memories. Wherein, the non-volatile memory may be a read-only memory (Read-Only Memory, ROM), a programmable read-only memory (Programmable ROM, PROM), an erasable programmable read-only memory (Erasable PROM, EPROM), an electronically programmable Erase Programmable Read-Only Memory (Electrically EPROM, EEPROM) or Flash. The volatile memory can be Random Access Memory (RAM), which acts as an external cache. By way of illustration and not limitation, many forms of RAM are available such as Static RAM (SRAM), Dynamic RAM (DRAM), Synchronous DRAM (Synchronous DRAM, SDRAM), double data rate synchronous dynamic random access memory (Double Data RateSDRAM, DDRSDRAM), enhanced synchronous dynamic random access memory (Enhanced SDRAM, ESDRAM), synchronous connection dynamic random access memory (Synchlink DRAM, SLDRAM) and Direct memory bus random access memory (DirectRambus RAM, DRRAM). The memory 502 of the systems and methods described in embodiments of the present invention is intended to include, but is not limited to, these and any other suitable types of memory.

在一些实施方式中,存储器502存储了如下的元素,可执行模块或者数据结构,或者他们的子集,或者他们的扩展集:操作系统5021和应用程序5022。具体的,存储器502中存储有设置模块及配置文件。In some implementations, the memory 502 stores the following elements, executable modules or data structures, or their subsets, or their extended sets: an operating system 5021 and an application program 5022 . Specifically, setting modules and configuration files are stored in the memory 502 .

其中,操作系统5021,包含各种系统程序,例如框架层、核心库层、驱动层等,用于实现各种基础业务以及处理基于硬件的任务。应用程序5022,包含各种应用程序,例如媒体播放器(Media Player)、浏览器(Browser)等,用于实现各种应用业务。实现本发明实施例方法的程序可以包含在应用程序5022中。Among them, the operating system 5021 includes various system programs, such as framework layer, core library layer, driver layer, etc., for realizing various basic services and processing tasks based on hardware. The application program 5022 includes various application programs, such as a media player (Media Player), a browser (Browser), etc., and is used to implement various application services. The program for realizing the method of the embodiment of the present invention may be included in the application program 5022 .

在本发明实施例中,通过调用存储器502存储的程序或指令,具体的,可以是应用程序5022中存储的程序或指令。其中,处理器501用于:获取移动终端的摄像头506所采集的一帧预览图像;基于预览图像,计算移动终端所处环境的环境色温值;基于环境色温值,确定移动终端的至少两个补光灯507中待启动的目标补光灯;控制目标补光灯进行补光;其中,至少两个补光灯的色温值均不同。In the embodiment of the present invention, the program or instruction stored in the memory 502 is called, specifically, the program or instruction stored in the application program 5022 may be used. Wherein, the processor 501 is used to: obtain a frame of preview image collected by the camera 506 of the mobile terminal; calculate the environmental color temperature value of the environment where the mobile terminal is located based on the preview image; The target supplementary light to be activated in the light 507; the target supplementary light is controlled to perform supplementary light; wherein, the color temperature values of at least two supplementary lights are different.

上述本发明实施例揭示的方法可以应用于处理器501中,或者由处理器501实现。处理器501可能是一种集成电路芯片,具有信号的处理能力。在实现过程中,上述方法的各步骤可以通过处理器501中的硬件的集成逻辑电路或者软件形式的指令完成。上述的处理器501可以是通用处理器、数字信号处理器(Digital Signal Processor,DSP)、专用集成电路(Application Specific Integrated Circuit,ASIC)、现场可编程门阵列(FieldProgrammable Gate Array,FPGA)或者其他可编程逻辑器件、分立门或者晶体管逻辑器件、分立硬件组件。可以实现或者执行本发明实施例中的公开的各方法、步骤及逻辑框图。通用处理器可以是微处理器或者该处理器也可以是任何常规的处理器等。结合本发明实施例所公开的方法的步骤可以直接体现为硬件译码处理器执行完成,或者用译码处理器中的硬件及软件模块组合执行完成。软件模块可以位于随机存储器,闪存、只读存储器,可编程只读存储器或者电可擦写可编程存储器、寄存器等本领域成熟的存储介质中。该存储介质位于存储器502,处理器501读取存储器502中的信息,结合其硬件完成上述方法的步骤。此外,存储器502内存储有上述方法中用到的对应关系等。The methods disclosed in the foregoing embodiments of the present invention may be applied to the processor 501 or implemented by the processor 501 . The processor 501 may be an integrated circuit chip and has signal processing capabilities. In the implementation process, each step of the above method may be completed by an integrated logic circuit of hardware in the processor 501 or instructions in the form of software. The above-mentioned processor 501 may be a general-purpose processor, a digital signal processor (Digital Signal Processor, DSP), an application specific integrated circuit (Application Specific Integrated Circuit, ASIC), a field programmable gate array (Field Programmable Gate Array, FPGA) or other possible Program logic devices, discrete gate or transistor logic devices, discrete hardware components. Various methods, steps and logic block diagrams disclosed in the embodiments of the present invention may be implemented or executed. A general-purpose processor may be a microprocessor, or the processor may be any conventional processor, or the like. The steps of the methods disclosed in the embodiments of the present invention may be directly implemented by a hardware decoding processor, or implemented by a combination of hardware and software modules in the decoding processor. The software module can be located in a mature storage medium in the field such as random access memory, flash memory, read-only memory, programmable read-only memory or electrically erasable programmable memory, register. The storage medium is located in the memory 502, and the processor 501 reads the information in the memory 502, and completes the steps of the above method in combination with its hardware. In addition, the memory 502 stores correspondences and the like used in the above methods.

可以理解的是,本发明实施例描述的这些实施例可以用硬件、软件、固件、中间件、微码或其组合来实现。对于硬件实现,处理单元可以实现在一个或多个专用集成电路(Application Specific Integrated Circuit,ASIC)、数字信号处理器(Digital SignalProcessor,DSP)、数字信号处理设备(DSP Device,DSPD)、可编程逻辑设备(ProgrammableLogic Device,PLD)、现场可编程门阵列(Field Programmable Gate Array,FPGA)、通用处理器、控制器、微控制器、微处理器、用于执行本申请功能的其它电子单元或其组合中。It can be understood that the embodiments described in the embodiments of the present invention may be implemented by hardware, software, firmware, middleware, microcode or a combination thereof. For hardware implementation, the processing unit can be implemented in one or more application specific integrated circuits (Application Specific Integrated Circuit, ASIC), digital signal processor (Digital Signal Processor, DSP), digital signal processing device (DSP Device, DSPD), programmable logic Equipment (ProgrammableLogic Device, PLD), Field Programmable Gate Array (Field Programmable Gate Array, FPGA), general-purpose processor, controller, microcontroller, microprocessor, other electronic units for performing the functions of this application, or a combination thereof middle.

对于软件实现,可通过执行本发明实施例功能的模块(例如过程、函数等)来实现本发明实施例的技术。软件代码可存储在存储器中并通过处理器执行。存储器可以在处理器中或在处理器外部实现。For software implementation, the technology of the embodiments of the present invention can be implemented through modules (such as procedures, functions, etc.) that execute the functions of the embodiments of the present invention. Software codes can be stored in memory and executed by a processor. Memory can be implemented within the processor or external to the processor.

可选地,处理器501还用于:获取预览图像的RGB信息;基于RGB信息和自动白平衡算法,计算得到移动终端所处环境的环境色温值。Optionally, the processor 501 is further configured to: acquire RGB information of the preview image; and calculate an ambient color temperature value of an environment where the mobile terminal is located based on the RGB information and an automatic white balance algorithm.

可选地,作为另一个实施例,移动终端包括具有第一色温值的第一补光灯、具有第二色温值的第二补光灯和具有第三色温值的第三补光灯,其中,第一色温值小于第二色温值,第二色温值小于第三色温值。Optionally, as another embodiment, the mobile terminal includes a first supplementary light with a first color temperature value, a second supplementary light with a second color temperature value, and a third supplementary light with a third color temperature value, wherein , the first color temperature value is smaller than the second color temperature value, and the second color temperature value is smaller than the third color temperature value.

可选地,作为另一个实施例,处理器501还用于:若环境色温值大于预设的第一色温阈值,则确定待启动的目标补光灯为第三补光灯。Optionally, as another embodiment, the processor 501 is further configured to: if the ambient color temperature value is greater than the preset first color temperature threshold, determine that the target supplementary light to be activated is the third supplementary light.

可选地,作为另一个实施例,处理器501还用于:若环境色温值大于预设的第二色温阈值且小于第一色温阈值,则确定待启动的目标补光灯为第二补光灯和第三补光灯。Optionally, as another embodiment, the processor 501 is further configured to: if the ambient color temperature value is greater than the preset second color temperature threshold and smaller than the first color temperature threshold, determine that the target fill light to be activated is the second fill light light and a third fill light.

可选地,作为另一个实施例,处理器501还用于:若环境色温值大于预设的第三色温阈值且小于第二色温阈值,则确定待启动的目标补光灯为第一补光灯和第二补光灯。Optionally, as another embodiment, the processor 501 is further configured to: if the ambient color temperature value is greater than the preset third color temperature threshold and smaller than the second color temperature threshold, determine that the target fill light to be activated is the first fill light light and a second fill light.

可选地,作为另一个实施例,处理器501还用于:若环境色温值小于第三色温阈值,则确定待启动的目标补光灯为第一补光灯。Optionally, as another embodiment, the processor 501 is further configured to: if the ambient color temperature value is less than the third color temperature threshold, determine that the target supplementary light to be activated is the first supplementary light.

可选地,作为另一个实施例,处理器501还用于:基于预览图像,计算移动终端所处环境的环境亮度值;根据环境亮度值以及环境亮度值与补光灯电流的预设关系,确定目标补光灯的补光灯电流;其中,环境亮度值与补光灯电流反相关。Optionally, as another embodiment, the processor 501 is further configured to: calculate the ambient brightness value of the environment where the mobile terminal is located based on the preview image; according to the ambient brightness value and the preset relationship between the ambient brightness value and the fill light current, Determine the fill light current of the target fill light; wherein, the ambient brightness value is inversely correlated with the fill light current.

可选地,作为另一个实施例,处理器501还用于:获取预览图像的曝光时间值、曝光增益值和图像亮度值;基于曝光时间值和曝光增益值,计算曝光指数;基于曝光指数和图像亮度值,计算移动终端所处环境的环境亮度值。Optionally, as another embodiment, the processor 501 is further configured to: acquire an exposure time value, an exposure gain value, and an image brightness value of the preview image; calculate an exposure index based on the exposure time value and the exposure gain value; calculate an exposure index based on the exposure index and The brightness value of the image is used to calculate the ambient brightness value of the environment where the mobile terminal is located.

可选地,作为另一个实施例,处理器501还用于:控制目标补光灯根据补光灯电流进行补光。Optionally, as another embodiment, the processor 501 is further configured to: control the target fill light to perform fill light according to the current of the fill light.

移动终端500能够实现前述实施例中移动终端实现的各个过程,为避免重复,这里不再赘述。The mobile terminal 500 can implement various processes implemented by the mobile terminal in the foregoing embodiments, and to avoid repetition, details are not repeated here.

本发明的上述实施例中提供的移动终端,通过移动终端所处环境的环境色温值,来确定移动终端的至少两个补光灯中待启动的目标补光灯,然后再通过移动终端所处环境的环境亮度值,来确定目标补光灯的补光灯电流,最后再控制目标补光灯根据该补光灯电流进行补光。这样,本实施例能够使得移动终端在拍照时,目标补光灯能够发出与移动终端所处环境的环境色温最为接近的色温,并发出与环境亮度最为接近的亮度,解决了现有技术中移动终端的补光灯的亮度和色温都是定值造成的补光灯的补光效果会随移动终端所处环境发生变化,且补光灯的补光色彩与所处环境不匹配的问题,使得移动终端能够根据目标补光灯的补光效果拍摄出效果更好的图片,提高了用户体验。The mobile terminal provided in the above-mentioned embodiments of the present invention determines the target supplementary light to be activated among the at least two supplementary lights of the mobile terminal through the ambient color temperature value of the environment where the mobile terminal is located, and then The ambient brightness value of the environment is used to determine the fill light current of the target fill light, and finally the target fill light is controlled to perform fill light according to the fill light current. In this way, in this embodiment, when the mobile terminal is taking pictures, the target supplementary light can emit the color temperature closest to the ambient color temperature of the environment where the mobile terminal is located, and emit the brightness closest to the ambient brightness, which solves the problem of mobile terminals in the prior art. The brightness and color temperature of the fill light are fixed values. The fill light effect of the fill light will change with the environment where the mobile terminal is located, and the fill light color of the fill light does not match the environment. The terminal can take pictures with better effects according to the fill light effect of the target fill light, which improves the user experience.

第五实施例:Fifth embodiment:

图6表示本发明的第五实施例中移动终端的结构框图。具体地,图6中的移动终端600可以为手机、平板电脑、个人数字助理(Personal Digital Assistant,PDA)、或车载电脑等。Fig. 6 shows a block diagram of a mobile terminal in a fifth embodiment of the present invention. Specifically, the mobile terminal 600 in FIG. 6 may be a mobile phone, a tablet computer, a personal digital assistant (Personal Digital Assistant, PDA), or a vehicle-mounted computer.

图6中的移动终端600包括射频(Radio Frequency,RF)电路610、存储器620、输入单元630、显示单元640、处理器660、音频电路670、WiFi(Wireless Fidelity)模块680、电源690、摄像头6100和至少两个补光灯6110。Mobile terminal 600 in Fig. 6 comprises radio frequency (Radio Frequency, RF) circuit 610, memory 620, input unit 630, display unit 640, processor 660, audio circuit 670, WiFi (Wireless Fidelity) module 680, power supply 690, camera 6100 and at least two fill lights 6110.

其中,输入单元630可用于接收用户输入的数字或字符信息,以及产生与移动终端600的用户设置以及功能控制有关的信号输入。具体地,本发明实施例中,该输入单元630可以包括触控面板631。触控面板631,也称为触摸屏,可收集用户在其上或附近的触摸操作(比如用户使用手指、触笔等任何适合的物体或附件在触控面板631上的操作),并根据预先设定的程式驱动相应的连接装置。可选的,触控面板631可包括触摸检测装置和触摸控制器两个部分。其中,触摸检测装置检测用户的触摸方位,并检测触摸操作带来的信号,将信号传送给触摸控制器;触摸控制器从触摸检测装置上接收触摸信息,并将它转换成触点坐标,再送给该处理器660,并能接收处理器660发来的命令并加以执行。此外,可以采用电阻式、电容式、红外线以及表面声波等多种类型实现触控面板631。除了触控面板631,输入单元630还可以包括其他输入设备632,其他输入设备632可以包括但不限于物理键盘、功能键(比如音量控制按键、开关按键等)、轨迹球、鼠标、操作杆等中的一种或多种。Wherein, the input unit 630 can be used to receive number or character information input by the user, and generate signal input related to the user setting and function control of the mobile terminal 600 . Specifically, in the embodiment of the present invention, the input unit 630 may include a touch panel 631 . The touch panel 631, also referred to as a touch screen, can collect user's touch operations on or near it (such as the user's operation on the touch panel 631 using any suitable object or accessory such as a finger, a stylus), and The specified program drives the corresponding connected device. Optionally, the touch panel 631 may include two parts, a touch detection device and a touch controller. Among them, the touch detection device detects the user's touch orientation, and detects the signal brought by the touch operation, and transmits the signal to the touch controller; the touch controller receives the touch information from the touch detection device, converts it into contact coordinates, and sends it to the to the processor 660, and can receive and execute commands sent by the processor 660. In addition, the touch panel 631 can be implemented in various types such as resistive, capacitive, infrared, and surface acoustic wave. In addition to the touch panel 631, the input unit 630 may also include other input devices 632, which may include but not limited to physical keyboards, function keys (such as volume control buttons, switch buttons, etc.), trackballs, mice, joysticks, etc. one or more of.

其中,显示单元640可用于显示由用户输入的信息或提供给用户的信息以及移动终端600的各种菜单界面。显示单元640可包括显示面板641,可选的,可以采用LCD或有机发光二极管(Organic Light-Emitting Diode,OLED)等形式来配置显示面板641。Wherein, the display unit 640 can be used to display information input by the user or information provided to the user and various menu interfaces of the mobile terminal 600 . The display unit 640 may include a display panel 641. Optionally, the display panel 641 may be configured in the form of an LCD or an organic light-emitting diode (Organic Light-Emitting Diode, OLED).

应注意,触控面板631可以覆盖显示面板641,形成触摸显示屏,当该触摸显示屏检测到在其上或附近的触摸操作后,传送给处理器660以确定触摸事件的类型,随后处理器660根据触摸事件的类型在触摸显示屏上提供相应的视觉输出。It should be noted that the touch panel 631 can cover the display panel 641 to form a touch display screen. When the touch display screen detects a touch operation on or near it, it is sent to the processor 660 to determine the type of the touch event, and then the processor 660 provides corresponding visual output on the touch display screen according to the type of the touch event.

触摸显示屏包括应用程序界面显示区及常用控件显示区。该应用程序界面显示区及该常用控件显示区的排列方式并不限定,可以为上下排列、左右排列等可以区分两个显示区的排列方式。该应用程序界面显示区可以用于显示应用程序的界面。每一个界面可以包含至少一个应用程序的图标和/或widget桌面控件等界面元素。该应用程序界面显示区也可以为不包含任何内容的空界面。该常用控件显示区用于显示使用率较高的控件,例如,设置按钮、界面编号、滚动条、电话本图标等应用程序图标等。The touch display screen includes an application program interface display area and a common control display area. The arrangement of the display area of the application program interface and the display area of the commonly used controls is not limited, and may be an arrangement in which the two display areas can be distinguished, such as vertical arrangement, left-right arrangement, and the like. The application program interface display area can be used to display the interface of the application program. Each interface may include at least one interface element such as an icon of an application program and/or a widget desktop control. The application program interface display area can also be an empty interface without any content. The commonly used control display area is used to display controls with a high usage rate, for example, application icons such as setting buttons, interface numbers, scroll bars, and phonebook icons.

其中,处理器660是移动终端600的控制中心,利用各种接口和线路连接整个手机的各个部分,通过运行或执行存储在第一存储器621内的软件程序和/或模块,以及调用存储在第二存储器622内的数据,执行移动终端600的各种功能和处理数据,从而对移动终端600进行整体监控。可选的,处理器660可包括一个或多个处理单元。Wherein, the processor 660 is the control center of the mobile terminal 600, which uses various interfaces and lines to connect various parts of the entire mobile phone, and runs or executes the software programs and/or modules stored in the first memory 621, and calls the software programs stored in the first memory 621. The data in the second memory 622 executes various functions of the mobile terminal 600 and processes data, so as to monitor the mobile terminal 600 as a whole. Optionally, the processor 660 may include one or more processing units.

在本发明实施例中,通过调用存储该第一存储器621内的软件程序和/或模块和/或该第二存储器622内的数据,其中,第一存储器621中包括有设置模块及配置文件。处理器660用于:获取移动终端的摄像头6100所采集的一帧预览图像;基于预览图像,计算移动终端所处环境的环境色温值;基于环境色温值,确定移动终端的至少两个补光灯6110中待启动的目标补光灯;控制目标补光灯进行补光;其中,至少两个补光灯的色温值均不同。In the embodiment of the present invention, the software programs and/or modules in the first memory 621 and/or the data in the second memory 622 are stored by calling, wherein the first memory 621 includes setting modules and configuration files. The processor 660 is configured to: acquire a frame of preview image collected by the camera 6100 of the mobile terminal; calculate the ambient color temperature value of the environment where the mobile terminal is located based on the preview image; determine at least two fill lights of the mobile terminal based on the ambient color temperature value The target supplementary light to be activated in 6110; the target supplementary light is controlled to perform supplementary light; wherein, at least two supplementary lights have different color temperature values.

可选地,处理器660还用于:获取预览图像的RGB信息;基于RGB信息和自动白平衡算法,计算得到移动终端所处环境的环境色温值。Optionally, the processor 660 is further configured to: acquire RGB information of the preview image; and calculate an ambient color temperature value of the environment where the mobile terminal is located based on the RGB information and an automatic white balance algorithm.

可选地,作为另一个实施例,移动终端包括具有第一色温值的第一补光灯、具有第二色温值的第二补光灯和具有第三色温值的第三补光灯,其中,第一色温值小于第二色温值,第二色温值小于第三色温值。Optionally, as another embodiment, the mobile terminal includes a first supplementary light with a first color temperature value, a second supplementary light with a second color temperature value, and a third supplementary light with a third color temperature value, wherein , the first color temperature value is smaller than the second color temperature value, and the second color temperature value is smaller than the third color temperature value.

可选地,作为另一个实施例,处理器660还用于:若环境色温值大于预设的第一色温阈值,则确定待启动的目标补光灯为第三补光灯。Optionally, as another embodiment, the processor 660 is further configured to: if the ambient color temperature value is greater than the preset first color temperature threshold, determine that the target supplementary light to be activated is the third supplementary light.

可选地,作为另一个实施例,处理器660还用于:若环境色温值大于预设的第二色温阈值且小于第一色温阈值,则确定待启动的目标补光灯为第二补光灯和第三补光灯。Optionally, as another embodiment, the processor 660 is further configured to: if the ambient color temperature value is greater than the preset second color temperature threshold and smaller than the first color temperature threshold, determine that the target fill light to be activated is the second fill light light and a third fill light.

可选地,作为另一个实施例,处理器660还用于:若环境色温值大于预设的第三色温阈值且小于第二色温阈值,则确定待启动的目标补光灯为第一补光灯和第二补光灯。Optionally, as another embodiment, the processor 660 is further configured to: if the ambient color temperature value is greater than the preset third color temperature threshold and smaller than the second color temperature threshold, determine that the target fill light to be activated is the first fill light light and a second fill light.

可选地,作为另一个实施例,处理器660还用于:若环境色温值小于第三色温阈值,则确定待启动的目标补光灯为第一补光灯。Optionally, as another embodiment, the processor 660 is further configured to: if the ambient color temperature value is less than the third color temperature threshold, determine that the target supplementary light to be activated is the first supplementary light.

可选地,作为另一个实施例,处理器660还用于:基于预览图像,计算移动终端所处环境的环境亮度值;根据环境亮度值以及环境亮度值与补光灯电流的预设关系,确定目标补光灯的补光灯电流;其中,环境亮度值与补光灯电流反相关。Optionally, as another embodiment, the processor 660 is further configured to: calculate the ambient brightness value of the environment where the mobile terminal is located based on the preview image; according to the ambient brightness value and the preset relationship between the ambient brightness value and the fill light current, Determine the fill light current of the target fill light; wherein, the ambient brightness value is inversely correlated with the fill light current.

可选地,作为另一个实施例,处理器660还用于:获取预览图像的曝光时间值、曝光增益值和图像亮度值;基于曝光时间值和曝光增益值,计算曝光指数;基于曝光指数和图像亮度值,计算移动终端所处环境的环境亮度值。Optionally, as another embodiment, the processor 660 is further configured to: acquire an exposure time value, an exposure gain value, and an image brightness value of the preview image; calculate an exposure index based on the exposure time value and the exposure gain value; calculate an exposure index based on the exposure index and The brightness value of the image is used to calculate the ambient brightness value of the environment where the mobile terminal is located.

可选地,作为另一个实施例,处理器660还用于:控制目标补光灯根据补光灯电流进行补光。Optionally, as another embodiment, the processor 660 is further configured to: control the target fill light to perform fill light according to the current of the fill light.

本发明的上述实施例中提供的移动终端,通过移动终端所处环境的环境色温值,来确定移动终端的至少两个补光灯中待启动的目标补光灯,然后再通过移动终端所处环境的环境亮度值,来确定目标补光灯的补光灯电流,最后再控制目标补光灯根据该补光灯电流进行补光。这样,本实施例能够使得移动终端在拍照时,目标补光灯能够发出与移动终端所处环境的环境色温最为接近的色温,并发出与环境亮度最为接近的亮度,解决了现有技术中移动终端的补光灯的亮度和色温都是定值造成的补光灯的补光效果会随移动终端所处环境发生变化,且补光灯的补光色彩与所处环境不匹配的问题,使得移动终端能够根据目标补光灯的补光效果拍摄出效果更好的图片,提高了用户体验。The mobile terminal provided in the above-mentioned embodiments of the present invention determines the target supplementary light to be activated among the at least two supplementary lights of the mobile terminal through the ambient color temperature value of the environment where the mobile terminal is located, and then The ambient brightness value of the environment is used to determine the fill light current of the target fill light, and finally the target fill light is controlled to perform fill light according to the fill light current. In this way, in this embodiment, when the mobile terminal is taking pictures, the target supplementary light can emit the color temperature closest to the ambient color temperature of the environment where the mobile terminal is located, and emit the brightness closest to the ambient brightness, which solves the problem of mobile terminals in the prior art. The brightness and color temperature of the fill light are fixed values. The fill light effect of the fill light will change with the environment where the mobile terminal is located, and the fill light color of the fill light does not match the environment. The terminal can take pictures with better effects according to the fill light effect of the target fill light, which improves the user experience.

移动终端600能够实现前述实施例中移动终端实现的各个过程,为避免重复,这里不再赘述。The mobile terminal 600 can implement various processes implemented by the mobile terminal in the foregoing embodiments, and to avoid repetition, details are not repeated here.

本领域普通技术人员可以意识到,结合本发明实施例中所公开的实施例描述的各示例的单元及算法步骤,能够以电子硬件、或者计算机软件和电子硬件的结合来实现。这些功能究竟以硬件还是软件方式来执行,取决于技术方案的特定应用和设计约束条件。专业技术人员可以对每个特定的应用来使用不同方法来实现所描述的功能,但是这种实现不应认为超出本发明的范围。Those of ordinary skill in the art can appreciate that the units and algorithm steps of the examples described in conjunction with the embodiments disclosed in the embodiments of the present invention can be implemented by electronic hardware, or a combination of computer software and electronic hardware. Whether these functions are executed by hardware or software depends on the specific application and design constraints of the technical solution. Skilled artisans may use different methods to implement the described functions for each specific application, but such implementation should not be regarded as exceeding the scope of the present invention.

所属领域的技术人员可以清楚地了解到,为描述的方便和简洁,上述描述的系统、装置和单元的具体工作过程,可以参考前述方法实施例中的对应过程,在此不再赘述。Those skilled in the art can clearly understand that for the convenience and brevity of the description, the specific working process of the above-described system, device and unit can refer to the corresponding process in the foregoing method embodiment, which will not be repeated here.

在本申请所提供的实施例中,应该理解到,所揭露的装置和方法,可以通过其它的方式实现。例如,以上所描述的装置实施例仅仅是示意性的,例如,单元的划分,仅仅为一种逻辑功能划分,实际实现时可以有另外的划分方式,例如多个单元或组件可以结合或者可以集成到另一个系统,或一些特征可以忽略,或不执行。另一点,所显示或讨论的相互之间的耦合或直接耦合或通信连接可以是通过一些接口,装置或单元的间接耦合或通信连接,可以是电性,机械或其它的形式。In the embodiments provided in this application, it should be understood that the disclosed devices and methods may be implemented in other ways. For example, the device embodiments described above are only illustrative. For example, the division of units is only a logical function division. In actual implementation, there may be other division methods. For example, multiple units or components can be combined or integrated. to another system, or some features may be ignored, or not implemented. In another point, the mutual coupling or direct coupling or communication connection shown or discussed may be through some interfaces, and the indirect coupling or communication connection of devices or units may be in electrical, mechanical or other forms.

作为分离部件说明的单元可以是或者也可以不是物理上分开的,作为单元显示的部件可以是或者也可以不是物理单元,即可以位于一个地方,或者也可以分布到多个网络单元上。可以根据实际的需要选择其中的部分或者全部单元来实现本发明实施例方案的目的。A unit described as a separate component may or may not be physically separated, and a component displayed as a unit may or may not be a physical unit, that is, it may be located in one place, or may be distributed to multiple network units. Part or all of the units can be selected according to actual needs to achieve the purpose of the solution of the embodiment of the present invention.

另外,在本发明各个实施例中的各功能单元可以集成在一个处理单元中,也可以是各个单元单独物理存在,也可以两个或两个以上单元集成在一个单元中。In addition, each functional unit in each embodiment of the present invention may be integrated into one processing unit, each unit may exist separately physically, or two or more units may be integrated into one unit.

功能如果以软件功能单元的形式实现并作为独立的产品销售或使用时,可以存储在一个计算机可读取存储介质中。基于这样的理解,本发明的技术方案本质上或者说对现有技术做出贡献的部分或者该技术方案的部分可以以软件产品的形式体现出来,该计算机软件产品存储在一个存储介质中,包括若干指令用以使得一台计算机设备(可以是个人计算机,服务器,或者网络设备等)执行本发明各个实施例方法的全部或部分步骤。而前述的存储介质包括:U盘、移动硬盘、ROM、RAM、磁碟或者光盘等各种可以存储程序代码的介质。If the functions are realized in the form of software functional units and sold or used as independent products, they can be stored in a computer-readable storage medium. Based on this understanding, the essence of the technical solution of the present invention or the part that contributes to the prior art or the part of the technical solution can be embodied in the form of a software product, and the computer software product is stored in a storage medium, including Several instructions are used to make a computer device (which may be a personal computer, a server, or a network device, etc.) execute all or part of the steps of the methods in various embodiments of the present invention. The aforementioned storage medium includes: various media capable of storing program codes such as U disk, mobile hard disk, ROM, RAM, magnetic disk or optical disk.

以上,仅为本发明的具体实施方式,但本发明的保护范围并不局限于此,任何熟悉本技术领域的技术人员在本发明揭露的技术范围内,可轻易想到变化或替换,都应涵盖在本发明的保护范围之内。因此,本发明的保护范围应以权利要求的保护范围为准。The above is only a specific embodiment of the present invention, but the scope of protection of the present invention is not limited thereto. Anyone familiar with the technical field can easily think of changes or replacements within the technical scope disclosed in the present invention, and should cover all Within the protection scope of the present invention. Therefore, the protection scope of the present invention should be based on the protection scope of the claims.

Claims (20)

1. take pictures the method for light filling, be applied to mobile terminal, it is characterised in that described method includes:
Obtain the frame preview image that the photographic head of described mobile terminal is gathered;
Based on described preview image, calculate the ambient color temperature value of described mobile terminal local environment;
Based on described ambient color temperature value, determine target light compensating lamp to be launched at least two light compensating lamp of described mobile terminal;
Control described target light compensating lamp and carry out light filling;
Wherein, the color temperature value of described at least two light compensating lamp is the most different.
Method the most according to claim 1, it is characterised in that described based on described preview image, calculates described mobile whole The step of the ambient color temperature value of end local environment, including:
Obtain the RGB information of described preview image;
Based on described RGB information and AWB algorithm, it is calculated the ambient color temperature value of described mobile terminal local environment.
Method the most according to claim 1, it is characterised in that described mobile terminal includes having the first of the first color temperature value Light compensating lamp, there is the second light compensating lamp of the second color temperature value and there is the 3rd light compensating lamp of tertiary color temperature value, wherein, described first color Temperature value is less than described second color temperature value, and described second color temperature value is less than described tertiary color temperature value.
Method the most according to claim 3, it is characterised in that described based on described ambient color temperature value, determines described movement The step of target light compensating lamp to be launched at least two light compensating lamp of terminal, including:
If described ambient color temperature value is more than the first colour temperature threshold value preset, it is determined that target light compensating lamp to be launched is the described 3rd Light compensating lamp.
Method the most according to claim 4, it is characterised in that described based on described ambient color temperature value, determines described movement The step of target light compensating lamp to be launched at least two light compensating lamp of terminal, including:
If described ambient color temperature value is more than the second colour temperature threshold value preset and less than described first colour temperature threshold value, it is determined that to be launched Target light compensating lamp be described second light compensating lamp and described 3rd light compensating lamp.
Method the most according to claim 5, it is characterised in that described based on described ambient color temperature value, determines described movement The step of target light compensating lamp to be launched at least two light compensating lamp of terminal, including:
If described ambient color temperature value is more than the tertiary color temperature threshold value preset and less than described second colour temperature threshold value, it is determined that to be launched Target light compensating lamp be described first light compensating lamp and described second light compensating lamp.
Method the most according to claim 6, it is characterised in that described based on described ambient color temperature value, determines described movement The step of target light compensating lamp to be launched at least two light compensating lamp of terminal, including:
If described ambient color temperature value is less than described tertiary color temperature threshold value, it is determined that target light compensating lamp to be launched is described first benefit Light modulation.
Method the most according to claim 1, it is characterised in that described based on described ambient color temperature value, determines described movement After the step of target light compensating lamp to be launched at least two light compensating lamp of terminal, described method also includes:
Based on described preview image, calculate the ambient brightness value of described mobile terminal local environment;
According to described ambient brightness value and ambient brightness value and the preset relation of light compensating lamp electric current, determine described target light compensating lamp Light compensating lamp electric current;
Wherein, described ambient brightness value is closed with described light compensating lamp anti-phase.
Method the most according to claim 8, it is characterised in that described based on described preview image, calculates described mobile whole The step of the ambient brightness value of end local environment, including:
Obtain the exposure time values of described preview image, exposure gain value and image brightness values;
Based on described exposure time values and exposure gain value, calculate exposure index;
Based on described exposure index and image brightness values, calculate the ambient brightness value of described mobile terminal local environment.
Method the most according to claim 8, it is characterised in that described control described target light compensating lamp carries out the step of light filling Suddenly, including:
Control described target light compensating lamp and carry out light filling according to described light compensating lamp electric current.
11. 1 kinds of mobile terminals, including photographic head and at least two light compensating lamp, it is characterised in that described mobile terminal also includes:
Acquisition module, for obtaining the frame preview image that the photographic head of described mobile terminal is gathered;
First computing module, for the described preview image obtained based on described acquisition module, calculates residing for described mobile terminal The ambient color temperature value of environment;
First determines module, for based on described first computing module calculated ambient color temperature value, determines described mobile whole Target light compensating lamp to be launched at least two light compensating lamp of end;
For controlling described first, control module, determines that the target light compensating lamp that module determines carries out light filling;Wherein, described at least two The color temperature value of individual light compensating lamp is the most different.
12. mobile terminals according to claim 11, it is characterised in that described first computing module includes:
First acquiring unit, for obtaining the RGB information of described preview image;
First computing unit, for the RGB information obtained based on described first acquiring unit and AWB algorithm, calculates Ambient color temperature value to described mobile terminal local environment.
13. mobile terminals according to claim 11, it is characterised in that described mobile terminal includes having the first color temperature value The first light compensating lamp, there is the second light compensating lamp of the second color temperature value and there is the 3rd light compensating lamp of tertiary color temperature value, wherein, described First color temperature value is less than described second color temperature value, and described second color temperature value is less than described tertiary color temperature value.
14. mobile terminals according to claim 13, it is characterised in that described first determine module for, if described ring Border color temperature value is more than the first colour temperature threshold value preset, it is determined that target light compensating lamp to be launched is described 3rd light compensating lamp.
15. mobile terminals according to claim 14, it is characterised in that described first determine module for, if described ring Border color temperature value is more than the second colour temperature threshold value preset and less than described first colour temperature threshold value, it is determined that target light compensating lamp to be launched For described second light compensating lamp and described 3rd light compensating lamp.
16. mobile terminals according to claim 15, it is characterised in that described first determine module for, if described ring Border color temperature value is more than the tertiary color temperature threshold value preset and less than described second colour temperature threshold value, it is determined that target light compensating lamp to be launched For described first light compensating lamp and described second light compensating lamp.
17. mobile terminals according to claim 16, it is characterised in that described first determine module for, if described ring Border color temperature value is less than described tertiary color temperature threshold value, it is determined that target light compensating lamp to be launched is described first light compensating lamp.
18. mobile terminals according to claim 11, it is characterised in that described mobile terminal also includes:
Second computing module, for the described preview image obtained based on described acquisition module, calculates residing for described mobile terminal The ambient brightness value of environment;
Second determines module, for according to the described second calculated ambient brightness value of computing module and ambient brightness value with The preset relation of light compensating lamp electric current, determines the light compensating lamp electric current of described target light compensating lamp;Wherein, described ambient brightness value is with described Light compensating lamp anti-phase closes.
19. mobile terminals according to claim 18, it is characterised in that described second computing module includes:
Second acquisition unit, for obtaining the exposure time values of described preview image, exposure gain value and image brightness values;
Second computing unit, for based on described exposure time values and exposure gain value, calculates exposure index;
3rd computing unit, for based on described exposure index and image brightness values, calculates described mobile terminal local environment Ambient brightness value.
20. mobile terminals according to claim 18, it is characterised in that described control module is used for, control described target According to described second, light compensating lamp determines that the described light compensating lamp electric current that module determines carries out light filling.
CN201610701349.7A 2016-08-22 2016-08-22 A kind of method of light filling of taking pictures and mobile terminal Pending CN106101569A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN201610701349.7A CN106101569A (en) 2016-08-22 2016-08-22 A kind of method of light filling of taking pictures and mobile terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201610701349.7A CN106101569A (en) 2016-08-22 2016-08-22 A kind of method of light filling of taking pictures and mobile terminal

Publications (1)

Publication Number Publication Date
CN106101569A true CN106101569A (en) 2016-11-09

Family

ID=57224630

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201610701349.7A Pending CN106101569A (en) 2016-08-22 2016-08-22 A kind of method of light filling of taking pictures and mobile terminal

Country Status (1)

Country Link
CN (1) CN106101569A (en)

Cited By (22)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106657947A (en) * 2017-01-13 2017-05-10 奇酷互联网络科技(深圳)有限公司 Image generation method and photographing device
CN106657752A (en) * 2017-03-03 2017-05-10 上海传英信息技术有限公司 Light filling apparatus and light filling method of front camera
CN106954027A (en) * 2017-02-14 2017-07-14 维沃移动通信有限公司 The method and mobile terminal of a kind of image taking
CN106973225A (en) * 2017-03-17 2017-07-21 惠州Tcl移动通信有限公司 Photographic method and system of a kind of mobile terminal based on screen light filling
CN107172754A (en) * 2017-06-23 2017-09-15 维沃移动通信有限公司 A kind of light filling lamp driving method, light filling circuit and mobile terminal
CN107809599A (en) * 2017-11-16 2018-03-16 维沃移动通信有限公司 A kind of light compensation method and device and mobile terminal
CN107885090A (en) * 2017-11-07 2018-04-06 佛山市云米电器科技有限公司 To the food image shooting environmental adjusting means and method in pan
CN107968920A (en) * 2017-11-28 2018-04-27 努比亚技术有限公司 A kind of parameter determination method and electronic equipment, storage medium
CN108965677A (en) * 2018-09-04 2018-12-07 深圳市威特迪科技有限公司 A kind of control circuit and control method according to camera picture Mass adjust- ment light filling
CN109005360A (en) * 2018-06-11 2018-12-14 北京小米移动软件有限公司 Light compensation method, device and the computer readable storage medium of shooting environmental
CN109151259A (en) * 2017-06-16 2019-01-04 上海传英信息技术有限公司 Picture-taking flash lamp device and mobile terminal
CN110166699A (en) * 2018-02-11 2019-08-23 东斓视觉科技发展(北京)有限公司 Intelligent photographic regulates and controls terminal, system and its shooting regulation method
CN110166682A (en) * 2018-02-11 2019-08-23 东斓视觉科技发展(北京)有限公司 Intelligent photographic regulates and controls terminal, system and its shooting regulation method
CN110808002A (en) * 2019-11-28 2020-02-18 北京迈格威科技有限公司 Screen display compensation method and device and electronic equipment
CN111182233A (en) * 2020-01-03 2020-05-19 宁波方太厨具有限公司 Control method and system for automatic light supplement of shooting space
CN111277736A (en) * 2018-12-04 2020-06-12 佳能株式会社 Flash lamp device capable of emitting auxiliary continuous light and control method thereof
CN111288898A (en) * 2020-03-31 2020-06-16 重庆新创科技股份有限公司 Road marking measuring and detecting vehicle and measuring method thereof
CN111357275A (en) * 2017-09-20 2020-06-30 深圳传音通讯有限公司 Flash lamp control method, mobile terminal and computer readable storage medium
CN111988531A (en) * 2019-05-21 2020-11-24 北京小米移动软件有限公司 Light supplementing module, light supplementing control method of light supplementing module, terminal and device
CN112565617A (en) * 2019-09-26 2021-03-26 Oppo(重庆)智能科技有限公司 Image data processing method and device, storage medium and electronic equipment
CN114245025A (en) * 2021-11-19 2022-03-25 深圳视觉科技有限公司 Light supplementing method, device, equipment, storage medium and computer product
CN115100752A (en) * 2022-05-18 2022-09-23 慧之安信息技术股份有限公司 Face recognition-based card punching method

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN201163831Y (en) * 2008-02-01 2008-12-10 华晶科技股份有限公司 Flash module of electronic device
US20080303918A1 (en) * 2007-06-11 2008-12-11 Micron Technology, Inc. Color correcting for ambient light
CN103686100A (en) * 2012-09-24 2014-03-26 宏达国际电子股份有限公司 Mobile communication device and flash control method
CN104349149A (en) * 2013-08-07 2015-02-11 联想(北京)有限公司 Image imaging effect regulating method and electronic equipment
CN104580745A (en) * 2015-01-29 2015-04-29 广东欧珀移动通信有限公司 Shooting light fill-in method and device of mobile terminal
CN104767984A (en) * 2015-03-25 2015-07-08 广东欧珀移动通信有限公司 Method and terminal for adjusting color temperature of flash light
CN105636310A (en) * 2015-03-27 2016-06-01 宇龙计算机通信科技(深圳)有限公司 Flash lamp brightness adjusting method, flash lamp brightness adjusting device and terminal

Patent Citations (8)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20080303918A1 (en) * 2007-06-11 2008-12-11 Micron Technology, Inc. Color correcting for ambient light
CN201163831Y (en) * 2008-02-01 2008-12-10 华晶科技股份有限公司 Flash module of electronic device
CN103686100A (en) * 2012-09-24 2014-03-26 宏达国际电子股份有限公司 Mobile communication device and flash control method
US20140085503A1 (en) * 2012-09-24 2014-03-27 Htc Corporation Mobile Communication Apparatus and Flashlight Controlling Method
CN104349149A (en) * 2013-08-07 2015-02-11 联想(北京)有限公司 Image imaging effect regulating method and electronic equipment
CN104580745A (en) * 2015-01-29 2015-04-29 广东欧珀移动通信有限公司 Shooting light fill-in method and device of mobile terminal
CN104767984A (en) * 2015-03-25 2015-07-08 广东欧珀移动通信有限公司 Method and terminal for adjusting color temperature of flash light
CN105636310A (en) * 2015-03-27 2016-06-01 宇龙计算机通信科技(深圳)有限公司 Flash lamp brightness adjusting method, flash lamp brightness adjusting device and terminal

Cited By (29)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN106657947A (en) * 2017-01-13 2017-05-10 奇酷互联网络科技(深圳)有限公司 Image generation method and photographing device
CN106954027A (en) * 2017-02-14 2017-07-14 维沃移动通信有限公司 The method and mobile terminal of a kind of image taking
CN106954027B (en) * 2017-02-14 2021-01-26 维沃移动通信有限公司 Image shooting method and mobile terminal
CN106657752A (en) * 2017-03-03 2017-05-10 上海传英信息技术有限公司 Light filling apparatus and light filling method of front camera
CN106973225A (en) * 2017-03-17 2017-07-21 惠州Tcl移动通信有限公司 Photographic method and system of a kind of mobile terminal based on screen light filling
CN109151259A (en) * 2017-06-16 2019-01-04 上海传英信息技术有限公司 Picture-taking flash lamp device and mobile terminal
CN107172754A (en) * 2017-06-23 2017-09-15 维沃移动通信有限公司 A kind of light filling lamp driving method, light filling circuit and mobile terminal
CN111357275A (en) * 2017-09-20 2020-06-30 深圳传音通讯有限公司 Flash lamp control method, mobile terminal and computer readable storage medium
CN107885090A (en) * 2017-11-07 2018-04-06 佛山市云米电器科技有限公司 To the food image shooting environmental adjusting means and method in pan
CN107809599B (en) * 2017-11-16 2020-02-18 维沃移动通信有限公司 A kind of supplementary light method and device and mobile terminal
CN107809599A (en) * 2017-11-16 2018-03-16 维沃移动通信有限公司 A kind of light compensation method and device and mobile terminal
CN107968920A (en) * 2017-11-28 2018-04-27 努比亚技术有限公司 A kind of parameter determination method and electronic equipment, storage medium
CN110166699A (en) * 2018-02-11 2019-08-23 东斓视觉科技发展(北京)有限公司 Intelligent photographic regulates and controls terminal, system and its shooting regulation method
CN110166682A (en) * 2018-02-11 2019-08-23 东斓视觉科技发展(北京)有限公司 Intelligent photographic regulates and controls terminal, system and its shooting regulation method
US10827156B2 (en) 2018-06-11 2020-11-03 Beijing Xiaomi Mobile Software Co., Ltd. Light filling method and apparatus for photographing environment, and computer-readable storage medium
CN109005360B (en) * 2018-06-11 2021-02-09 北京小米移动软件有限公司 Lighting method, device and computer-readable storage medium for shooting environment
CN109005360A (en) * 2018-06-11 2018-12-14 北京小米移动软件有限公司 Light compensation method, device and the computer readable storage medium of shooting environmental
CN108965677A (en) * 2018-09-04 2018-12-07 深圳市威特迪科技有限公司 A kind of control circuit and control method according to camera picture Mass adjust- ment light filling
CN111277736A (en) * 2018-12-04 2020-06-12 佳能株式会社 Flash lamp device capable of emitting auxiliary continuous light and control method thereof
CN111988531A (en) * 2019-05-21 2020-11-24 北京小米移动软件有限公司 Light supplementing module, light supplementing control method of light supplementing module, terminal and device
US11191144B2 (en) 2019-05-21 2021-11-30 Beijing Xiaomi Mobile Software Co., Ltd. Light supplement module, light supplement control method and terminal for light supplement module
CN111988531B (en) * 2019-05-21 2022-07-08 北京小米移动软件有限公司 Light supplementing module, light supplementing control method of light supplementing module, terminal and device
CN112565617A (en) * 2019-09-26 2021-03-26 Oppo(重庆)智能科技有限公司 Image data processing method and device, storage medium and electronic equipment
CN110808002A (en) * 2019-11-28 2020-02-18 北京迈格威科技有限公司 Screen display compensation method and device and electronic equipment
CN111182233A (en) * 2020-01-03 2020-05-19 宁波方太厨具有限公司 Control method and system for automatic light supplement of shooting space
CN111288898A (en) * 2020-03-31 2020-06-16 重庆新创科技股份有限公司 Road marking measuring and detecting vehicle and measuring method thereof
CN114245025A (en) * 2021-11-19 2022-03-25 深圳视觉科技有限公司 Light supplementing method, device, equipment, storage medium and computer product
CN114245025B (en) * 2021-11-19 2023-07-04 深圳视觉科技有限公司 Light supplementing method, device, equipment, storage medium and computer product
CN115100752A (en) * 2022-05-18 2022-09-23 慧之安信息技术股份有限公司 Face recognition-based card punching method

Similar Documents

Publication Publication Date Title
CN106101569A (en) A kind of method of light filling of taking pictures and mobile terminal
CN107197169B (en) high dynamic range image shooting method and mobile terminal
CN106131341A (en) A kind of photographic method and mobile terminal
CN107395976B (en) A shooting parameter setting method and mobile terminal
CN106331519A (en) Method for adjusting light-compensating lamp and mobile terminal
CN107172346B (en) Virtualization method and mobile terminal
CN106358069A (en) Video data processing method and mobile terminal
CN107395997A (en) A kind of image pickup method and mobile terminal
CN106791357A (en) A kind of image pickup method and mobile terminal
CN106506962A (en) A kind of image processing method and mobile terminal
CN106713780A (en) Control method for flash lamp and mobile terminal
CN106899803A (en) A kind of pan-shot light supplement control method and mobile terminal
CN106231187A (en) A kind of method shooting image and mobile terminal
CN107707823A (en) A kind of image pickup method and mobile terminal
CN107395978A (en) The control method and mobile terminal of a kind of camera module
CN106454085B (en) Image processing method and mobile terminal
CN106791375B (en) A shooting focusing method and mobile terminal
CN106454456A (en) Video playing control method and mobile terminal
CN106210512A (en) A kind of photographic head changing method and mobile terminal
CN106657806A (en) Exposure method and mobile terminal
CN106484354A (en) A kind of display brightness method of adjustment and mobile terminal
CN107622478A (en) A kind of image processing method, mobile terminal and computer-readable recording medium
CN106791021A (en) The control method and mobile terminal of a kind of flash lamp
CN106412457A (en) Image processing method and mobile terminal
CN106993139B (en) A kind of image pickup method and mobile terminal

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
RJ01 Rejection of invention patent application after publication
RJ01 Rejection of invention patent application after publication

Application publication date: 20161109