CN105554489A - White balance adjusting method and shooting terminal - Google Patents

White balance adjusting method and shooting terminal Download PDF

Info

Publication number
CN105554489A
CN105554489A CN201510408177.XA CN201510408177A CN105554489A CN 105554489 A CN105554489 A CN 105554489A CN 201510408177 A CN201510408177 A CN 201510408177A CN 105554489 A CN105554489 A CN 105554489A
Authority
CN
China
Prior art keywords
color temperature
temperature value
preset
color
progress bar
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
CN201510408177.XA
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.)
Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Original Assignee
Yulong Computer Telecommunication Scientific Shenzhen 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 Yulong Computer Telecommunication Scientific Shenzhen Co Ltd filed Critical Yulong Computer Telecommunication Scientific Shenzhen Co Ltd
Priority to CN201510408177.XA priority Critical patent/CN105554489A/en
Priority to PCT/CN2015/085882 priority patent/WO2017008351A1/en
Publication of CN105554489A publication Critical patent/CN105554489A/en
Pending legal-status Critical Current

Links

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N1/00Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
    • H04N1/46Colour picture communication systems
    • H04N1/56Processing of colour picture signals
    • H04N1/60Colour correction or control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • H04N23/84Camera processing pipelines; Components thereof for processing colour signals
    • H04N23/88Camera processing pipelines; Components thereof for processing colour signals for colour balance, e.g. white-balance circuits or colour temperature control

Landscapes

  • Engineering & Computer Science (AREA)
  • Multimedia (AREA)
  • Signal Processing (AREA)
  • Color Television Image Signal Generators (AREA)
  • Processing Of Color Television Signals (AREA)

Abstract

本发明实施例公开了一种白平衡调整方法,包括:获取滚动点在预置的色温刻度进度条上的目标位置;根据预置的位置与色温值的对应关系,获取所述目标位置所对应的目标色温值;根据预置的色温值与颜色增益值的对应关系,获取所述目标色温值所对应的目标颜色增益值;根据所述目标颜色增益值进行白平衡调整。本发明实施例还公开了一种拍摄终端。采用本发明,使得可使得拍摄终端在任何色温值下均能进行白平衡调整,提升拍摄效果,并且用户还可以根据自身需要获得所需效果的照片,提高用户体验。

The embodiment of the present invention discloses a method for adjusting white balance, including: obtaining the target position of the scroll point on the progress bar of the preset color temperature scale; according to the corresponding relationship between the preset position and the color temperature value, obtaining the the target color temperature value; according to the preset corresponding relationship between the color temperature value and the color gain value, obtain the target color gain value corresponding to the target color temperature value; and adjust the white balance according to the target color gain value. The embodiment of the invention also discloses a shooting terminal. By adopting the present invention, the shooting terminal can adjust the white balance under any color temperature value to improve the shooting effect, and users can also obtain photos with desired effects according to their own needs, thereby improving user experience.

Description

一种白平衡调整方法和拍摄终端A white balance adjustment method and shooting terminal

技术领域technical field

本发明涉及电子技术,尤其涉及一种白平衡调整方法和拍摄终端。The invention relates to electronic technology, in particular to a white balance adjustment method and a shooting terminal.

背景技术Background technique

一般而言,物体反射出的光颜色视光源的色彩而定。人的大脑可以检测并更正类似这样的色彩改变,因此不论是阳光、晴天、阴天、日光灯、荧光灯或钨丝灯下,人的眼睛均可以适应这样的色彩改变,而不会影响人们所看到的白色物体。然而,对拍摄终端而言,这些由不同光源产生的白色在颜色上来说还是不尽相同。例如:钨丝灯照明的环境下拍出的照片可能偏黄,其他环境拍出的照片可能偏蓝。故拍摄终端在拍摄照片时,为提高拍摄效果,往往需进行白平衡调整。Generally speaking, the color of light reflected by an object depends on the color of the light source. The human brain can detect and correct color changes like this, so the human eye can adapt to such color changes whether it's sunlight, sunny, cloudy, fluorescent, fluorescent or tungsten lighting, without affecting what people see. to the white object. However, for the shooting terminal, these whites produced by different light sources are still not the same in color. For example: photos taken under tungsten lighting may be yellowish, and photos taken under other environments may be bluish. Therefore, when the photographing terminal takes pictures, in order to improve the photographing effect, it often needs to adjust the white balance.

但在目前的白平衡调整方法中,通常是通过预设环境调整模式进行调整白平衡,如在日光灯模式、荧光模式和钨丝模式等有限的预设环境调整模式,但是,在现有的情况下,往往外界光源复杂,如同时存在钨丝光源和荧光灯光源的混合光源,而现有提供的预设环境调整模式无法进行正确的白平衡调整,从而使得用户无法获得满意理想的照片,给用户带来不便。However, in the current white balance adjustment method, the white balance is usually adjusted through preset environmental adjustment modes, such as limited preset environmental adjustment modes such as fluorescent lamp mode, fluorescent mode and tungsten mode. However, in the existing situation Under such circumstances, the external light source is often complicated, such as the mixed light source of tungsten light source and fluorescent light source, and the existing preset environment adjustment mode cannot perform correct white balance adjustment, so that users cannot obtain satisfactory and ideal photos. bring inconvenience.

发明内容Contents of the invention

本发明实施例所要解决的技术问题在于,提供一种白平衡调整方法和拍摄终端。可使得拍摄终端在任何色温值下均能进行白平衡调整,提升拍摄效果。The technical problem to be solved by the embodiments of the present invention is to provide a white balance adjustment method and a shooting terminal. It enables the shooting terminal to adjust the white balance at any color temperature value to improve the shooting effect.

为了解决上述技术问题,本发明实施例提供了一种白平衡调整方法,包括:In order to solve the above technical problems, an embodiment of the present invention provides a white balance adjustment method, including:

获取滚动点在预置的色温刻度进度条上的目标位置;Obtain the target position of the scroll point on the progress bar of the preset color temperature scale;

根据预置的位置与色温值的对应关系,获取所述目标位置所对应的目标色温值;Acquiring a target color temperature value corresponding to the target position according to the preset correspondence between the position and the color temperature value;

根据预置的色温值与颜色增益值的对应关系,获取所述目标色温值所对应的目标颜色增益值;Acquiring a target color gain value corresponding to the target color temperature value according to the preset correspondence between the color temperature value and the color gain value;

根据所述目标颜色增益值进行白平衡调整。White balance adjustment is performed according to the target color gain value.

其中,所述获取滚动点在预置的色温刻度进度条上的目标位置之前包括:Wherein, the obtaining scroll point before the target position on the preset color temperature scale progress bar includes:

通过摄像头采集在预设色温值的光源照射下的标准图片;Collect standard pictures under the light source with preset color temperature value through the camera;

根据所述标准图片计算颜色增益值;Calculating a color gain value according to the standard picture;

建立所述预设色温值与所述颜色增益值的对应关系。A correspondence relationship between the preset color temperature value and the color gain value is established.

其中,所述获取滚动点在预置的色温刻度进度条上的目标位置之前包括:Wherein, the obtaining scroll point before the target position on the preset color temperature scale progress bar includes:

显示所述色温刻度进度条,其中,所述色温刻度进度条包括预设间距的色温刻度和滚动点。The progress bar of the color temperature scale is displayed, wherein the progress bar of the color temperature scale includes a color temperature scale and scroll points at preset intervals.

其中,获取滚动点在预置的色温刻度进度条上的目标位置包括:Among them, obtaining the target position of the scroll point on the progress bar of the preset color temperature scale includes:

当终端用户拖动所述滚动点后,识别所述滚动点在所述色温刻度进度条上的目标位置。After the end user drags the scroll point, identify the target position of the scroll point on the progress bar of the color temperature scale.

其中,所述获取滚动点在预置的色温刻度进度条上的目标位置之前包括:Wherein, the obtaining scroll point before the target position on the preset color temperature scale progress bar includes:

通过摄像头测量当前外界光线的色温值;Measure the color temperature value of the current external light through the camera;

根据所述当前外界光线的色温值生成所述色温刻度进度条。The color temperature scale progress bar is generated according to the color temperature value of the current ambient light.

相应地,本发明实施例还提供了一种拍摄终端,包括:Correspondingly, an embodiment of the present invention also provides a shooting terminal, including:

第一获取单元,用于获取滚动点在预置的色温刻度进度条上的目标位置;The first acquisition unit is configured to acquire the target position of the scroll point on the preset color temperature scale progress bar;

第二获取单元,用于根据预置的位置与色温值的对应关系,获取所述目标位置所对应的目标色温值;The second acquiring unit is configured to acquire the target color temperature value corresponding to the target position according to the preset correspondence relationship between the position and the color temperature value;

