WO2017008351A1 - 一种白平衡调整方法和拍摄终端 - Google Patents
一种白平衡调整方法和拍摄终端 Download PDFInfo
- Publication number
- WO2017008351A1 WO2017008351A1 PCT/CN2015/085882 CN2015085882W WO2017008351A1 WO 2017008351 A1 WO2017008351 A1 WO 2017008351A1 CN 2015085882 W CN2015085882 W CN 2015085882W WO 2017008351 A1 WO2017008351 A1 WO 2017008351A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- color temperature
- preset
- temperature value
- color
- target
- 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.)
- Ceased
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N23/00—Cameras or camera modules comprising electronic image sensors; Control thereof
- H04N23/80—Camera processing pipelines; Components thereof
- H04N23/84—Camera processing pipelines; Components thereof for processing colour signals
- H04N23/88—Camera processing pipelines; Components thereof for processing colour signals for colour balance, e.g. white-balance circuits or colour temperature control
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N1/00—Scanning, transmission or reproduction of documents or the like, e.g. facsimile transmission; Details thereof
- H04N1/46—Colour picture communication systems
- H04N1/56—Processing of colour picture signals
- H04N1/60—Colour correction or control
Definitions
- the present invention relates to electronic technologies, and in particular, to a white balance adjustment method and a photographing terminal.
- 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 whether it is sunlight, sunny, cloudy, fluorescent, fluorescent or tungsten light, the human eye can adapt to such color changes without affecting what people see.
- these white colors produced by different light sources are still different in color. For example, photos taken in the environment of tungsten lighting may be yellowish, and photos taken in other environments may be blue. Therefore, when shooting a photo, it is often necessary to adjust the white balance to improve the shooting effect.
- the white balance is usually adjusted by a preset environmental adjustment mode, such as a limited preset environment adjustment mode such as a fluorescent mode, a fluorescent mode, and a tungsten mode, but in the existing situation.
- a preset environmental adjustment mode such as a limited preset environment adjustment mode such as a fluorescent mode, a fluorescent mode, and a tungsten mode
- the external light source is often complicated, such as the mixed light source of the tungsten light source and the fluorescent light source at the same time, and the preset preset environment adjustment mode cannot perform the correct white balance adjustment, so that the user cannot obtain the satisfactory ideal photo to the user. bring inconvenience.
- a technical problem to be solved by the embodiments of the present invention is to provide a white balance adjustment method and a photographing terminal. It can make the shooting terminal adjust the white balance at any color temperature value to improve the shooting effect.
- an embodiment of the present invention provides a white balance adjustment method, including:
- White balance adjustment is performed according to the target color gain value.
- the obtaining the scroll point before the target position on the preset color temperature scale progress bar comprises:
- the obtaining the scroll point before the target position on the preset color temperature scale progress bar comprises:
- the color temperature scale progress bar is displayed, wherein the color temperature scale progress bar includes a color temperature scale and a scroll point of the preset pitch.
- obtaining the target position of the scroll point on the preset color temperature scale progress bar includes:
- the target position of the scroll point on the color temperature scale progress bar is identified.
- the obtaining the scroll point before the target position on the preset color temperature scale progress bar comprises:
- an embodiment of the present invention further provides a shooting terminal, including:
- a first acquiring unit configured to acquire a target position of the scroll point on the preset color temperature scale progress bar
- a second acquiring unit configured to acquire a target color temperature value corresponding to the target location according to a correspondence between a preset position and a 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 relationship between the preset color temperature value and the color gain value;
- an adjusting unit configured to perform white balance adjustment according to the target color gain value.
- the terminal includes:
- a collecting unit configured to collect, by the camera, a standard picture illuminated by a light source with a preset color temperature value
- a calculating unit configured to calculate a color gain value according to the standard picture
- a establishing unit configured to establish a correspondence between the preset color temperature value and the color gain value.
- the terminal includes:
- a display unit configured to display the color temperature scale progress bar, wherein the color temperature scale progress bar includes a color temperature scale and a scroll point of the preset pitch.
- the first obtaining unit is specifically configured to:
- the target position of the scroll point on the color temperature scale progress bar is identified.
- the terminal includes:
- a measuring unit configured to measure a 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 color temperature value of the current external light.
- the invention obtains the target color position corresponding to the target position according to the corresponding relationship between the preset position and the color temperature value by acquiring the target position of the scroll point on the preset color temperature scale progress bar, according to the preset color temperature value and Corresponding relationship between the color gain values, obtaining a 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 get the photos of the desired effect according to their needs, improve the user experience.
- FIG. 1 is a schematic flow chart of a first embodiment of a white balance adjustment method according to the present invention
- FIG. 2 is a color temperature scale on a color temperature scale progress bar according to an embodiment of the present invention.
- FIG. 3 is a color temperature scale on another color temperature scale progress bar according to an embodiment of the present invention.
- FIG. 4 is a schematic flow chart of a second embodiment of a white balance adjustment method according to the present invention.
- Figure 5 is a first embodiment structural diagram of a photographing terminal of the present invention.
- Fig. 6 is a view showing a second embodiment of a photographing terminal of the present invention.
- the execution subject of the embodiment of the present invention may be a photographing terminal, and the photographing terminal may include a terminal having a camera such as a mobile phone or a camera.
- the above-mentioned photographing terminal is merely an example, and is not exhaustive, and includes but is not limited to the above-mentioned photographing terminal.
- FIG. 1 is a schematic flowchart diagram of a first embodiment of a white balance adjustment method according to an embodiment of the present invention.
- a white balance adjustment method described in the embodiment of the present invention includes the following steps:
- the photographing terminal when the photographing terminal needs to take a photograph, the photographing terminal can automatically display the color temperature scale progress bar, or the end user can operate the photographing device, and the photographing device enters the white balance adjustment interface.
- the shooting device enters the white balance adjustment interface, the shooting device can display a variety of white balance adjustment modes for the user to select, including an automatic adjustment mode, a preset environmental mode, and a manual adjustment mode.
- the photographing device can display the color temperature scale progress bar so that the end user can select the desired color temperature value by operating the color temperature scale progress bar, thereby adjusting the white balance of the photographing terminal.
- the range of the color temperature scale progress bar can be preset.
- the range of the color temperature scale progress bar can be preset to 0 to 7000K, or the range of the color temperature scale progress bar can also be preset to 2500K to 8000K, etc. .
- the range of the color temperature scale progress bar can also be preset by the user as needed, and is not limited herein.
- the color temperature scale progress bar may further include a color temperature scale of the preset pitch and a scroll point. Among them, the color temperature scale can be as shown in Fig.
- the color temperature scale can be set to a small scale with a preset pitch of 100K, and the large scale with a preset pitch of 1000K, the small scale and the large scale are respectively displayed with different marks, wherein The mark on the large scale can be more conspicuous, as shown in Fig. 2 on the large scale.
- the position of the scroll point on the color temperature scale progress bar corresponds to the color temperature value, and the end user can move the scroll point to the target position corresponding to the desired color temperature value on the color temperature scale progress bar according to the color temperature scale displayed on the color temperature scale progress bar.
- the operation of the scroll point action may further include directly clicking on a position on the color temperature scale progress bar.
- the photographing terminal can acquire the target position after the scroll point is moved, for example, when the end user drags the scroll point and stops dragging, the photographing terminal acquires the scroll point after being dragged until the stop target location.
- the photographing terminal can obtain the color temperature value of the current external light through the camera, and control the scroll point on the color temperature scale progress bar 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 end user. Read the color temperature value of the current external light from the color temperature scale progress bar.
- the photographing terminal may generate a color temperature scale progress bar according to the current color temperature value of the external light and display a color temperature scale progress bar, wherein the color temperature scale progress bar color temperature scale range
- the value of the color temperature of the current external light may be the center, and the value of the preset interval is the upper and lower limits.
- the color temperature scale range may be (Ct-1000K, Ct+1000K), as shown in Figure 3.
- the photographing terminal may store the correspondence relationship of the position of each scroll point corresponding to each color temperature value on the color temperature scale progress bar in the photographing terminal.
- the target color temperature value corresponding to the target position may be acquired according to the correspondence between the stored scroll point position and the color temperature value.
- the color gain value may include a red gain value R_gain and a blue gain value B_gain, which may be used to adjust the output of the blue component or the red component of the picture.
- the photographing terminal can establish a correspondence relationship between the color temperature value and the color gain value. Specifically, the photographing terminal can establish a corresponding relationship between the scattered irregular color temperature value and the color gain value, for example, establishing a correspondence relationship between the color temperature values of the color temperature values of 2000K, 2400K, 3900K and the color gain value. Or, the shooting terminal can also establish a preset interval. Correspondence between the color temperature value and the color gain value.
- the corresponding relationship between the color temperature value and the color gain value that can be established may be: establishing a color temperature value of 2000K, 2100K, 2200K, 8000K Corresponding relationship with the color gain value, wherein the preset interval may also be other values, and no limitation is imposed here.
- the user can input a corresponding color gain value on the photographing terminal according to different color temperature values, thereby establishing a correspondence relationship between the color temperature value and the color gain.
- the photographing terminal may first determine whether the photographing terminal has a correspondence relationship between the target color temperature value and the color gain value, that is, the color temperature value that the photographing terminal can establish. Whether the correspondence between the target color temperature value and the color gain value is stored in the correspondence with the color gain value is queried. Alternatively, when the photographing terminal establishes a correspondence between the color temperature value of the preset interval and the color gain value, the photographing terminal may determine whether the target color temperature value can be divisible by the preset interval.
- the target color gain value corresponding to the target color temperature value can be obtained in the correspondence between the established color temperature value and the color gain value.
- the photographing terminal can judge the adjacent two color temperature values C1 and C2 of the target color temperature value, wherein the color temperature value establishes a correspondence relationship between the color temperature value and the color gain value. Therefore, the photographing terminal can obtain the color gain values corresponding to the color temperature value C1 according to the two color temperature values C1 and the color temperature value C2 as R_gain1 and B_gain1, and the color gain values corresponding to the color temperature value C2 are R_gain2 and B_gain2.
- the photographing terminal can obtain the weights of the color temperature value C1 and the color temperature value C2, and calculate the color gain values corresponding to the target color temperature values 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.
- the target color temperature value of Ct R_gain Ct W1 * R_gain1 + W2 * R_gain2
- the target color temperature value of Ct B_gain Ct W1 * B_gain1 + W2 * B_gain2.
- the photographing terminal can perform the white balance adjustment by applying the obtained red gain value and the blue gain value of the target color gain value to the red output component and the blue output component, respectively.
- the invention obtains the target position of the scroll point on the preset color temperature scale progress bar, according to the preset Corresponding relationship between the position and the color temperature value, acquiring the target color temperature value corresponding to the target position, and acquiring the target color gain value corresponding to the target color temperature value according to the corresponding relationship between the preset color temperature value and the color gain value, according to
- the target color gain value is white balance adjusted, so that the shooting terminal can perform white balance adjustment at any color temperature value, thereby improving the shooting effect, and the user can also obtain a photo of the desired effect according to his own needs, thereby improving the user experience.
- FIG. 4 is a schematic flowchart diagram of a second embodiment of a white balance adjustment method according to an embodiment of the present invention.
- a white balance adjustment method described in the embodiment of the present invention includes the following steps:
- S200 collect a standard picture illuminated by a light source with a preset color temperature value through a camera.
- the photographing terminal may set the light sources of different color temperature values according to the range of the color temperature scale progress bar, so that the standard pictures illuminated by the light sources with different color temperature values are collected by the camera.
- the threshold range of the color temperature scale progress bar of the shooting terminal is 2000K ⁇ 7000K
- the end 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 by the camera.
- the standard picture illuminated by the light source with color temperature value wherein the standard picture may be RAW format, and the preset color temperature value may be a color temperature value of 200K, such as 2000K, 2100K, 2200K, 2300K, etc., or may be other interval color temperature values, It can also be a random color temperature value.
- the preset color temperature value is 2000K, 2100K, 2200K, 2300K, etc.
- the color temperature value is 100K, that is, the photographing terminal can collect a standard picture under the illumination of the light source value every 100K.
- the standard picture may be a picture taken by the gray card or a picture taken by the white card or a picture taken on a white wall, and is not limited herein.
- the shooting terminal can shoot white or gray cards all over the lens, that is, the FOV is 100%. That is, the shooting terminal takes a picture of the gray card through the camera, wherein the gray card can occupy the picture inside the lens.
- the photographing terminal when the photographing terminal collects the standard picture corresponding to the preset color temperature value, the photographing terminal may acquire the preset reference point, that is, when the photographing terminal collects the standard picture of the gray card, the photographing is performed.
- 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, wherein the white reference point or the gray reference point is a true white reference point or a true gray reference point.
- the photographing terminal After the photographing terminal acquires the preset reference point, the photographing terminal can calculate the color gain value of each picture according to the preset reference point and the collected standard picture.
- the specific implementations of the steps S203, S204, S205, and S206 are performed in the steps S100, S101, S102, and S103 in the first embodiment, and are not described herein again.
- the invention obtains the target color position corresponding to the target position according to the corresponding relationship between the preset position and the color temperature value by acquiring the target position of the scroll point on the preset color temperature scale progress bar, according to the preset color temperature value and Corresponding relationship between the color gain values, obtaining a 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 get the photos of the desired effect according to their needs, improve the user experience.
- FIG. 5 is a structural diagram of a first embodiment of a photographing terminal according to an embodiment of the present invention.
- the photographing terminal described in the embodiment of the present invention includes:
- the first obtaining unit 100 is configured to acquire a target position of the scroll point on the preset color temperature scale progress bar.
- the second acquiring unit 200 is configured to acquire a target color temperature value corresponding to the target location according to a correspondence between the preset position and the color temperature value.
- the third obtaining unit 300 is configured to acquire a target color gain value corresponding to the target color temperature value according to a preset relationship between the preset color temperature value and the color gain value.
- the adjusting unit 400 is configured to perform white balance adjustment according to the target color gain value.
- the photographing terminal when the photographing terminal needs to take a photograph, the photographing terminal can automatically display the color temperature scale progress bar, or the end user can operate the photographing device, and the photographing device enters the white balance adjustment interface.
- the shooting device When the shooting device enters the white balance adjustment interface, the shooting device can display a variety of white balance adjustment modes for the user to select, including an automatic adjustment mode, a preset environmental mode, and a manual adjustment mode.
- the shooting device can display the color temperature scale progress bar so that the end user can pass The color temperature scale progress bar is selected to select the desired color temperature value to adjust the white balance of the shooting terminal.
- the range of the color temperature scale progress bar can be preset.
- the range of the color temperature scale progress bar can be preset to 0 to 7000K, or the range of the color temperature scale progress bar can also be preset to 2500K to 8000K, etc. .
- the range of the color temperature scale progress bar can also be preset by the user as needed, and is not limited herein.
- the color temperature scale progress bar may further include a color temperature scale of the preset pitch and a scroll point. Among them, the color temperature scale can be as shown in Fig.
- the color temperature scale can be set to a small scale with a preset pitch of 100K, and the large scale with a preset pitch of 1000K, the small scale and the large scale are respectively displayed with different marks, wherein The mark on the large scale can be more conspicuous, as shown in Fig. 2 on the large scale.
- the position of the scroll point on the color temperature scale progress bar corresponds to the color temperature value, and the end user can move the scroll point to the target position corresponding to the desired color temperature value on the color temperature scale progress bar according to the color temperature scale displayed on the color temperature scale progress bar.
- the operation of the scroll point action may further include directly clicking on a position on the color temperature scale progress bar.
- the first obtaining unit 100 may obtain the target position after the scroll point is moved, for example, when the end user drags the scroll point and stops dragging, the first acquiring unit 100 acquires the scroll point to be dragged. The target position after the movement until the stop.
- the photographing terminal can obtain the color temperature value of the current external light through the camera, and control the scroll point on the color temperature scale progress bar 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 end user. Read the color temperature value of the current external light from the color temperature scale progress bar.
- the photographing terminal may generate a color temperature scale progress bar according to the current color temperature value of the external light and display a color temperature scale progress bar, wherein the color temperature scale progress bar color temperature scale range
- the value of the color temperature of the current external light may be the center, and the value of the preset interval is the upper and lower limits.
- the color temperature scale range may be ( Ct-1000K, Ct+1000K), as shown in Figure 3.
- the photographing terminal may store the correspondence relationship of the position of each scroll point corresponding to each color temperature value on the color temperature scale progress bar in the photographing terminal.
- the second obtaining unit 200 may acquire the target color temperature value corresponding to the target location according to the correspondence between the stored position of the scroll point and the color temperature value.
- the color gain value may include a red gain value R_gain and a blue gain value B_gain, which may be used to adjust the output of the blue component or the red component of the picture.
- the photographing terminal can establish a correspondence relationship between the color temperature value and the color gain value. Specifically, the photographing terminal can establish a corresponding relationship between the scattered irregular color temperature value and the color gain value, for example, establishing a correspondence relationship between the color temperature values of the color temperature values of 2000K, 2400K, 3900K and the color gain value. Alternatively, the photographing terminal may also establish a correspondence relationship between the color temperature value of the preset interval and the color gain value.
- the corresponding relationship between the color temperature value and the color gain value that can be established may be: establishing a color temperature value of 2000K, 2100K, 2200K, 8000K Corresponding relationship with the color gain value, wherein the preset interval may also be other values, and no limitation is imposed here.
- the user can input a corresponding color gain value on the photographing terminal according to different color temperature values, thereby establishing a correspondence relationship between the color temperature value and the color gain.
- the third obtaining unit 300 may first determine whether the photographing terminal has a correspondence relationship between the target color temperature value and the color gain value. The third obtaining unit 300 can query whether the correspondence between the target color temperature value and the color gain value is stored in the correspondence between the established color temperature value and the color gain value. Alternatively, the third obtaining unit 300 may determine whether the target color temperature value can be divisible by the preset interval when the photographing terminal establishes a correspondence between the color temperature value of the preset interval and the color gain value.
- the third obtaining unit 300 may acquire the target color gain value corresponding to the target color temperature value in the correspondence between the established color temperature value and the color gain value.
- the third obtaining unit 300 may determine two adjacent color temperature values C1 and C2 of the target color temperature value, wherein the color temperature value establishes a correspondence relationship between the color temperature value and the color gain value. Therefore, the third obtaining unit 300 can obtain the color gain values corresponding to the color temperature values C1 according to the two color temperature values C1 and the color temperature values C2, and the color gain values corresponding to the color temperature values C2 are R_gain2 and B_gain2.
- the third obtaining unit 300 may obtain 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.
- the adjusting unit 400 may 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, thereby completing the white balance adjustment.
- the invention obtains the target color position corresponding to the target position according to the corresponding relationship between the preset position and the color temperature value by acquiring the target position of the scroll point on the preset color temperature scale progress bar, according to the preset color temperature value and Corresponding relationship between the color gain values, obtaining a 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 get the photos of the desired effect according to their needs, improve the user experience.
- FIG. 5 is a structural diagram of a first embodiment of a photographing terminal according to an embodiment of the present invention.
- the photographing terminal described in the embodiment of the present invention includes:
- the shooting terminal further includes:
- the collecting unit 500 is configured to collect, by the camera, a standard picture illuminated by a light source of a preset color temperature value.
- the calculating unit 600 is configured to calculate a color gain value according to the standard picture.
- the establishing unit 700 is configured to establish a correspondence between the preset color temperature value and the color gain value.
- the terminal includes:
- a display unit configured to display the color temperature scale progress bar, wherein the color temperature scale progress bar includes a color temperature scale and a scroll point of the preset pitch.
- the first obtaining unit 100 is specifically configured to:
- the target position of the scroll point on the color temperature scale progress bar is identified.
- the terminal includes:
- a measuring unit configured to measure a 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 color temperature value of the current external light.
- the photographing terminal may set the light sources of different color temperature values according to the range of the color temperature scale progress bar, so that the collecting unit 500 collects the standard pictures irradiated by the light sources with different color temperature values through the camera.
- the threshold range of the color temperature scale progress bar of the shooting terminal is 2000K ⁇ 7000K
- the end user can adjust the color temperature value of the light box to a preset color temperature value under the light box with adjustable color temperature, and the collecting unit 500 collects through the camera.
- the color temperature is a standard picture illuminated by a light source with a preset color temperature value, wherein the preset color temperature value may be a color temperature value of 200K, such as 2000K, 2100K, 2200K, 2300K, or may be other interval color temperature values, or may be none The color temperature value of the rule.
- the preset color temperature value is 2000K, 2100K, 2200K, 2300K, etc.
- the color temperature value is 100K, that is, the acquisition unit 500 can collect a standard picture under the illumination of the light source value every 100K.
- the standard picture may be a picture taken by the gray card or a picture taken by the white card or a picture taken on a white wall, and is not limited herein.
- the shooting terminal can shoot white or gray cards all over the lens, that is, the FOV is 100%. That is, the shooting terminal takes a picture of the gray card through the camera, wherein the gray card can occupy the picture inside the lens.
- the calculation unit 600 may acquire the preset reference point, that is, when the collection unit 500 collects the standard picture of the gray card.
- the calculation unit 600 can acquire a white reference point, wherein the white reference point or the gray reference point are all true white reference points. Or a real gray reference point.
- the calculating unit 600 may calculate the color gain value of each picture according to the preset reference point and the collected standard picture.
- the invention obtains the target color position corresponding to the target position according to the corresponding relationship between the preset position and the color temperature value by acquiring the target position of the scroll point on the preset color temperature scale progress bar, according to the preset color temperature value and Corresponding relationship between the color gain values, obtaining a 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 photographing terminal can be made Under the color temperature value, the white balance can be adjusted to improve the shooting effect, and the user can also obtain photos of the desired effect according to his own needs, thereby improving the user experience.
- the storage medium may be a magnetic disk, an optical disk, a read-only memory (ROM), or a random access memory (RAM).
Landscapes
- Engineering & Computer Science (AREA)
- Multimedia (AREA)
- Signal Processing (AREA)
- Processing Of Color Television Signals (AREA)
- Color Television Image Signal Generators (AREA)
Abstract
本发明实施例公开了一种白平衡调整方法,包括:获取滚动点在预置的色温刻度进度条上的目标位置;根据预置的位置与色温值的对应关系,获取所述目标位置所对应的目标色温值;根据预置的色温值与颜色增益值的对应关系,获取所述目标色温值所对应的目标颜色增益值;根据所述目标颜色增益值进行白平衡调整。本发明实施例还公开了一种拍摄终端。采用本发明,使得可使得拍摄终端在任何色温值下均能进行白平衡调整,提升拍摄效果,并且用户还可以根据自身需要获得所需效果的照片,提高用户体验。
Description
本申请要求于2015年7月10日提交中国专利局、申请号为201510408177.X,发明名称为“一种白平衡调整方法和拍摄终端”的中国专利申请的优先权,其全部内容通过引用结合在本申请中。
本发明涉及电子技术,尤其涉及一种白平衡调整方法和拍摄终端。
一般而言,物体反射出的光颜色视光源的色彩而定。人的大脑可以检测并更正类似这样的色彩改变,因此不论是阳光、晴天、阴天、日光灯、荧光灯或钨丝灯下,人的眼睛均可以适应这样的色彩改变,而不会影响人们所看到的白色物体。然而,对拍摄终端而言,这些由不同光源产生的白色在颜色上来说还是不尽相同。例如:钨丝灯照明的环境下拍出的照片可能偏黄,其他环境拍出的照片可能偏蓝。故拍摄终端在拍摄照片时,为提高拍摄效果,往往需进行白平衡调整。
但在目前的白平衡调整方法中,通常是通过预设环境调整模式进行调整白平衡,如在日光灯模式、荧光模式和钨丝模式等有限的预设环境调整模式,但是,在现有的情况下,往往外界光源复杂,如同时存在钨丝光源和荧光灯光源的混合光源,而现有提供的预设环境调整模式无法进行正确的白平衡调整,从而使得用户无法获得满意理想的照片,给用户带来不便。
发明内容
本发明实施例所要解决的技术问题在于,提供一种白平衡调整方法和拍摄终端。可使得拍摄终端在任何色温值下均能进行白平衡调整,提升拍摄效果。
为了解决上述技术问题,本发明实施例提供了一种白平衡调整方法,包括:
获取滚动点在预置的色温刻度进度条上的目标位置;
根据预置的位置与色温值的对应关系,获取所述目标位置所对应的目标色温值;
根据预置的色温值与颜色增益值的对应关系,获取所述目标色温值所对应的目标颜色增益值;
根据所述目标颜色增益值进行白平衡调整。
其中,所述获取滚动点在预置的色温刻度进度条上的目标位置之前包括:
通过摄像头采集在预设色温值的光源照射下的标准图片;
根据所述标准图片计算颜色增益值;
建立所述预设色温值与所述颜色增益值的对应关系。
其中,所述获取滚动点在预置的色温刻度进度条上的目标位置之前包括:
显示所述色温刻度进度条,其中,所述色温刻度进度条包括预设间距的色温刻度和滚动点。
其中,获取滚动点在预置的色温刻度进度条上的目标位置包括:
当终端用户拖动所述滚动点后,识别所述滚动点在所述色温刻度进度条上的目标位置。
其中,所述获取滚动点在预置的色温刻度进度条上的目标位置之前包括:
通过摄像头测量当前外界光线的色温值;
根据所述当前外界光线的色温值生成所述色温刻度进度条。
相应地,本发明实施例还提供了一种拍摄终端,包括:
第一获取单元,用于获取滚动点在预置的色温刻度进度条上的目标位置;
第二获取单元,用于根据预置的位置与色温值的对应关系,获取所述目标位置所对应的目标色温值;
第三获取单元,用于根据预置的色温值与颜色增益值的对应关系,获取所述目标色温值所对应的目标颜色增益值;
调整单元,用于根据所述目标颜色增益值进行白平衡调整。
其中,所述终端包括:
采集单元,用于通过摄像头采集在预设色温值的光源照射下的标准图片;
计算单元,用于根据所述标准图片计算颜色增益值;
建立单元,用于建立所述预设色温值与所述颜色增益值的对应关系。
其中,所述终端包括:
显示单元,用于显示所述色温刻度进度条,其中,所述色温刻度进度条包括预设间距的色温刻度和滚动点。
其中,所述第一获取单元具体用于:
当终端用户拖动所述滚动点后,识别所述滚动点在所述色温刻度进度条上的目标位置。
其中,所述终端包括:
测量单元,用于通过摄像头测量当前外界光线的色温值;
生成单元,用于根据所述当前外界光线的色温值生成所述色温刻度进度条。
实施本发明实施例,具有如下有益效果:
本发明通过获取滚动点在预置的色温刻度进度条上的目标位置,根据预置的位置与色温值的对应关系,获取所述目标位置所对应的目标色温值,根据预置的色温值与颜色增益值的对应关系,获取所述目标色温值所对应的目标颜色增益值,根据所述目标颜色增益值进行白平衡调整,使得可使得拍摄终端在任何色温值下均能进行白平衡调整,提升拍摄效果,并且用户还可以根据自身需要获得所需效果的照片,提高用户体验。
为了更清楚地说明本发明实施例或现有技术中的技术方案,下面将对实施例或现有技术描述中所需要使用的附图作简单地介绍,显而易见地,下面描述中的附图仅仅是本发明的一些实施例,对于本领域普通技术人员来讲,在不付出创造性劳动的前提下,还可以根据这些附图获得其他的附图。
图1是本发明一种白平衡调整方法的第一实施例流程示意图;
图2是本发明实施例提供的一种色温刻度进度条上的色温刻度。
图3是本发明实施例提供的另一种色温刻度进度条上的色温刻度。
图4是本发明一种白平衡调整方法的第二实施例流程示意图;
图5是本发明一种拍摄终端的第一实施结构图;
图6是本发明一种拍摄终端的第二实施结构图。
下面将结合本发明实施例中的附图,对本发明实施例中的技术方案进行清楚、完整地描述,显然,所描述的实施例仅仅是本发明一部分实施例,而不是全部的实施例。基于本发明中的实施例,本领域普通技术人员在没有作出创造性劳动前提下所获得的所有其他实施例,都属于本发明保护的范围。
本发明实施例的执行主体可为拍摄终端,拍摄终端可包括手机、照相机等具有摄像头的终端。其中,上述拍摄终端仅是举例,而非穷举,包含但不限于上述拍摄终端。
参见图1,是本发明实施例提供的一种白平衡调整方法的第一实施例流程示意图。本发明实施例中所描述的一种白平衡调整方法包括步骤:
S100,获取滚动点在预置的色温刻度进度条上的目标位置。
在本发明实施例中,当拍摄终端需进行拍摄照片,拍摄终端可以自动显示色温刻度进度条,或者,终端用户可操作拍摄设备,拍摄设备进入白平衡调整界面。当拍摄设备进入白平衡调整界面时,拍摄设备可显示多种白平衡调整模式供用户选择,包括自动调整模式、预设环境模式和手动调整模式等。当用户选择手动调整模式时,拍摄设备可显示色温刻度进度条,以使终端用户可通过操作色温刻度进度条选择所需的色温值,从而进行调整拍摄终端的白平衡。
在本发明实施例中,色温刻度进度条的范围可以进行预置,例如,色温刻度进度条的范围可以预置为0~7000K,或者色温刻度进度条的范围还可以预置为2500K~8000K等。可选的,色温刻度进度条的范围还可以由用户根据需要进行预置,在此不进行限制。进一步的,在本发明实施例中,色温刻度进度条还可包括预置间距的色温刻度以及滚动点。其中,色温刻度可如图2,色温刻度可设定为以预置间距100K为单位的小刻度,以预置间距1000K为单位的大刻度,小刻度和大刻度分别用不同的标记显示,其中大刻度的标记可更加醒目,如图2中在大刻度上标上色温值。滚动点在色温刻度进度条上的位置对应于色温值,终端用户可根据色温刻度进度条上显示的色温刻度,在色温刻度进度条上操作滚动点移动到所需的色温值相应的目标位置上,其中,操作滚动点动作还可以包括直接点击色温刻度进度条上的某一位置,例如当终端用户点击色温刻度进度条上的某一位置时,则表示终端用户将滚动点拖动至色温刻度进度条
上的该位置上。其中,当滚动点被移动后,拍摄终端可获取滚动点移动后的目标位置,例如:当终端用户拖动滚动点后并停止拖动时,拍摄终端获取滚动点被拖动后直至停止时的目标位置。
进一步的,拍摄终端还可通过摄像头获取当前外界光线的色温值,并根据外界光线的色温值控制色温刻度进度条上的滚动点移至外界光线的色温值对应的目标位置上,以方便终端用户从色温刻度进度条上读取当前外界光线的色温值。
进一步的,当拍摄终端通过摄像头获取当前外界光线的色温值时,拍摄终端可根据当前外界光线的色温值生成色温刻度进度条并显示色温刻度进度条,其中,该色温刻度进度条的色温刻度范围可以是以当前外界光线的色温值为中心,以间隔为预置间隔的数值为上下限值,如当当前外界光线的色温值为Ct时,预置间隔为1000K时,则色温刻度范围可为(Ct-1000K,Ct+1000K),如图3所示。从而使得终端用户可更精准地进行手动白平衡调整,获得终端用户所需的摄影作品。其中,终端用户可通过按键或屏幕操作选择终端是获取当前外界光线的色温值进行白平衡调整还是由用户进行手动输入色温值进行白平衡调整。
S101,根据预置的位置与色温值的对应关系,获取所述目标位置所对应的目标色温值。
在本发明实施例中,拍摄终端可将色温刻度进度条上的每个色温值对应的每个滚动点的位置的对应关系存储在拍摄终端中。拍摄终端获取到目标位置时,可根据存储的滚动点的位置与色温值的对应关系,获取目标位置对应的目标色温值。
S102,根据预置的色温值与颜色增益值的对应关系,获取所述目标色温值所对应的目标颜色增益值。
在本发明实施例中,颜色增益值可包括红色增益值R_gain和蓝色增益值B_gain,该颜色增益值可用于调整图片的蓝色分量或红色分量的输出。其中,拍摄终端可建立色温值与颜色增益值的对应关系。具体的,拍摄终端可建立零散无规律的色温值与颜色增益值的对应关系,如,建立色温值为2000K,2400K,3900K等色温值与颜色增益值的对应关系。或者,拍摄终端还可建立预置间隔
的色温值与颜色增益值的对应关系。如:若预置间隔为100K,起始色温值为2000K,截止色温值为8000K,则可建立的色温值与颜色增益值的对应关系可以是:建立色温值为2000K,2100K,2200K……8000K与颜色增益值的对应关系,其中,预置间隔还可是其他数值,在此不进行限制。用户可根据不同的色温值在拍摄终端上输入对应的颜色增益值,从而建立色温值与颜色增益的对应关系。
在本发明实施例中,当终端获取到目标色温值进行调整白平衡时,拍摄终端可首先判断拍摄终端是否有建立目标色温值与颜色增益值的对应关系,即拍摄终端可在建立的色温值与颜色增益值的对应关系中查询是否存储有该目标色温值与颜色增益值的对应关系。或者还可以是,当拍摄终端是建立预置间隔的色温值与颜色增益值的对应关系时,拍摄终端可判断目标色温值是否能够被预置间隔整除。当可以被预置间隔整除时,则可以在建立的色温值与颜色增益值的对应关系获取目标色温值对应的目标颜色增益值。当不可以被预置间隔整除时,拍摄终端可判断目标色温值的相邻的两个色温值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_gain Ct=W1*R_gain1+W2*R_gain2,目标色温值Ct的B_gain Ct=W1*B_gain1+W2*B_gain2。从而获得目标色温值Ct的颜色增益值B_gain Ct和R_gain Ct。
S103,根据所述目标颜色增益值进行白平衡调整。
拍摄终端可将获得的目标颜色增益值的红色增益值和蓝色增益值分别作用在红色输出分量和蓝色输出分量上,从而完成白平衡调节。
本发明通过获取滚动点在预置的色温刻度进度条上的目标位置,根据预置
的位置与色温值的对应关系,获取所述目标位置所对应的目标色温值,根据预置的色温值与颜色增益值的对应关系,获取所述目标色温值所对应的目标颜色增益值,根据所述目标颜色增益值进行白平衡调整,使得可使得拍摄终端在任何色温值下均能进行白平衡调整,提升拍摄效果,并且用户还可以根据自身需要获得所需效果的照片,提高用户体验。
参见图4,是本发明实施例提供的一种白平衡调整方法的第二实施例流程示意图。本发明实施例中所描述的一种白平衡调整方法包括步骤:
S200,通过摄像头采集在预设色温值的光源照射下的标准图片。
在本发明实施例中,拍摄终端可以根据色温刻度进度条的范围,设置不同的色温值的光源,从而通过摄像头采集在不同的色温值的光源照射下的标准图片。如:当拍摄终端的色温刻度进度条的阈值范围为2000K~7000K时,终端用户可在可调节色温的灯箱下,将灯箱色温值调节为预设的色温值,并通过摄像头采集在色温为预设色温值的光源照射下的标准图片,其中,标准图片可以是RAW格式,预设色温值可以是2000K,2100K,2200K,2300K等间隔100K的色温值,或者也可以是其他间隔的色温值,还可以是无规则的色温值。当预设色温值是2000K,2100K,2200K,2300K等间隔100K的色温值时,即是,拍摄终端可以在每隔100K的色温值的光源照射下采集一张标准图片。其中,标准图片可以是对灰卡进行拍摄的图片或对白卡进行拍摄的图片或对白色墙体进行拍摄的图片等,在此不进行限制。拍摄终端可全镜头进行拍摄白卡或灰卡等,即FOV为100%。即是,拍摄终端通过摄像头对灰卡进行拍照,其中,灰卡可占据镜头内画面。
S201,根据所述标准图片计算颜色增益值。
在本发明实施例中,当拍摄终端采集了预设的色温值对应的标准图片时,拍摄终端可获取预置的参考点,即是,当拍摄终端采集的是灰卡的标准图片时,拍摄终端可获取灰色参考点;当拍摄终端采集的是白卡的标准图片时,拍摄终端可获取白色参考点,其中,白色参考点或灰色参考点均为真正白色的参考点或真正灰色的参考点。当拍摄终端获取预置的参考点后,拍摄终端可根据预置参考点和采集到的标准图片计算出每张图片的颜色增益值。
S202,建立所述预设色温值与所述颜色增益值的对应关系。
S203,获取滚动点在预置的色温刻度进度条上的目标位置。
S204,根据预置的位置与色温值的对应关系,获取所述目标位置所对应的目标色温值;
S205,根据预置的色温值与颜色增益值的对应关系,获取所述目标色温值所对应的目标颜色增益值。
S206,根据所述目标颜色增益值进行白平衡调整。
在本发明实施例中,步骤S203、步骤S204、步骤S205和步骤S206的具体实施方式课参加实施例一中的步骤S100、步骤S101、步骤S102和步骤S103,在此不再进行赘述。
本发明通过获取滚动点在预置的色温刻度进度条上的目标位置,根据预置的位置与色温值的对应关系,获取所述目标位置所对应的目标色温值,根据预置的色温值与颜色增益值的对应关系,获取所述目标色温值所对应的目标颜色增益值,根据所述目标颜色增益值进行白平衡调整,使得可使得拍摄终端在任何色温值下均能进行白平衡调整,提升拍摄效果,并且用户还可以根据自身需要获得所需效果的照片,提高用户体验。
参见图5,是本发明实施例提供的一种拍摄终端的第一实施例结构图。本发明实施例中所描述的拍摄终端,包括:
第一获取单元100,用于获取滚动点在预置的色温刻度进度条上的目标位置。
第二获取单元200,用于根据预置的位置与色温值的对应关系,获取所述目标位置所对应的目标色温值。
第三获取单元300,用于根据预置的色温值与颜色增益值的对应关系,获取所述目标色温值所对应的目标颜色增益值。
调整单元400,用于根据所述目标颜色增益值进行白平衡调整。
在本发明实施例中,当拍摄终端需进行拍摄照片,拍摄终端可以自动显示色温刻度进度条,或者,终端用户可操作拍摄设备,拍摄设备进入白平衡调整界面。当拍摄设备进入白平衡调整界面时,拍摄设备可显示多种白平衡调整模式供用户选择,包括自动调整模式、预设环境模式和手动调整模式等。当用户选择手动调整模式时,拍摄设备可显示色温刻度进度条,以使终端用户可通过
操作色温刻度进度条选择所需的色温值,从而进行调整拍摄终端的白平衡。
在本发明实施例中,色温刻度进度条的范围可以进行预置,例如,色温刻度进度条的范围可以预置为0~7000K,或者色温刻度进度条的范围还可以预置为2500K~8000K等。可选的,色温刻度进度条的范围还可以由用户根据需要进行预置,在此不进行限制。进一步的,在本发明实施例中,色温刻度进度条还可包括预置间距的色温刻度以及滚动点。其中,色温刻度可如图2,色温刻度可设定为以预置间距100K为单位的小刻度,以预置间距1000K为单位的大刻度,小刻度和大刻度分别用不同的标记显示,其中大刻度的标记可更加醒目,如图2中在大刻度上标上色温值。滚动点在色温刻度进度条上的位置对应于色温值,终端用户可根据色温刻度进度条上显示的色温刻度,在色温刻度进度条上操作滚动点移动到所需的色温值相应的目标位置上,其中,操作滚动点动作还可以包括直接点击色温刻度进度条上的某一位置,例如当终端用户点击色温刻度进度条上的某一位置时,则表示终端用户将滚动点拖动至色温刻度进度条上的该位置上。其中,当滚动点被移动后,第一获取单元100可获取滚动点移动后的目标位置,例如:当终端用户拖动滚动点后并停止拖动时,第一获取单元100获取滚动点被拖动后直至停止时的目标位置。
进一步的,拍摄终端还可通过摄像头获取当前外界光线的色温值,并根据外界光线的色温值控制色温刻度进度条上的滚动点移至外界光线的色温值对应的目标位置上,以方便终端用户从色温刻度进度条上读取当前外界光线的色温值。
进一步的,当拍摄终端通过摄像头获取当前外界光线的色温值时,拍摄终端可根据当前外界光线的色温值生成色温刻度进度条并显示色温刻度进度条,其中,该色温刻度进度条的色温刻度范围可以是以当前外界光线的色温值为中心,以间隔为预置间隔的数值为上下限值,如当前外界光线的色温值为Ct时,预置间隔为1000K时,则色温刻度范围可为(Ct-1000K,Ct+1000K),如图3所示。从而使得终端用户可更精准地进行手动白平衡调整,获得终端用户所需的摄影作品。其中,终端用户可通过按键或屏幕操作选择终端是获取当前外界光线的色温值进行白平衡调整还是由用户进行手动输入色温值进行白平衡调整。
在本发明实施例中,拍摄终端可将色温刻度进度条上的每个色温值对应的每个滚动点的位置的对应关系存储在拍摄终端中。当获取到目标位置时,第二获取单元200可根据存储的滚动点的位置与色温值的对应关系,获取目标位置对应的目标色温值。
在本发明实施例中,颜色增益值可包括红色增益值R_gain和蓝色增益值B_gain,该颜色增益值可用于调整图片的蓝色分量或红色分量的输出。其中,拍摄终端可建立色温值与颜色增益值的对应关系。具体的,拍摄终端可建立零散无规律的色温值与颜色增益值的对应关系,如,建立色温值为2000K,2400K,3900K等色温值与颜色增益值的对应关系。或者,拍摄终端还可建立预置间隔的色温值与颜色增益值的对应关系。如:若预置间隔为100K,起始色温值为2000K,截止色温值为8000K,则可建立的色温值与颜色增益值的对应关系可以是:建立色温值为2000K,2100K,2200K……8000K与颜色增益值的对应关系,其中,预置间隔还可是其他数值,在此不进行限制。用户可根据不同的色温值在拍摄终端上输入对应的颜色增益值,从而建立色温值与颜色增益的对应关系。
在本发明实施例中,当第二获取单元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_gain Ct=W1*R_gain1+W2*R_gain2,目标色温值Ct的B_gain Ct=W1*B_gain1+W2*B_gain2。从而第三获取单元300获得目标色温值Ct的颜色增益值B_gain Ct和R_gain Ct。
调整单元400可将获得的目标颜色增益值的红色增益值和蓝色增益值分别作用在红色输出分量和蓝色输出分量上,从而完成白平衡调节。
本发明通过获取滚动点在预置的色温刻度进度条上的目标位置,根据预置的位置与色温值的对应关系,获取所述目标位置所对应的目标色温值,根据预置的色温值与颜色增益值的对应关系,获取所述目标色温值所对应的目标颜色增益值,根据所述目标颜色增益值进行白平衡调整,使得可使得拍摄终端在任何色温值下均能进行白平衡调整,提升拍摄效果,并且用户还可以根据自身需要获得所需效果的照片,提高用户体验。
参见图5,是本发明实施例提供的一种拍摄终端的第一实施例结构图。本发明实施例中所描述的拍摄终端,包括:
第一获取单元100、第二获取单元200、第三获取单元300和调整单元400。
其中,所述拍摄终端还包括:
采集单元500,用于通过摄像头采集在预设色温值的光源照射下的标准图片。
计算单元600,用于根据所述标准图片计算颜色增益值。
建立单元700,用于建立所述预设色温值与所述颜色增益值的对应关系。
其中,所述终端包括:
显示单元,用于显示所述色温刻度进度条,其中,所述色温刻度进度条包括预设间距的色温刻度和滚动点。
其中,所述第一获取单元100具体用于:
当终端用户拖动所述滚动点后,识别所述滚动点在所述色温刻度进度条上的目标位置。
其中,所述终端包括:
测量单元,用于通过摄像头测量当前外界光线的色温值;
生成单元,用于根据所述当前外界光线的色温值生成所述色温刻度进度条。
在本发明实施例中,拍摄终端可以根据色温刻度进度条的范围,设置不同的色温值的光源,从而采集单元500通过摄像头采集在不同的色温值的光源照射下的标准图片。如:当拍摄终端的色温刻度进度条的阈值范围为2000K~7000K时,终端用户可在可调节色温的灯箱下,将灯箱色温值调节为预设的色温值,并采集单元500通过摄像头采集在色温为预设色温值的光源照射下的标准图片,其中,预设色温值可以是2000K,2100K,2200K,2300K等间隔100K的色温值,或者也可以是其他间隔的色温值,还可以是无规则的色温值。当预设色温值是2000K,2100K,2200K,2300K等间隔100K的色温值时,即是,采集单元500可以在每隔100K的色温值的光源照射下采集一张标准图片。其中,标准图片可以是对灰卡进行拍摄的图片或对白卡进行拍摄的图片或对白色墙体进行拍摄的图片等,在此不进行限制。拍摄终端可全镜头进行拍摄白卡或灰卡等,即FOV为100%。即是,拍摄终端通过摄像头对灰卡进行拍照,其中,灰卡可占据镜头内画面。
在本发明实施例中,当采集单元500采集了预设的色温值对应的标准图片时,计算单元600可获取预置的参考点,即是,当采集单元500采集的是灰卡的标准图片时,计算单元600可获取灰色参考点;当采集单元500采集的是白卡的标准图片时,计算单元600可获取白色参考点,其中,白色参考点或灰色参考点均为真正白色的参考点或真正灰色的参考点。当计算单元600获取预置的参考点后,计算单元600可根据预置参考点和采集到的标准图片计算出每张图片的颜色增益值。
其中,可以理解的是,本实施例的各功能模块的功能还可根据参照上述实施例的相关描述,此处不再进行赘述。
本发明通过获取滚动点在预置的色温刻度进度条上的目标位置,根据预置的位置与色温值的对应关系,获取所述目标位置所对应的目标色温值,根据预置的色温值与颜色增益值的对应关系,获取所述目标色温值所对应的目标颜色增益值,根据所述目标颜色增益值进行白平衡调整,使得可使得拍摄终端在任
何色温值下均能进行白平衡调整,提升拍摄效果,并且用户还可以根据自身需要获得所需效果的照片,提高用户体验。
本领域普通技术人员可以理解实现上述实施例方法中的全部或部分流程,是可以通过计算机程序来指令相关的硬件来完成,所述的程序可存储于一计算机可读取存储介质中,该程序在执行时,可包括如上述各方法的实施例的流程。其中,所述的存储介质可为磁碟、光盘、只读存储记忆体(Read-Only Memory,ROM)或随机存储记忆体(Random Access Memory,RAM)等。
以上所揭露的仅为本发明较佳实施例而已,当然不能以此来限定本发明之权利范围,因此依本发明权利要求所作的等同变化,仍属本发明所涵盖的范围。
Claims (10)
- 一种白平衡调整方法,其特征在于,所述方法包括:获取滚动点在预置的色温刻度进度条上的目标位置;根据预置的位置与色温值的对应关系,获取所述目标位置所对应的目标色温值;根据预置的色温值与颜色增益值的对应关系,获取所述目标色温值所对应的目标颜色增益值;根据所述目标颜色增益值进行白平衡调整。
- 如权利要求1所述方法,其特征在于,所述获取滚动点在预置的色温刻度进度条上的目标位置之前包括:通过摄像头采集在预设色温值的光源照射下的标准图片;根据所述标准图片计算颜色增益值;建立所述预设色温值与所述颜色增益值的对应关系。
- 如权利要求1所述的方法,其特征在于,所述获取滚动点在预置的色温刻度进度条上的目标位置之前包括:显示所述色温刻度进度条,其中,所述色温刻度进度条包括预设间距的色温刻度和滚动点。
- 如权利要求3所述的方法,其特征在于,获取滚动点在预置的色温刻度进度条上的目标位置包括:当终端用户拖动所述滚动点后,识别所述滚动点在所述色温刻度进度条上的目标位置。
- 如权利要求1所述的方法,其特征在于,所述获取滚动点在预置的色温刻度进度条上的目标位置之前包括:通过摄像头测量当前外界光线的色温值;根据所述当前外界光线的色温值生成所述色温刻度进度条。
- 一种拍摄终端,其特征在于,所述终端包括:第一获取单元,用于获取滚动点在预置的色温刻度进度条上的目标位置;第二获取单元,用于根据预置的位置与色温值的对应关系,获取所述目标位置所对应的目标色温值;第三获取单元,用于根据预置的色温值与颜色增益值的对应关系,获取所述目标色温值所对应的目标颜色增益值;调整单元,用于根据所述目标颜色增益值进行白平衡调整。
- 如权利要求6所述终端,其特征在于,所述终端包括:采集单元,用于通过摄像头采集在预设色温值的光源照射下的标准图片;计算单元,用于根据所述标准图片计算颜色增益值;建立单元,用于建立所述预设色温值与所述颜色增益值的对应关系。
- 如权利要求6所述的终端,其特征在于,所述终端包括:显示单元,用于显示所述色温刻度进度条,其中,所述色温刻度进度条包括预设间距的色温刻度和滚动点。
- 如权利要求8所述的终端,其特征在于,所述第一获取单元具体用于:当终端用户拖动所述滚动点后,识别所述滚动点在所述色温刻度进度条上的目标位置。
- 如权利要求6所述的终端,其特征在于,所述终端包括:测量单元,用于通过摄像头测量当前外界光线的色温值;生成单元,用于根据所述当前外界光线的色温值生成所述色温刻度进度条。
Applications Claiming Priority (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN201510408177.X | 2015-07-10 | ||
| CN201510408177.XA CN105554489A (zh) | 2015-07-10 | 2015-07-10 | 一种白平衡调整方法和拍摄终端 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2017008351A1 true WO2017008351A1 (zh) | 2017-01-19 |
Family
ID=55833400
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/CN2015/085882 Ceased WO2017008351A1 (zh) | 2015-07-10 | 2015-07-31 | 一种白平衡调整方法和拍摄终端 |
Country Status (2)
| Country | Link |
|---|---|
| CN (1) | CN105554489A (zh) |
| WO (1) | WO2017008351A1 (zh) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107610098A (zh) * | 2017-08-17 | 2018-01-19 | 努比亚技术有限公司 | 一种awb算法的评估方法、移动终端及计算机可存储介质 |
Families Citing this family (14)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107045416A (zh) * | 2017-04-07 | 2017-08-15 | 广东欧珀移动通信有限公司 | 色温调节方法、装置以及显示设备 |
| CN107360410A (zh) * | 2017-07-10 | 2017-11-17 | 广东欧珀移动通信有限公司 | 白平衡控制方法、装置和终端设备 |
| CN111492653B (zh) * | 2017-09-30 | 2023-06-16 | 深圳传音通讯有限公司 | 相机白平衡快速调整方法、装置及计算机可读存储介质 |
| CN108280857A (zh) * | 2017-12-28 | 2018-07-13 | 努比亚技术有限公司 | 摄像头参数配置方法、移动终端及计算机可读存储介质 |
| CN110555443B (zh) * | 2018-06-01 | 2022-05-20 | 杭州海康威视数字技术股份有限公司 | 颜色分类方法、装置及存储介质 |
| CN108877733B (zh) * | 2018-06-04 | 2020-04-21 | Oppo广东移动通信有限公司 | 色温调节方法及相关装置 |
| CN109068116B (zh) * | 2018-08-31 | 2021-01-22 | 青岛海信移动通信技术股份有限公司 | 基于补光的图像处理方法、装置、移动终端和存储介质 |
| CN109618146A (zh) * | 2018-12-05 | 2019-04-12 | 维沃移动通信有限公司 | 一种图像处理方法及终端设备 |
| CN114664273A (zh) * | 2020-12-23 | 2022-06-24 | 深圳Tcl数字技术有限公司 | 一种色温调节方法、装置、终端设备及存储介质 |
| WO2023240444A1 (zh) * | 2022-06-14 | 2023-12-21 | 北京小米移动软件有限公司 | 一种图像的处理方法、装置及存储介质 |
| WO2024092426A1 (zh) * | 2022-10-31 | 2024-05-10 | 北京小米移动软件有限公司 | 一种白平衡增益的补偿方法、装置及电子设备 |
| CN115914602B (zh) * | 2022-11-28 | 2025-01-17 | 峰米(重庆)创新科技有限公司 | 白平衡调整方法、装置、计算机设备和存储介质 |
| CN116467332A (zh) * | 2023-03-22 | 2023-07-21 | 峰米(北京)科技有限公司 | 白平衡调整方法、装置、计算机设备和存储介质 |
| CN118175274B (zh) * | 2024-05-15 | 2024-09-06 | 福思(杭州)智能科技有限公司 | 图像处理方法、装置和存储介质及电子设备 |
Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20030146984A1 (en) * | 2002-02-05 | 2003-08-07 | Norihiro Sakaguchi | Image device having a selectively adapted white balance control |
| CN1202491C (zh) * | 2000-12-28 | 2005-05-18 | 金宝电子工业股份有限公司 | 数字影像撷取装置的白平衡处理方法 |
| US20050128316A1 (en) * | 2003-12-12 | 2005-06-16 | Canon Kabushiki Kaisha | Image processing system |
| CN101039439A (zh) * | 2007-04-23 | 2007-09-19 | 北京中星微电子有限公司 | 一种实现白平衡校正的方法及装置 |
| CN104168468A (zh) * | 2013-11-08 | 2014-11-26 | 深圳市中兴移动通信有限公司 | 白平衡调整方法和装置 |
Family Cites Families (6)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| JP4366966B2 (ja) * | 2003-03-13 | 2009-11-18 | 株式会社ニコン | ホワイトバランス調整回路 |
| CN100579243C (zh) * | 2006-11-27 | 2010-01-06 | 北京中星微电子有限公司 | 一种校正白平衡的方法和系统 |
| JP2009105579A (ja) * | 2007-10-22 | 2009-05-14 | Sony Corp | 色信号処理回路、撮像装置及び色信号処理方法 |
| CN101600121B (zh) * | 2008-06-03 | 2011-03-23 | 亚洲光学股份有限公司 | 一种白平衡修正值的计算方法 |
| KR20100066855A (ko) * | 2008-12-10 | 2010-06-18 | 삼성전자주식회사 | 촬상 장치 및 촬상 방법 |
| CN104427317A (zh) * | 2013-08-26 | 2015-03-18 | 联想(北京)有限公司 | 一种图像采集方法和电子设备 |
-
2015
- 2015-07-10 CN CN201510408177.XA patent/CN105554489A/zh active Pending
- 2015-07-31 WO PCT/CN2015/085882 patent/WO2017008351A1/zh not_active Ceased
Patent Citations (5)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN1202491C (zh) * | 2000-12-28 | 2005-05-18 | 金宝电子工业股份有限公司 | 数字影像撷取装置的白平衡处理方法 |
| US20030146984A1 (en) * | 2002-02-05 | 2003-08-07 | Norihiro Sakaguchi | Image device having a selectively adapted white balance control |
| US20050128316A1 (en) * | 2003-12-12 | 2005-06-16 | Canon Kabushiki Kaisha | Image processing system |
| CN101039439A (zh) * | 2007-04-23 | 2007-09-19 | 北京中星微电子有限公司 | 一种实现白平衡校正的方法及装置 |
| CN104168468A (zh) * | 2013-11-08 | 2014-11-26 | 深圳市中兴移动通信有限公司 | 白平衡调整方法和装置 |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN107610098A (zh) * | 2017-08-17 | 2018-01-19 | 努比亚技术有限公司 | 一种awb算法的评估方法、移动终端及计算机可存储介质 |
| CN107610098B (zh) * | 2017-08-17 | 2020-09-01 | 努比亚技术有限公司 | 一种awb算法的评估方法、移动终端及计算机可存储介质 |
Also Published As
| Publication number | Publication date |
|---|---|
| CN105554489A (zh) | 2016-05-04 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| WO2017008351A1 (zh) | 一种白平衡调整方法和拍摄终端 | |
| Pierson et al. | Tutorial: luminance maps for daylighting studies from high dynamic range photography | |
| US11729518B2 (en) | Systems and methods for digital photography | |
| CN104580878B (zh) | 电子装置以及自动决定影像效果的方法 | |
| JP6368361B2 (ja) | ホワイトバランス調整方法および装置 | |
| Jakubiec et al. | Accurate measurement of daylit interior scenes using high dynamic range photography | |
| CN104320642B (zh) | 一种图片处理的方法及装置 | |
| CN103227928B (zh) | 白平衡的调整方法及装置 | |
| CN101957988B (zh) | 获得图像灰度点概率分布的方法、装置及白平衡方法、装置 | |
| US20160148428A1 (en) | Cutout Object Merge | |
| JP2017537578A (ja) | 高ダイナミックレンジ画像のためのシステムおよび方法 | |
| Ismail et al. | Development of a webcam based lux meter | |
| CN104394329B (zh) | 一种拍照方法、装置及移动终端 | |
| CN103969029B (zh) | 一种基于数码相机的眩光简易测试方法 | |
| Pierson et al. | Luminance maps from High Dynamic Range imaging: calibrations and adjustments for visual comfort assessment | |
| CN108337448B (zh) | 高动态范围图像获取方法、装置、终端设备及存储介质 | |
| CN106791760B (zh) | 用于相机的色温检测、调节白平衡的方法、装置及相机 | |
| JP6439531B2 (ja) | 色処理装置、色処理システムおよびプログラム | |
| EP3442218A1 (en) | Imaging apparatus and control method for outputting images with different input/output characteristics in different regions and region information, client apparatus and control method for receiving images with different input/output characteristics in different regions and region information and displaying the regions in a distinguishable manner | |
| Kamath et al. | Prediction of illuminance on the work plane using low dynamic unprocessed image data | |
| JP2019033470A (ja) | 画像処理システム、撮像装置、画像処理装置、制御方法およびプログラム | |
| CN104268906B (zh) | 基于摄像的用于颜料调色的系统及方法 | |
| Pierson et al. | Luminance maps from High Dynamic Range imaging: photometric, radiometric and geometric calibrations | |
| CN117425080B (zh) | 拍照方法及相关设备 | |
| CN117119315A (zh) | 图像处理方法及系统、电子设备及可读存储介质 |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 15898078 Country of ref document: EP Kind code of ref document: A1 |
|
| NENP | Non-entry into the national phase |
Ref country code: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 15898078 Country of ref document: EP Kind code of ref document: A1 |