第三获取单元,用于根据预置的色温值与颜色增益值的对应关系,获取所述目标色温值所对应的目标颜色增益值;A third acquiring unit, configured to acquire a target color gain value corresponding to the target color temperature value according to a preset correspondence between a color temperature value and a color gain value;

调整单元,用于根据所述目标颜色增益值进行白平衡调整。An adjustment unit, configured to perform white balance adjustment according to the target color gain value.

其中,所述终端包括:Wherein, the terminal includes:

采集单元,用于通过摄像头采集在预设色温值的光源照射下的标准图片;The acquisition unit is used to collect standard pictures illuminated by a light source with a preset color temperature value through the camera;

计算单元,用于根据所述标准图片计算颜色增益值;a calculation unit, configured to calculate a color gain value according to the standard picture;

建立单元,用于建立所述预设色温值与所述颜色增益值的对应关系。An establishing unit, configured to establish a corresponding relationship between the preset color temperature value and the color gain value.

其中,所述终端包括:Wherein, the terminal includes:

显示单元,用于显示所述色温刻度进度条,其中,所述色温刻度进度条包括预设间距的色温刻度和滚动点。The display unit is configured to display the progress bar of the color temperature scale, wherein the progress bar of the color temperature scale includes color temperature scales and scroll points at preset intervals.

其中,所述第一获取单元具体用于:Wherein, the first acquisition unit is specifically used for:

当终端用户拖动所述滚动点后,识别所述滚动点在所述色温刻度进度条上的目标位置。After the end user drags the scroll point, identify the target position of the scroll point on the progress bar of the color temperature scale.

其中,所述终端包括:Wherein, the terminal includes:

测量单元,用于通过摄像头测量当前外界光线的色温值;The measurement unit is used to measure the color temperature value of the current external light through the camera;

生成单元,用于根据所述当前外界光线的色温值生成所述色温刻度进度条。A generating unit, configured to generate the color temperature scale progress bar according to the current color temperature value of the ambient light.

实施本发明实施例,具有如下有益效果:Implementing the embodiment of the present invention has the following beneficial effects:

本发明通过获取滚动点在预置的色温刻度进度条上的目标位置,根据预置的位置与色温值的对应关系,获取所述目标位置所对应的目标色温值,根据预置的色温值与颜色增益值的对应关系,获取所述目标色温值所对应的目标颜色增益值,根据所述目标颜色增益值进行白平衡调整,使得可使得拍摄终端在任何色温值下均能进行白平衡调整,提升拍摄效果,并且用户还可以根据自身需要获得所需效果的照片,提高用户体验。The present invention acquires the target color temperature value corresponding to the target position by acquiring the target position of the scroll point on the preset progress bar of the color temperature scale according to the corresponding relationship between the preset position and the color temperature value, and obtains the target color temperature value corresponding to the target position according to the preset color temperature value and the color temperature value. The corresponding relationship of color gain values, acquiring the target color gain value corresponding to the target color temperature value, and performing white balance adjustment according to the target color gain value, so that the shooting terminal can perform white balance adjustment at any color temperature value, Improve the shooting effect, and users can also obtain photos with the desired effect according to their own needs, improving user experience.

附图说明Description of drawings

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

图1是本发明一种白平衡调整方法的第一实施例流程示意图;FIG. 1 is a schematic flow chart of a first embodiment of a white balance adjustment method of the present invention;

图2是本发明实施例提供的一种色温刻度进度条上的色温刻度。Fig. 2 is a color temperature scale on a progress bar of a color temperature scale provided by an embodiment of the present invention.

图3是本发明实施例提供的另一种色温刻度进度条上的色温刻度。Fig. 3 is another color temperature scale on the progress bar of the color temperature scale provided by the embodiment of the present invention.

图4是本发明一种白平衡调整方法的第二实施例流程示意图;FIG. 4 is a schematic flowchart of a second embodiment of a white balance adjustment method of the present invention;

图5是本发明一种拍摄终端的第一实施结构图;Fig. 5 is a first implementation structural diagram of a shooting terminal of the present invention;

图6是本发明一种拍摄终端的第二实施结构图。FIG. 6 is a structural diagram of a second implementation of a shooting terminal according to 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 only some, not all, embodiments of the present invention. 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.

本发明实施例的执行主体可为拍摄终端,拍摄终端可包括手机、照相机等具有摄像头的终端。其中,上述拍摄终端仅是举例,而非穷举,包含但不限于上述拍摄终端。The executor of the embodiment of the present invention may be a shooting terminal, and the shooting terminal may include a terminal with a camera, such as a mobile phone and a camera. Wherein, the above-mentioned shooting terminal is only an example, not exhaustive, including but not limited to the above-mentioned shooting terminal.

参见图1,是本发明实施例提供的一种白平衡调整方法的第一实施例流程示意图。本发明实施例中所描述的一种白平衡调整方法包括步骤:Referring to FIG. 1 , it is a schematic flowchart of a first embodiment of a white balance adjustment method provided by an embodiment of the present invention. A white balance adjustment method described in an embodiment of the present invention includes steps:

S100,获取滚动点在预置的色温刻度进度条上的目标位置。S100. Obtain the target position of the scroll point on the progress bar of the preset color temperature scale.

在本发明实施例中,当拍摄终端需进行拍摄照片,拍摄终端可以自动显示色温刻度进度条,或者,终端用户可操作拍摄设备,拍摄设备进入白平衡调整界面。当拍摄设备进入白平衡调整界面时,拍摄设备可显示多种白平衡调整模式供用户选择,包括自动调整模式、预设环境模式和手动调整模式等。当用户选择手动调整模式时,拍摄设备可显示色温刻度进度条,以使终端用户可通过操作色温刻度进度条选择所需的色温值,从而进行调整拍摄终端的白平衡。In the embodiment of the present invention, when the shooting terminal needs to take photos, the shooting terminal can automatically display the color temperature scale progress bar, or the terminal user can operate the shooting device, and the shooting device enters the white balance adjustment interface. When the shooting device enters the white balance adjustment interface, the shooting device may display multiple white balance adjustment modes for the user to choose from, including an automatic adjustment mode, a preset environment mode, and a manual adjustment mode. When the user selects the manual adjustment mode, the photographing device can display a progress bar of the color temperature scale, so that the end user can select a desired color temperature value by operating the progress bar of the color temperature scale, so as to adjust the white balance of the photographing terminal.

在本发明实施例中,色温刻度进度条的范围可以进行预置,例如,色温刻度进度条的范围可以预置为0~7000K,或者色温刻度进度条的范围还可以预置为2500K~8000K等。可选的,色温刻度进度条的范围还可以由用户根据需要进行预置,在此不进行限制。进一步的,在本发明实施例中,色温刻度进度条还可包括预置间距的色温刻度以及滚动点。其中,色温刻度可如图2,色温刻度可设定为以预置间距100K为单位的小刻度,以预置间距1000K为单位的大刻度,小刻度和大刻度分别用不同的标记显示,其中大刻度的标记可更加醒目,如图2中在大刻度上标上色温值。滚动点在色温刻度进度条上的位置对应于色温值,终端用户可根据色温刻度进度条上显示的色温刻度,在色温刻度进度条上操作滚动点移动到所需的色温值相应的目标位置上,其中,操作滚动点动作还可以包括直接点击色温刻度进度条上的某一位置,例如当终端用户点击色温刻度进度条上的某一位置时,则表示终端用户将滚动点拖动至色温刻度进度条上的该位置上。其中,当滚动点被移动后,拍摄终端可获取滚动点移动后的目标位置,例如:当终端用户拖动滚动点后并停止拖动时,拍摄终端获取滚动点被拖动后直至停止时的目标位置。In the embodiment of the present invention, the range of the progress bar of the color temperature scale can be preset, for example, the range of the progress bar of the color temperature scale can be preset as 0-7000K, or the range of the progress bar of the color temperature scale can also be preset as 2500K-8000K, etc. . Optionally, the range of the progress bar of the color temperature scale can also be preset by the user according to needs, which is not limited here. Further, in the embodiment of the present invention, the progress bar of the color temperature scale may also include color temperature scales with preset intervals and scroll points. Among them, the color temperature scale can be shown in Figure 2. The color temperature scale can be set as a small scale with a preset interval of 100K as a unit, and a large scale with a preset interval of 1000K as a unit. The small scale and the large scale are displayed with different marks. The mark on the large scale can be more eye-catching, as shown in Figure 2, the color temperature value is marked on the large scale. The position of the scroll point on the progress bar of the color temperature scale corresponds to the color temperature value. The end user can operate the scroll point on the progress bar of the color temperature scale to move to the target position corresponding to the required color temperature value according to the color temperature scale displayed on the progress bar of the color temperature scale. , where the action of operating the scroll point may also include directly clicking a certain position on the progress bar of the color temperature scale, for example, when the end user clicks a certain position on the progress bar of the color temperature scale, it means that the end user drags the scroll point to the color temperature scale at that position on the progress bar. Wherein, when the scroll point is moved, the shooting terminal can acquire the target position after the scroll point is moved, for example: when the terminal user drags the scroll point and stops dragging, the shooting terminal obtains the position of the scroll point after it is dragged until it stops target location.

进一步的,拍摄终端还可通过摄像头获取当前外界光线的色温值,并根据外界光线的色温值控制色温刻度进度条上的滚动点移至外界光线的色温值对应的目标位置上,以方便终端用户从色温刻度进度条上读取当前外界光线的色温值。Further, the shooting terminal can also obtain the current color temperature value of the external light through the camera, and control the scroll point on the progress bar of the color temperature scale to move to the target position corresponding to the color temperature value of the external light according to the color temperature value of the external light, so as to facilitate the terminal user Read the current color temperature value of the external light from the progress bar of the color temperature scale.

进一步的,当拍摄终端通过摄像头获取当前外界光线的色温值时,拍摄终端可根据当前外界光线的色温值生成色温刻度进度条并显示色温刻度进度条,其中,该色温刻度进度条的色温刻度范围可以是以当前外界光线的色温值为中心,以间隔为预置间隔的数值为上下限值,如当当前外界光线的色温值为Ct时,预置间隔为1000K时,则色温刻度范围可为(Ct-1000K,Ct+1000K),如图3所示。从而使得终端用户可更精准地进行手动白平衡调整,获得终端用户所需的摄影作品。其中,终端用户可通过按键或屏幕操作选择终端是获取当前外界光线的色温值进行白平衡调整还是由用户进行手动输入色温值进行白平衡调整。Further, when the shooting terminal obtains the color temperature value of the current external light through the camera, the shooting terminal can generate a color temperature scale progress bar according to the current color temperature value of the external light and display the color temperature scale progress bar, wherein the color temperature scale range of the color temperature scale progress bar It can be centered on the color temperature value of the current external light, and the value of the preset interval is the upper and lower limit values. For example, when the color temperature value of the current external light is Ct and the preset interval is 1000K, the range of the color temperature scale can be (Ct-1000K, Ct+1000K), as shown in Figure 3. Thus, end users can perform manual white balance adjustment more accurately, and obtain photographic works required by end users. Wherein, the terminal user can select whether the terminal obtains the color temperature value of the current external light to adjust the white balance or the user manually inputs the color temperature value to adjust the white balance through buttons or screen operations.

S101,根据预置的位置与色温值的对应关系,获取所述目标位置所对应的目标色温值。S101. Acquire a target color temperature value corresponding to the target position according to a preset correspondence relationship between a position and a color temperature value.

在本发明实施例中,拍摄终端可将色温刻度进度条上的每个色温值对应的每个滚动点的位置的对应关系存储在拍摄终端中。拍摄终端获取到目标位置时,可根据存储的滚动点的位置与色温值的对应关系,获取目标位置对应的目标色温值。In the embodiment of the present invention, the photographing terminal may store in the photographing terminal the correspondence between the positions of each scroll point corresponding to each color temperature value on the progress bar of the color temperature scale. When the shooting terminal acquires the target position, it can acquire the target color temperature value corresponding to the target position according to the stored correspondence between the position of the scroll point and the color temperature value.

S102,根据预置的色温值与颜色增益值的对应关系,获取所述目标色温值所对应的目标颜色增益值。S102. Acquire a target color gain value corresponding to the target color temperature value according to a preset correspondence relationship between a color temperature value and a color gain value.

在本发明实施例中,颜色增益值可包括红色增益值R_gain和蓝色增益值B_gain,该颜色增益值可用于调整图片的蓝色分量或红色分量的输出。其中,拍摄终端可建立色温值与颜色增益值的对应关系。具体的,拍摄终端可建立零散无规律的色温值与颜色增益值的对应关系,如,建立色温值为2000K,2400K,3900K等色温值与颜色增益值的对应关系。或者,拍摄终端还可建立预置间隔的色温值与颜色增益值的对应关系。如:若预置间隔为100K,起始色温值为2000K,截止色温值为8000K,则可建立的色温值与颜色增益值的对应关系可以是:建立色温值为2000K,2100K,2200K……8000K与颜色增益值的对应关系,其中,预置间隔还可是其他数值,在此不进行限制。用户可根据不同的色温值在拍摄终端上输入对应的颜色增益值,从而建立色温值与颜色增益的对应关系。In the embodiment of the present invention, the color gain value may include a red gain value R_gain and a blue gain value B_gain, and the color gain value may be used to adjust the output of the blue component or the red component of the picture. Wherein, the photographing terminal may establish a corresponding relationship between the color temperature value and the color gain value. Specifically, the photographing terminal may establish a correspondence between scattered and irregular color temperature values and color gain values, for example, establish a correspondence between color temperature values such as 2000K, 2400K, and 3900K and color gain values. Alternatively, the photographing terminal may also establish a correspondence between color temperature values and color gain values at preset intervals. For example: if the preset interval is 100K, the initial color temperature value is 2000K, and the cut-off color temperature value is 8000K, then the corresponding relationship between the color temperature value and the color gain value can be established as follows: the established color temperature value is 2000K, 2100K, 2200K...8000K The corresponding relationship with the color gain value, wherein, the preset interval may also be other numerical values, which is not limited here. The user can input the corresponding color gain value on the shooting terminal according to different color temperature values, so as to establish a corresponding relationship between the color temperature value and the color gain.

在本发明实施例中,当终端获取到目标色温值进行调整白平衡时,拍摄终端可首先判断拍摄终端是否有建立目标色温值与颜色增益值的对应关系,即拍摄终端可在建立的色温值与颜色增益值的对应关系中查询是否存储有该目标色温值与颜色增益值的对应关系。或者还可以是,当拍摄终端是建立预置间隔的色温值与颜色增益值的对应关系时,拍摄终端可判断目标色温值是否能够被预置间隔整除。当可以被预置间隔整除时,则可以在建立的色温值与颜色增益值的对应关系获取目标色温值对应的目标颜色增益值。当不可以被预置间隔整除时,拍摄终端可判断目标色温值的相邻的两个色温值C1和C2,其中,该色温值建立有色温值与颜色增益值的对应关系。从而拍摄终端可根据两个色温值C1和色温值C2获取色温值C1对应的颜色增益值为R_gain1和B_gain1,以及色温值C2对应的颜色增益值为R_gain2和B_gain2。进一步的,拍摄终端可获取色温值C1和色温值C2的权重,并根据权重以及色温值C1和色温值C2对应的颜色增益值R_gain1,B_gain1,R_gain2和B_gain2计算目标色温值对应的颜色增益值。具体的,可例如:当目标色温值Ct落在2400K和2500K的范围之间时,则色温值C1为2400K的权重W1=(Ct-2400)/100,色温值C2为2500K的权重W2=(2500-Ct)/100,目标色温值Ct的R_gainCt=W1*R_gain1+W2*R_gain2,目标色温值Ct的B_gainCt=W1*B_gain1+W2*B_gain2。从而获得目标色温值Ct的颜色增益值B_gainCt和R_gainCtIn the embodiment of the present invention, when the terminal acquires the target color temperature value to adjust the white balance, the shooting terminal can first determine whether the shooting terminal has established a corresponding relationship between the target color temperature value and the color gain value, that is, the shooting terminal can establish a color temperature value In the corresponding relationship with the color gain value, it is queried whether the corresponding relationship between the target color temperature value and the color gain value is stored. Alternatively, when the photographing terminal establishes the correspondence between the color temperature value and the color gain value at a preset interval, the photographing terminal may determine whether the target color temperature value is divisible by the preset interval. When it can be divisible by the preset interval, the target color gain value corresponding to the target color temperature value can be obtained from the established correspondence between the color temperature value and the color gain value. When not divisible by the preset interval, the photographing terminal can determine two adjacent color temperature values C1 and C2 of the target color temperature value, wherein the color temperature value establishes a corresponding relationship between the color temperature value and the color gain value. Therefore, the shooting terminal can obtain the color gain values R_gain1 and B_gain1 corresponding to the color temperature value C1 and the color gain values R_gain2 and B_gain2 corresponding to the color temperature value C2 according to the two color temperature values C1 and C2. Further, the shooting terminal can obtain the weights of the color temperature values C1 and C2, and calculate the color gain values corresponding to the target color temperature values according to the weights and the color gain values R_gain1, B_gain1, R_gain2 and B_gain2 corresponding to the color temperature values C1 and C2. Specifically, for example: when the target color temperature value Ct falls between 2400K and 2500K, the color temperature value C1 is 2400K weight W1=(Ct-2400)/100, and the color temperature value C2 is 2500K weight W2=( 2500-Ct)/100, R_gain Ct of the target color temperature value Ct =W1*R_gain1+W2*R_gain2, B_gain Ct of the target color temperature value Ct =W1*B_gain1+W2*B_gain2. Thus, the color gain values B_gain Ct and R_gain Ct of the target color temperature value Ct are obtained.

S103,根据所述目标颜色增益值进行白平衡调整。S103. Perform white balance adjustment according to the target color gain value.

拍摄终端可将获得的目标颜色增益值的红色增益值和蓝色增益值分别作用在红色输出分量和蓝色输出分量上,从而完成白平衡调节。The shooting terminal can apply the obtained red gain value and blue gain value of the target color gain value to the red output component and the blue output component respectively, so as to complete the white balance adjustment.

本发明通过获取滚动点在预置的色温刻度进度条上的目标位置,根据预置的位置与色温值的对应关系,获取所述目标位置所对应的目标色温值,根据预置的色温值与颜色增益值的对应关系,获取所述目标色温值所对应的目标颜色增益值,根据所述目标颜色增益值进行白平衡调整,使得可使得拍摄终端在任何色温值下均能进行白平衡调整,提升拍摄效果,并且用户还可以根据自身需要获得所需效果的照片,提高用户体验。The present invention acquires the target color temperature value corresponding to the target position by acquiring the target position of the scroll point on the preset progress bar of the color temperature scale according to the corresponding relationship between the preset position and the color temperature value, and obtains the target color temperature value corresponding to the target position according to the preset color temperature value and the color temperature value. The corresponding relationship of color gain values, acquiring the target color gain value corresponding to the target color temperature value, and performing white balance adjustment according to the target color gain value, so that the shooting terminal can perform white balance adjustment at any color temperature value, Improve the shooting effect, and users can also obtain photos with the desired effect according to their own needs, improving user experience.

参见图4,是本发明实施例提供的一种白平衡调整方法的第二实施例流程示意图。本发明实施例中所描述的一种白平衡调整方法包括步骤:Referring to FIG. 4 , it is a schematic flowchart of a second embodiment of a white balance adjustment method provided by an embodiment of the present invention. A white balance adjustment method described in an embodiment of the present invention includes steps:

S200,通过摄像头采集在预设色温值的光源照射下的标准图片。S200, through the camera to collect standard pictures under the light source with preset color temperature value.

在本发明实施例中,拍摄终端可以根据色温刻度进度条的范围,设置不同的色温值的光源,从而通过摄像头采集在不同的色温值的光源照射下的标准图片。如:当拍摄终端的色温刻度进度条的阈值范围为2000K~7000K时,终端用户可在可调节色温的灯箱下,将灯箱色温值调节为预设的色温值,并通过摄像头采集在色温为预设色温值的光源照射下的标准图片,其中,标准图片可以是RAW格式,预设色温值可以是2000K,2100K,2200K,2300K等间隔100K的色温值,或者也可以是其他间隔的色温值,还可以是无规则的色温值。当预设色温值是2000K,2100K,2200K,2300K等间隔100K的色温值时,即是,拍摄终端可以在每隔100K的色温值的光源照射下采集一张标准图片。其中,标准图片可以是对灰卡进行拍摄的图片或对白卡进行拍摄的图片或对白色墙体进行拍摄的图片等,在此不进行限制。拍摄终端可全镜头进行拍摄白卡或灰卡等,即FOV为100%。即是,拍摄终端通过摄像头对灰卡进行拍照,其中,灰卡可占据镜头内画面。In the embodiment of the present invention, the shooting terminal can set light sources with different color temperature values according to the range of the progress bar of the color temperature scale, so as to collect standard pictures illuminated by light sources with different color temperature values through the camera. For example: when the threshold range of the color temperature scale progress bar of the shooting terminal is 2000K to 7000K, the terminal user can adjust the color temperature value of the light box to the preset color temperature value under the light box with adjustable color temperature, and collect the color temperature at the preset color temperature through the camera. A standard picture under the light source with a set color temperature value, where the standard picture can be in RAW format, and the preset color temperature value can be 2000K, 2100K, 2200K, 2300K and other intervals of 100K color temperature values, or other intervals of color temperature values, Random color temperature values are also possible. When the preset color temperature values are 2000K, 2100K, 2200K, 2300K and other intervals of 100K color temperature values, that is, the shooting terminal can capture a standard picture under the light source with every 100K color temperature value. Wherein, the standard picture may be a picture taken on a gray card, a picture taken on a white card, or a picture taken on a white wall, etc., which is not limited here. The shooting terminal can shoot a white card or a gray card with a full lens, that is, the FOV is 100%. That is, the shooting terminal takes pictures of the gray card through the camera, wherein the gray card can occupy the image in the lens.

S201,根据所述标准图片计算颜色增益值。S201. Calculate a color gain value according to the standard picture.

在本发明实施例中,当拍摄终端采集了预设的色温值对应的标准图片时,拍摄终端可获取预置的参考点,即是,当拍摄终端采集的是灰卡的标准图片时,拍摄终端可获取灰色参考点;当拍摄终端采集的是白卡的标准图片时,拍摄终端可获取白色参考点,其中,白色参考点或灰色参考点均为真正白色的参考点或真正灰色的参考点。当拍摄终端获取预置的参考点后,拍摄终端可根据预置参考点和采集到的标准图片计算出每张图片的颜色增益值。In the embodiment of the present invention, when the shooting terminal collects the standard picture corresponding to the preset color temperature value, the shooting terminal can obtain the preset reference point, that is, when the shooting terminal collects the standard picture of the gray card, the shooting terminal The terminal can obtain the gray reference point; when the shooting terminal collects the standard picture of the white card, the shooting terminal can obtain the white reference point, where the white reference point or the gray reference point are the reference points of true white or the reference point of true gray . After the shooting terminal obtains the preset reference point, the shooting terminal can calculate the color gain value of each picture according to the preset reference point and the collected standard picture.

S202,建立所述预设色温值与所述颜色增益值的对应关系。S202. Establish a correspondence between the preset color temperature value and the color gain value.

S203,获取滚动点在预置的色温刻度进度条上的目标位置。S203. Obtain the target position of the scroll point on the progress bar of the preset color temperature scale.

S204,根据预置的位置与色温值的对应关系,获取所述目标位置所对应的目标色温值;S204. Acquire a target color temperature value corresponding to the target position according to the preset correspondence between the position and the color temperature value;

S205,根据预置的色温值与颜色增益值的对应关系,获取所述目标色温值所对应的目标颜色增益值。S205. Acquire a target color gain value corresponding to the target color temperature value according to the preset correspondence between the color temperature value and the color gain value.

S206,根据所述目标颜色增益值进行白平衡调整。S206. Perform white balance adjustment according to the target color gain value.

在本发明实施例中,步骤S203、步骤S204、步骤S205和步骤S206的具体实施方式课参加实施例一中的步骤S100、步骤S101、步骤S102和步骤S103,在此不再进行赘述。In the embodiment of the present invention, the specific implementation manners of step S203, step S204, step S205 and step S206 refer to step S100, step S101, step S102 and step S103 in the first embodiment, and will not be repeated here.

本发明通过获取滚动点在预置的色温刻度进度条上的目标位置,根据预置的位置与色温值的对应关系,获取所述目标位置所对应的目标色温值,根据预置的色温值与颜色增益值的对应关系,获取所述目标色温值所对应的目标颜色增益值,根据所述目标颜色增益值进行白平衡调整,使得可使得拍摄终端在任何色温值下均能进行白平衡调整,提升拍摄效果,并且用户还可以根据自身需要获得所需效果的照片,提高用户体验。The present invention acquires the target color temperature value corresponding to the target position by acquiring the target position of the scroll point on the preset progress bar of the color temperature scale according to the corresponding relationship between the preset position and the color temperature value, and obtains the target color temperature value corresponding to the target position according to the preset color temperature value and the color temperature value. The corresponding relationship of color gain values, acquiring the target color gain value corresponding to the target color temperature value, and performing white balance adjustment according to the target color gain value, so that the shooting terminal can perform white balance adjustment at any color temperature value, Improve the shooting effect, and users can also obtain photos with the desired effect according to their own needs, improving user experience.

参见图5,是本发明实施例提供的一种拍摄终端的第一实施例结构图。本发明实施例中所描述的拍摄终端,包括:Referring to FIG. 5 , it is a structural diagram of a first embodiment of a shooting terminal provided by an embodiment of the present invention. The shooting terminal described in the embodiment of the present invention includes:

第一获取单元100,用于获取滚动点在预置的色温刻度进度条上的目标位置。The first acquiring unit 100 is configured to acquire the target position of the scroll point on the preset progress bar of the color temperature scale.

第二获取单元200,用于根据预置的位置与色温值的对应关系,获取所述目标位置所对应的目标色温值。The second acquiring unit 200 is configured to acquire the target color temperature value corresponding to the target position according to the preset correspondence relationship between the position and the color temperature value.

第三获取单元300,用于根据预置的色温值与颜色增益值的对应关系,获取所述目标色温值所对应的目标颜色增益值。The third obtaining unit 300 is configured to obtain a target color gain value corresponding to the target color temperature value according to a preset correspondence between a color temperature value and a color gain value.

调整单元400,用于根据所述目标颜色增益值进行白平衡调整。The adjustment unit 400 is configured to perform white balance adjustment according to the target color gain value.

在本发明实施例中,当拍摄终端需进行拍摄照片,拍摄终端可以自动显示色温刻度进度条,或者,终端用户可操作拍摄设备,拍摄设备进入白平衡调整界面。当拍摄设备进入白平衡调整界面时,拍摄设备可显示多种白平衡调整模式供用户选择,包括自动调整模式、预设环境模式和手动调整模式等。当用户选择手动调整模式时,拍摄设备可显示色温刻度进度条,以使终端用户可通过操作色温刻度进度条选择所需的色温值,从而进行调整拍摄终端的白平衡。In the embodiment of the present invention, when the shooting terminal needs to take photos, the shooting terminal can automatically display the color temperature scale progress bar, or the terminal user can operate the shooting device, and the shooting device enters the white balance adjustment interface. When the shooting device enters the white balance adjustment interface, the shooting device may display multiple white balance adjustment modes for the user to choose from, including an automatic adjustment mode, a preset environment mode, and a manual adjustment mode. When the user selects the manual adjustment mode, the photographing device can display a progress bar of the color temperature scale, so that the end user can select a desired color temperature value by operating the progress bar of the color temperature scale, so as to adjust the white balance of the photographing terminal.

在本发明实施例中,色温刻度进度条的范围可以进行预置,例如,色温刻度进度条的范围可以预置为0~7000K,或者色温刻度进度条的范围还可以预置为2500K~8000K等。可选的,色温刻度进度条的范围还可以由用户根据需要进行预置,在此不进行限制。进一步的,在本发明实施例中,色温刻度进度条还可包括预置间距的色温刻度以及滚动点。其中,色温刻度可如图2,色温刻度可设定为以预置间距100K为单位的小刻度,以预置间距1000K为单位的大刻度,小刻度和大刻度分别用不同的标记显示,其中大刻度的标记可更加醒目,如图2中在大刻度上标上色温值。滚动点在色温刻度进度条上的位置对应于色温值,终端用户可根据色温刻度进度条上显示的色温刻度,在色温刻度进度条上操作滚动点移动到所需的色温值相应的目标位置上,其中,操作滚动点动作还可以包括直接点击色温刻度进度条上的某一位置,例如当终端用户点击色温刻度进度条上的某一位置时,则表示终端用户将滚动点拖动至色温刻度进度条上的该位置上。其中,当滚动点被移动后,第一获取单元100可获取滚动点移动后的目标位置,例如:当终端用户拖动滚动点后并停止拖动时,第一获取单元100获取滚动点被拖动后直至停止时的目标位置。In the embodiment of the present invention, the range of the progress bar of the color temperature scale can be preset, for example, the range of the progress bar of the color temperature scale can be preset as 0-7000K, or the range of the progress bar of the color temperature scale can also be preset as 2500K-8000K, etc. . Optionally, the range of the progress bar of the color temperature scale can also be preset by the user according to needs, which is not limited here. Further, in the embodiment of the present invention, the progress bar of the color temperature scale may also include color temperature scales with preset intervals and scroll points. Among them, the color temperature scale can be shown in Figure 2. The color temperature scale can be set as a small scale with a preset interval of 100K as a unit, and a large scale with a preset interval of 1000K as a unit. The small scale and the large scale are displayed with different marks. The mark on the large scale can be more eye-catching, as shown in Figure 2, the color temperature value is marked on the large scale. The position of the scroll point on the progress bar of the color temperature scale corresponds to the color temperature value. The end user can operate the scroll point on the progress bar of the color temperature scale to move to the target position corresponding to the required color temperature value according to the color temperature scale displayed on the progress bar of the color temperature scale. , where the action of operating the scroll point may also include directly clicking a certain position on the progress bar of the color temperature scale, for example, when the end user clicks a certain position on the progress bar of the color temperature scale, it means that the end user drags the scroll point to the color temperature scale at that position on the progress bar. Wherein, when the scroll point is moved, the first acquiring unit 100 can acquire the target position of the scroll point after moving, for example: when the terminal user drags the scroll point and stops dragging, the first acquiring unit 100 acquires the scroll point moved The target position after moving until stopping.

进一步的,拍摄终端还可通过摄像头获取当前外界光线的色温值,并根据外界光线的色温值控制色温刻度进度条上的滚动点移至外界光线的色温值对应的目标位置上,以方便终端用户从色温刻度进度条上读取当前外界光线的色温值。Further, the shooting terminal can also obtain the current color temperature value of the external light through the camera, and control the scroll point on the progress bar of the color temperature scale to move to the target position corresponding to the color temperature value of the external light according to the color temperature value of the external light, so as to facilitate the terminal user Read the current color temperature value of the external light from the progress bar of the color temperature scale.

进一步的,当拍摄终端通过摄像头获取当前外界光线的色温值时,拍摄终端可根据当前外界光线的色温值生成色温刻度进度条并显示色温刻度进度条,其中,该色温刻度进度条的色温刻度范围可以是以当前外界光线的色温值为中心,以间隔为预置间隔的数值为上下限值,如当前外界光线的色温值为Ct时,预置间隔为1000K时,则色温刻度范围可为(Ct-1000K,Ct+1000K),如图3所示。从而使得终端用户可更精准地进行手动白平衡调整,获得终端用户所需的摄影作品。其中,终端用户可通过按键或屏幕操作选择终端是获取当前外界光线的色温值进行白平衡调整还是由用户进行手动输入色温值进行白平衡调整。Further, when the shooting terminal obtains the color temperature value of the current external light through the camera, the shooting terminal can generate a color temperature scale progress bar according to the current color temperature value of the external light and display the color temperature scale progress bar, wherein the color temperature scale range of the color temperature scale progress bar It can be centered on the color temperature value of the current external light, and the value of the preset interval is the upper and lower limit values. For example, when the color temperature value of the current external light is Ct and the preset interval is 1000K, the range of the color temperature scale can be ( Ct-1000K, Ct+1000K), as shown in Figure 3. Thus, end users can perform manual white balance adjustment more accurately, and obtain photographic works required by end users. Wherein, the terminal user can select whether the terminal obtains the color temperature value of the current external light to adjust the white balance or the user manually inputs the color temperature value to adjust the white balance through buttons or screen operations.

在本发明实施例中,拍摄终端可将色温刻度进度条上的每个色温值对应的每个滚动点的位置的对应关系存储在拍摄终端中。当获取到目标位置时,第二获取单元200可根据存储的滚动点的位置与色温值的对应关系,获取目标位置对应的目标色温值。In the embodiment of the present invention, the photographing terminal may store in the photographing terminal the correspondence between the positions of each scroll point corresponding to each color temperature value on the progress bar of the color temperature scale. When the target position is acquired, the second acquiring unit 200 may acquire the target color temperature value corresponding to the target position according to the stored correspondence between the position of the scroll point and the color temperature value.

在本发明实施例中,颜色增益值可包括红色增益值R_gain和蓝色增益值B_gain,该颜色增益值可用于调整图片的蓝色分量或红色分量的输出。其中,拍摄终端可建立色温值与颜色增益值的对应关系。具体的,拍摄终端可建立零散无规律的色温值与颜色增益值的对应关系,如,建立色温值为2000K,2400K,3900K等色温值与颜色增益值的对应关系。或者,拍摄终端还可建立预置间隔的色温值与颜色增益值的对应关系。如:若预置间隔为100K,起始色温值为2000K,截止色温值为8000K,则可建立的色温值与颜色增益值的对应关系可以是:建立色温值为2000K,2100K,2200K……8000K与颜色增益值的对应关系,其中,预置间隔还可是其他数值,在此不进行限制。用户可根据不同的色温值在拍摄终端上输入对应的颜色增益值,从而建立色温值与颜色增益的对应关系。In the embodiment of the present invention, the color gain value may include a red gain value R_gain and a blue gain value B_gain, and the color gain value may be used to adjust the output of the blue component or the red component of the picture. Wherein, the photographing terminal may establish a corresponding relationship between the color temperature value and the color gain value. Specifically, the photographing terminal may establish a correspondence between scattered and irregular color temperature values and color gain values, for example, establish a correspondence between color temperature values such as 2000K, 2400K, and 3900K and color gain values. Alternatively, the photographing terminal may also establish a correspondence between color temperature values and color gain values at preset intervals. For example: if the preset interval is 100K, the initial color temperature value is 2000K, and the cut-off color temperature value is 8000K, then the corresponding relationship between the color temperature value and the color gain value can be established as follows: the established color temperature value is 2000K, 2100K, 2200K...8000K The corresponding relationship with the color gain value, wherein, the preset interval may also be other numerical values, which is not limited here. The user can input the corresponding color gain value on the shooting terminal according to different color temperature values, so as to establish a corresponding relationship between the color temperature value and the color gain.

在本发明实施例中,当第二获取单元200获取到目标色温值进行调整白平衡时,第三获取单元300可首先判断拍摄终端是否有建立目标色温值与颜色增益值的对应关系,即第三获取单元300可在建立的色温值与颜色增益值的对应关系中查询是否存储有该目标色温值与颜色增益值的对应关系。或者还可以是,当拍摄终端是建立预置间隔的色温值与颜色增益值的对应关系时,第三获取单元300可判断目标色温值是否能够被预置间隔整除。当可以被预置间隔整除时,则第三获取单元300可以在建立的色温值与颜色增益值的对应关系获取目标色温值对应的目标颜色增益值。当不可以被预置间隔整除时,第三获取单元300可判断目标色温值的相邻的两个色温值C1和C2,其中,该色温值建立有色温值与颜色增益值的对应关系。从而第三获取单元300可根据两个色温值C1和色温值C2获取色温值C1对应的颜色增益值为R_gain1和B_gain1,以及色温值C2对应的颜色增益值为R_gain2和B_gain2。进一步的,第三获取单元300可获取色温值C1和色温值C2的权重,并根据权重以及色温值C1和色温值C2对应的颜色增益值R_gain1,B_gain1,R_gain2和B_gain2计算目标色温值对应的颜色增益值。具体的,可例如:当目标色温值Ct落在2400K和2500K的范围之间时,则第三获取单元300获得的色温值C1为2400K的权重W1=(Ct-2400)/100,色温值C2为2500K的权重W2=(2500-Ct)/100,目标色温值Ct的R_gainCt=W1*R_gain1+W2*R_gain2,目标色温值Ct的B_gainCt=W1*B_gain1+W2*B_gain2。从而第三获取单元300获得目标色温值Ct的颜色增益值B_gainCt和R_gainCt。In the embodiment of the present invention, when the second acquisition unit 200 acquires the target color temperature value to adjust the white balance, the third acquisition unit 300 may first determine whether the shooting terminal has established a corresponding relationship between the target color temperature value and the color gain value, that is, the first The third acquisition unit 300 may query whether the corresponding relationship between the target color temperature value and the color gain value is stored in the established corresponding relationship between the color temperature value and the color gain value. Alternatively, when the photographing terminal establishes a correspondence relationship between color temperature values at preset intervals and color gain values, the third acquiring unit 300 may determine whether the target color temperature value is divisible by the preset interval. When it can be divisible by the preset interval, the third acquiring unit 300 can acquire the target color gain value corresponding to the target color temperature value based on the established correspondence between the color temperature value and the color gain value. When not divisible by the preset interval, the third acquisition unit 300 can determine two adjacent color temperature values C1 and C2 of the target color temperature value, wherein the color temperature value establishes a corresponding relationship between the color temperature value and the color gain value. Therefore, the third acquiring unit 300 can acquire the color gain values R_gain1 and B_gain1 corresponding to the color temperature value C1 and the color gain values R_gain2 and B_gain2 corresponding to the color temperature value C2 according to the two color temperature values C1 and C2. Further, the third acquiring unit 300 can acquire the weights of the color temperature value C1 and the color temperature value C2, and calculate the color corresponding to the target color temperature value according to the weight and the color gain values R_gain1, B_gain1, R_gain2 and B_gain2 corresponding to the color temperature value C1 and the color temperature value C2 gain value. Specifically, for example: when the target color temperature value Ct falls between 2400K and 2500K, the color temperature value C1 obtained by the third acquisition unit 300 is the weight W1=(Ct-2400)/100 of 2400K, and the color temperature value C2 The weight W2=(2500-Ct)/100 of 2500K, the R_gain Ct of the target color temperature value Ct =W1*R_gain1+W2*R_gain2, the B_gain Ct of the target color temperature value Ct =W1*B_gain1+W2*B_gain2. Thus the third obtaining unit 300 obtains the color gain values B_gainCt and R_gainCt of the target color temperature value Ct.

调整单元400可将获得的目标颜色增益值的红色增益值和蓝色增益值分别作用在红色输出分量和蓝色输出分量上,从而完成白平衡调节。The adjustment unit 400 can apply the obtained red gain value and blue gain value of the target color gain value to the red output component and the blue output component respectively, so as to complete the white balance adjustment.

本发明通过获取滚动点在预置的色温刻度进度条上的目标位置,根据预置的位置与色温值的对应关系,获取所述目标位置所对应的目标色温值,根据预置的色温值与颜色增益值的对应关系,获取所述目标色温值所对应的目标颜色增益值,根据所述目标颜色增益值进行白平衡调整,使得可使得拍摄终端在任何色温值下均能进行白平衡调整,提升拍摄效果,并且用户还可以根据自身需要获得所需效果的照片,提高用户体验。The present invention acquires the target color temperature value corresponding to the target position by acquiring the target position of the scroll point on the preset progress bar of the color temperature scale according to the corresponding relationship between the preset position and the color temperature value, and obtains the target color temperature value corresponding to the target position according to the preset color temperature value and the color temperature value. The corresponding relationship of color gain values, acquiring the target color gain value corresponding to the target color temperature value, and performing white balance adjustment according to the target color gain value, so that the shooting terminal can perform white balance adjustment at any color temperature value, Improve the shooting effect, and users can also obtain photos with the desired effect according to their own needs, improving user experience.

参见图5,是本发明实施例提供的一种拍摄终端的第一实施例结构图。本发明实施例中所描述的拍摄终端,包括:Referring to FIG. 5 , it is a structural diagram of a first embodiment of a shooting terminal provided by an embodiment of the present invention. The shooting terminal described in the embodiment of the present invention includes:

第一获取单元100、第二获取单元200、第三获取单元300和调整单元400。The first acquisition unit 100 , the second acquisition unit 200 , the third acquisition unit 300 and the adjustment unit 400 .

其中,所述拍摄终端还包括:Wherein, the shooting terminal also includes:

采集单元500,用于通过摄像头采集在预设色温值的光源照射下的标准图片。The acquisition unit 500 is configured to acquire a standard picture illuminated by a light source with a preset color temperature value through a camera.

计算单元600,用于根据所述标准图片计算颜色增益值。A calculation unit 600, configured to calculate a color gain value according to the standard picture.

建立单元700,用于建立所述预设色温值与所述颜色增益值的对应关系。The establishing unit 700 is configured to establish a corresponding relationship between the preset color temperature value and the color gain value.

其中,所述终端包括:Wherein, the terminal includes:

显示单元,用于显示所述色温刻度进度条,其中,所述色温刻度进度条包括预设间距的色温刻度和滚动点。The display unit is configured to display the progress bar of the color temperature scale, wherein the progress bar of the color temperature scale includes color temperature scales and scroll points at preset intervals.

其中,所述第一获取单元100具体用于:Wherein, the first acquiring unit 100 is specifically used for:

当终端用户拖动所述滚动点后,识别所述滚动点在所述色温刻度进度条上的目标位置。After the end user drags the scroll point, identify the target position of the scroll point on the progress bar of the color temperature scale.

其中,所述终端包括:Wherein, the terminal includes:

测量单元,用于通过摄像头测量当前外界光线的色温值;The measurement unit is used to measure the color temperature value of the current external light through the camera;

生成单元,用于根据所述当前外界光线的色温值生成所述色温刻度进度条。A generating unit, configured to generate the color temperature scale progress bar according to the current color temperature value of the ambient light.

在本发明实施例中,拍摄终端可以根据色温刻度进度条的范围,设置不同的色温值的光源,从而采集单元500通过摄像头采集在不同的色温值的光源照射下的标准图片。如:当拍摄终端的色温刻度进度条的阈值范围为2000K~7000K时,终端用户可在可调节色温的灯箱下,将灯箱色温值调节为预设的色温值,并采集单元500通过摄像头采集在色温为预设色温值的光源照射下的标准图片,其中,预设色温值可以是2000K,2100K,2200K,2300K等间隔100K的色温值,或者也可以是其他间隔的色温值,还可以是无规则的色温值。当预设色温值是2000K,2100K,2200K,2300K等间隔100K的色温值时,即是,采集单元500可以在每隔100K的色温值的光源照射下采集一张标准图片。其中,标准图片可以是对灰卡进行拍摄的图片或对白卡进行拍摄的图片或对白色墙体进行拍摄的图片等,在此不进行限制。拍摄终端可全镜头进行拍摄白卡或灰卡等,即FOV为100%。即是,拍摄终端通过摄像头对灰卡进行拍照,其中,灰卡可占据镜头内画面。In the embodiment of the present invention, the shooting terminal can set light sources with different color temperature values according to the range of the color temperature scale progress bar, so that the acquisition unit 500 collects standard pictures illuminated by light sources with different color temperature values through the camera. For example: when the threshold range of the color temperature scale progress bar of the shooting terminal is 2000K to 7000K, the terminal user can adjust the color temperature value of the light box to the preset color temperature value under the light box with adjustable color temperature, and the acquisition unit 500 collects the The color temperature is a standard picture illuminated by a light source with a preset color temperature value. The preset color temperature value can be 2000K, 2100K, 2200K, 2300K and other intervals of 100K. Regular color temperature value. When the preset color temperature values are 2000K, 2100K, 2200K, 2300K and other intervals of 100K color temperature values, that is, the acquisition unit 500 can collect a standard picture under the illumination of the light source with every 100K color temperature value. Wherein, the standard picture may be a picture taken on a gray card, a picture taken on a white card, or a picture taken on a white wall, etc., which is not limited here. The shooting terminal can shoot a white card or a gray card with a full lens, that is, the FOV is 100%. That is, the shooting terminal takes pictures of the gray card through the camera, wherein the gray card can occupy the image in the lens.

在本发明实施例中,当采集单元500采集了预设的色温值对应的标准图片时,计算单元600可获取预置的参考点,即是,当采集单元500采集的是灰卡的标准图片时,计算单元600可获取灰色参考点;当采集单元500采集的是白卡的标准图片时,计算单元600可获取白色参考点,其中,白色参考点或灰色参考点均为真正白色的参考点或真正灰色的参考点。当计算单元600获取预置的参考点后,计算单元600可根据预置参考点和采集到的标准图片计算出每张图片的颜色增益值。In the embodiment of the present invention, when the acquisition unit 500 acquires the standard picture corresponding to the preset color temperature value, the calculation unit 600 can acquire the preset reference point, that is, when the acquisition unit 500 acquires the standard picture of the gray card , the calculation unit 600 can obtain the gray reference point; when the collection unit 500 collects a standard picture of a white card, the calculation unit 600 can obtain the white reference point, wherein the white reference point or the gray reference point are reference points of true white or really gray reference points. After the calculation unit 600 obtains the preset reference point, the calculation unit 600 can calculate the color gain value of each picture according to the preset reference point and the collected standard picture.

其中,可以理解的是,本实施例的各功能模块的功能还可根据参照上述实施例的相关描述,此处不再进行赘述。Wherein, it can be understood that the functions of the functional modules of this embodiment may also be based on the relevant descriptions with reference to the above embodiments, and details are not repeated here.

本发明通过获取滚动点在预置的色温刻度进度条上的目标位置,根据预置的位置与色温值的对应关系,获取所述目标位置所对应的目标色温值,根据预置的色温值与颜色增益值的对应关系,获取所述目标色温值所对应的目标颜色增益值,根据所述目标颜色增益值进行白平衡调整,使得可使得拍摄终端在任何色温值下均能进行白平衡调整,提升拍摄效果,并且用户还可以根据自身需要获得所需效果的照片,提高用户体验。The present invention acquires the target color temperature value corresponding to the target position by acquiring the target position of the scroll point on the preset progress bar of the color temperature scale according to the corresponding relationship between the preset position and the color temperature value, and obtains the target color temperature value corresponding to the target position according to the preset color temperature value and the color temperature value. The corresponding relationship of color gain values, acquiring the target color gain value corresponding to the target color temperature value, and performing white balance adjustment according to the target color gain value, so that the shooting terminal can perform white balance adjustment at any color temperature value, Improve the shooting effect, and users can also obtain photos with the desired effect according to their own needs, improving user experience.

本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-OnlyMemory,ROM)或随机存储记忆体(RandomAccessMemory,RAM)等。Those of ordinary skill in the art can understand that all or part of the processes in the methods of the above embodiments can be implemented through computer programs to instruct related hardware, and the programs can be stored in a computer-readable storage medium. During execution, it may include the processes of the embodiments of the above-mentioned methods. Wherein, the storage medium may be a magnetic disk, an optical disk, a read-only memory (Read-Only Memory, ROM) or a random access memory (Random Access Memory, RAM) and the like.

以上所揭露的仅为本发明较佳实施例而已,当然不能以此来限定本发明之权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。The above disclosures are only preferred embodiments of the present invention, and certainly cannot limit the scope of rights of the present invention. Therefore, equivalent changes made according to the claims of the present invention still fall within the scope of the present invention.

Claims (10)

1. a white balance adjustment method, is characterized in that, described method comprises:
Obtain the target location of point on preset colour temperature scale progress bar of rolling;
According to the corresponding relation of preset position and color temperature value, obtain the aim colour temperature value corresponding to described target location;
According to the corresponding relation of preset color temperature value and colour gain values, obtain the color of object yield value corresponding to described aim colour temperature value;
Blank level adjustment is carried out according to described color of object yield value.
2. method as claimed in claim 1, is characterized in that, described obtain the target location of point on preset colour temperature scale progress bar of rolling before comprise:
By the normal pictures of camera collection under the light source irradiation of preset color temperature value;
Colour gain values is calculated according to described normal pictures;
Set up the corresponding relation of described preset color temperature value and described colour gain values.
3. the method for claim 1, is characterized in that, described acquisition rolling point comprises before the target location on preset colour temperature scale progress bar:
Show described colour temperature scale progress bar, wherein, described colour temperature scale progress bar comprises colour temperature scale and the rolling point of preset pitch.
4. method as claimed in claim 3, is characterized in that, obtains the target location of point on preset colour temperature scale progress bar of rolling and comprises:
After terminal use drags described rolling point, identify the described target location of point on described colour temperature scale progress bar of rolling.
5. the method for claim 1, is characterized in that, described acquisition rolling point comprises before the target location on preset colour temperature scale progress bar:
The color temperature value of current outside light is measured by camera;
Described colour temperature scale progress bar is generated according to the color temperature value of described current outside light.
6. a camera terminal, is characterized in that, described terminal comprises:
First acquiring unit, for obtaining the target location of point on preset colour temperature scale progress bar of rolling;
Second acquisition unit, for the corresponding relation according to preset position and color temperature value, obtains the aim colour temperature value corresponding to described target location;
3rd acquiring unit, for the corresponding relation according to preset color temperature value and colour gain values, obtains the color of object yield value corresponding to described aim colour temperature value;
Adjustment unit, for carrying out blank level adjustment according to described color of object yield value.
7. terminal as claimed in claim 6, it is characterized in that, described terminal comprises:
Collecting unit, for by the normal pictures of camera collection under the light source irradiation of preset color temperature value;
Computing unit, for calculating colour gain values according to described normal pictures;
Set up unit, for setting up the corresponding relation of described preset color temperature value and described colour gain values.
8. terminal as claimed in claim 6, it is characterized in that, described terminal comprises:
Display unit, for showing described colour temperature scale progress bar, wherein, described colour temperature scale progress bar comprises colour temperature scale and the rolling point of preset pitch.
9. terminal as claimed in claim 8, is characterized in that, described first acquiring unit specifically for:
After terminal use drags described rolling point, identify the described target location of point on described colour temperature scale progress bar of rolling.
10. terminal as claimed in claim 6, it is characterized in that, described terminal comprises:
Measuring unit, for measuring the color temperature value of current outside light by camera;
Generation unit, for generating described colour temperature scale progress bar according to the color temperature value of described current outside light.
CN201510408177.XA 2015-07-10 2015-07-10 White balance adjusting method and shooting terminal Pending CN105554489A (en)

Priority Applications (2)

Application Number Priority Date Filing Date Title
CN201510408177.XA CN105554489A (en) 2015-07-10 2015-07-10 White balance adjusting method and shooting terminal
PCT/CN2015/085882 WO2017008351A1 (en) 2015-07-10 2015-07-31 White balance adjusting method and photographing terminal

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN201510408177.XA CN105554489A (en) 2015-07-10 2015-07-10 White balance adjusting method and shooting terminal

Publications (1)

Publication Number Publication Date
CN105554489A true CN105554489A (en) 2016-05-04

Family

ID=55833400

Family Applications (1)

Application Number Title Priority Date Filing Date
CN201510408177.XA Pending CN105554489A (en) 2015-07-10 2015-07-10 White balance adjusting method and shooting terminal

Country Status (2)

Country Link
CN (1) CN105554489A (en)
WO (1) WO2017008351A1 (en)

Cited By (13)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107045416A (en) * 2017-04-07 2017-08-15 广东欧珀移动通信有限公司 Color temperature adjusting method and device and display equipment
CN107360410A (en) * 2017-07-10 2017-11-17 广东欧珀移动通信有限公司 White balance control method, device and terminal equipment
CN108280857A (en) * 2017-12-28 2018-07-13 努比亚技术有限公司 Camera method for parameter configuration, mobile terminal and computer readable storage medium
CN108877733A (en) * 2018-06-04 2018-11-23 Oppo广东移动通信有限公司 Color temperature adjusting method and relevant apparatus
CN109068116A (en) * 2018-08-31 2018-12-21 青岛海信移动通信技术股份有限公司 Image processing method, device, mobile terminal and storage medium based on light filling
CN109618146A (en) * 2018-12-05 2019-04-12 维沃移动通信有限公司 A kind of image processing method and terminal device
CN110555443A (en) * 2018-06-01 2019-12-10 杭州海康威视数字技术股份有限公司 Color classification method, device and storage medium
CN111492653A (en) * 2017-09-30 2020-08-04 深圳传音通讯有限公司 Method, device and computer-readable storage medium for fast adjustment of camera white balance
CN114664273A (en) * 2020-12-23 2022-06-24 深圳Tcl数字技术有限公司 Color temperature adjusting method and device, terminal equipment and storage medium
CN115914602A (en) * 2022-11-28 2023-04-04 峰米(重庆)创新科技有限公司 White balance adjustment method, white balance adjustment device, computer equipment and storage medium
WO2023240444A1 (en) * 2022-06-14 2023-12-21 北京小米移动软件有限公司 Image processing method, apparatus and storage medium
WO2024092426A1 (en) * 2022-10-31 2024-05-10 北京小米移动软件有限公司 White-balance gain compensation method and apparatus, and electronic device
CN118175274A (en) * 2024-05-15 2024-06-11 福思(杭州)智能科技有限公司 Image processing method, device, storage medium and electronic equipment

Families Citing this family (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107610098B (en) * 2017-08-17 2020-09-01 努比亚技术有限公司 Evaluation method of AWB algorithm, mobile terminal and computer-readable storage medium

Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040179113A1 (en) * 2003-03-13 2004-09-16 Nikon Corporation White balance adjustment circuit and image-capturing apparatus
CN1953561A (en) * 2006-11-27 2007-04-25 北京中星微电子有限公司 A system and method to correct white balance
US20090102944A1 (en) * 2007-10-22 2009-04-23 Nishizawa Yuka Color signal processing circuit, image pickup apparatus, and color signal processing method
CN101600121A (en) * 2008-06-03 2009-12-09 亚洲光学股份有限公司 A kind of computational methods of white balance correct value
CN101753847A (en) * 2008-12-10 2010-06-23 三星数码影像株式会社 Color temperature compensating imaging apparatus and method
CN104168468A (en) * 2013-11-08 2014-11-26 深圳市中兴移动通信有限公司 White-balance adjusting method and device
CN104427317A (en) * 2013-08-26 2015-03-18 联想(北京)有限公司 Image acquisition method and electronic equipment

Family Cites Families (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN1202491C (en) * 2000-12-28 2005-05-18 金宝电子工业股份有限公司 White balancing treatment method for digital image pick-up
JP4028358B2 (en) * 2002-02-05 2007-12-26 株式会社リコー Imaging apparatus, display control method, program, and recording medium
JP2005175975A (en) * 2003-12-12 2005-06-30 Canon Inc Image processor
CN100551081C (en) * 2007-04-23 2009-10-14 北京中星微电子有限公司 A kind of method and device of realizing white balance correction

Patent Citations (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20040179113A1 (en) * 2003-03-13 2004-09-16 Nikon Corporation White balance adjustment circuit and image-capturing apparatus
CN1953561A (en) * 2006-11-27 2007-04-25 北京中星微电子有限公司 A system and method to correct white balance
US20090102944A1 (en) * 2007-10-22 2009-04-23 Nishizawa Yuka Color signal processing circuit, image pickup apparatus, and color signal processing method
CN101600121A (en) * 2008-06-03 2009-12-09 亚洲光学股份有限公司 A kind of computational methods of white balance correct value
CN101753847A (en) * 2008-12-10 2010-06-23 三星数码影像株式会社 Color temperature compensating imaging apparatus and method
CN104427317A (en) * 2013-08-26 2015-03-18 联想(北京)有限公司 Image acquisition method and electronic equipment
CN104168468A (en) * 2013-11-08 2014-11-26 深圳市中兴移动通信有限公司 White-balance adjusting method and device

Cited By (16)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN107045416A (en) * 2017-04-07 2017-08-15 广东欧珀移动通信有限公司 Color temperature adjusting method and device and display equipment
CN107360410A (en) * 2017-07-10 2017-11-17 广东欧珀移动通信有限公司 White balance control method, device and terminal equipment
CN111492653A (en) * 2017-09-30 2020-08-04 深圳传音通讯有限公司 Method, device and computer-readable storage medium for fast adjustment of camera white balance
CN108280857A (en) * 2017-12-28 2018-07-13 努比亚技术有限公司 Camera method for parameter configuration, mobile terminal and computer readable storage medium
CN110555443B (en) * 2018-06-01 2022-05-20 杭州海康威视数字技术股份有限公司 Color classification method, device and storage medium
CN110555443A (en) * 2018-06-01 2019-12-10 杭州海康威视数字技术股份有限公司 Color classification method, device and storage medium
CN108877733A (en) * 2018-06-04 2018-11-23 Oppo广东移动通信有限公司 Color temperature adjusting method and relevant apparatus
CN109068116A (en) * 2018-08-31 2018-12-21 青岛海信移动通信技术股份有限公司 Image processing method, device, mobile terminal and storage medium based on light filling
CN109618146A (en) * 2018-12-05 2019-04-12 维沃移动通信有限公司 A kind of image processing method and terminal device
CN114664273A (en) * 2020-12-23 2022-06-24 深圳Tcl数字技术有限公司 Color temperature adjusting method and device, terminal equipment and storage medium
WO2023240444A1 (en) * 2022-06-14 2023-12-21 北京小米移动软件有限公司 Image processing method, apparatus and storage medium
WO2024092426A1 (en) * 2022-10-31 2024-05-10 北京小米移动软件有限公司 White-balance gain compensation method and apparatus, and electronic device
CN115914602A (en) * 2022-11-28 2023-04-04 峰米(重庆)创新科技有限公司 White balance adjustment method, white balance adjustment device, computer equipment and storage medium
CN115914602B (en) * 2022-11-28 2025-01-17 峰米(重庆)创新科技有限公司 White balance adjustment method, white balance adjustment device, computer equipment and storage medium
CN118175274A (en) * 2024-05-15 2024-06-11 福思(杭州)智能科技有限公司 Image processing method, device, storage medium and electronic equipment
CN118175274B (en) * 2024-05-15 2024-09-06 福思(杭州)智能科技有限公司 Image processing method, device, storage medium and electronic equipment

Also Published As

Publication number Publication date
WO2017008351A1 (en) 2017-01-19

Similar Documents

Publication Publication Date Title
CN105554489A (en) White balance adjusting method and shooting terminal
Pierson et al. Tutorial: luminance maps for daylighting studies from high dynamic range photography
US11418714B2 (en) Image processing device, method of processing image, image processing program, and imaging device
EP3694203A1 (en) Method and device for obtaining exposure compensation value of high-dynamic-range image
JP6258555B2 (en) Multi LED camera flash for color temperature adjustment
CN104853109B (en) A kind of method and camera terminal for automatically adjusting flash of light
TWI556645B (en) Lens shading calibration for cameras
CN111083458B (en) Brightness correction method, system, equipment and computer readable storage medium
CN103347152A (en) Method, device and terminal for picture processing
KR20140070120A (en) display device color- calibration apparatus and method thereof
Ismail et al. Development of a webcam based lux meter
CN104168468A (en) White-balance adjusting method and device
CN108234971A (en) White balance parameter determines method, white balance adjustment method and device, storage medium, terminal
CN111896232B (en) Optical machine module testing method, equipment, system and computer readable storage medium
CN102692271B (en) Sky visible light images based direct solar radiation intensity measurement method and device
CN102213618A (en) Color measuring apparatus and color measuring method
JP5482850B2 (en) Imaging device
WO2017031889A1 (en) Method for measuring plan view size of object using mobile phone photographing function
JP2008172422A (en) Imaging apparatus
TW201624990A (en) Automatic white balance methods for electronic cameras
CN107578047A (en) Eccentricity Detection Method of Power Cable
US20190068938A1 (en) Using a light color sensor to improve a representation of colors in captured image data
CN104660766A (en) Backlight adjustment method and device of mobile terminal
TW201633254A (en) Automatic white balance systems for electronic cameras
JP2017229064A (en) Information processing apparatus, information processing method, and program

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