Method and system for adjusting white balance, and display
11457188 · 2022-09-27
Inventors
Cpc classification
G09G2320/0666
PHYSICS
G09G2320/08
PHYSICS
G09G2320/103
PHYSICS
H04N23/88
ELECTRICITY
International classification
Abstract
The invention discloses a method and system for adjusting white balance, and a display, and belongs to the technical field of display. The method for adjusting the white balance is applied to the display, and comprises the following steps: identifying image information of a currently played frame image to be adjusted; obtaining a matched target color temperature value according to the image information; and adjusting a white balance parameter of the frame image to be adjusted according to the target color temperature value. According to the method disclosed by the invention, by identifying the image information of the currently played frame image to be adjusted, and obtaining the matched target color temperature value according to the image information, the white balance parameter of the frame image to be adjusted is automatically adjusted according to the target color temperature value, the purpose of correspondingly adjusting the white balance parameter of the currently played frame image contents in real time can be achieved, so that the sense of tableau of the image is more realistic, and the visual effect is enhanced.
Claims
1. A method for adjusting white balance, which is applied to a display, and which comprises the following steps: identifying image information of a currently played frame image to be adjusted; obtaining a matched target color temperature value according to the image information; and adjusting a white balance parameter of the frame image to be adjusted according to the target color temperature value: wherein the step of identifying image information of the currently played frame image to be adjusted comprises: dividing the currently played frame image to be adjusted into a preset number of image blocks; obtaining a target number of white blocks with the largest proportion of the color temperature value among the preset number of image blocks; and obtaining a target number of color blocks with the largest proportion of the color temperature value of the color blocks among the preset number of image blocks according to the number of the color blocks corresponding to each preset color temperature value.
2. The method for adjusting white balance of claim 1, wherein the step of obtaining a target number of white blocks with the largest proportion of the color temperature value among the preset number of image blocks comprises: generating a three-dimensional curve for the white balance color temperature according to the white balance parameters of the display under at least three color temperature values; calculating a mean value of components of each white block in a RGB channel, and obtaining a color temperature value of each white block according to the mean value of the component of the white block in the RGB channel and the three-dimensional curve for the white balance color temperature; and counting the number of the white blocks corresponding to each color temperature value in the preset number of image blocks according to the color temperature value corresponding to each white block, to obtain a target number of white blocks with the largest proportion of the color temperature value.
3. The method for adjusting white balance of claim 2, wherein the step of generating a three-dimensional curve for the white balance color temperature according to the white balance parameters of the display under at least three color temperature values comprises: obtaining a red gain and a blue gain of the display at each color temperature value; and generating a three-dimensional curve for the white balance color temperature by using an interpolation method, according to the red gain and the blue gain corresponding to each color temperature value.
4. The method for adjusting white balance of claim 1, wherein the step of obtaining a matched target color temperature value according to the image information comprises: comparing the target number of the white blocks and the target number of the color blocks, to obtain a color temperature value corresponding to image blocks whose target number is greater than that of the remaining image blocks, and the color temperature value refers to the target color temperature value.
5. A system for adjusting white balance, which is applied to a display, and which comprises: an identifying unit for identifying image information of a currently played frame image to be adjusted; an obtaining unit for obtaining a matched target color temperature value according to the image information; and an adjusting unit for adjusting a white balance parameter of the frame image to be adjusted according to the target color temperature value; wherein the identifying unit comprises: a division unit for dividing the currently played frame image to be adjusted into a preset number of image blocks; a first obtaining module for obtaining a target number of white blocks with the largest proportion of the color temperature value among the preset number of image blocks; and a second obtaining module for obtaining a target number of color blocks with the largest proportion of the color temperature value of the color blocks among the preset member of image blocks according to the number of the color blocks corresponding to a preset color temperature value.
6. The system for adjusting white balance of claim 5, wherein the first obtaining module is configured to generate a three-dimensional curve for the white balance color temperature according to the white balance parameters of the display under at least three color temperature values; the first obtaining module is further configured to calculate a mean value of components of each white block in a RGB channel, and obtaining a color temperature value of each white block according to the mean value of the component of the white block in the RGB channel and the three-dimensional curve for the white balance color temperature; and the first obtaining module is further configured to count the number of the white blocks corresponding to each color temperature value in the preset number of image blocks according to the color temperature value corresponding to each white block, to obtain a target number of white blocks with the largest proportion of the color temperature value.
7. The system for adjusting white balance of claim 5, wherein the obtaining unit is configured to compare the target number of the white blocks and the target number of the color blocks, to obtain a color temperature value corresponding to image blocks whose target number is greater than that of the remaining image blocks, and the color temperature value refers to the target color temperature value.
8. A display comprising the system for adjusting white balance of claim 5, or 6, or 7.
Description
BRIEF DESCRIPTION OF THE DRAWINGS
(1) The accompanying drawings, together with the specification, illustrate exemplary embodiments of the present disclosure, and, together with the description, serve to explain the principles of the present invention.
(2)
(3)
DETAILED DESCRIPTION
(4) The technical solution set forth in the embodiments of the present invention will now be described clearly and fully hereinafter with reference to the accompanying drawings of the embodiments of the present invention. Obviously, such embodiments provided in the present invention are only part of the embodiments instead of all embodiments. It should be understood that all the other embodiments obtained from the embodiments set forth in the present invention by one skilled in the art without any creative work fall within the scope of the present invention.
(5) Notably, the embodiments set forth in the present invention and features of the embodiments may be combined in any suitable manner.
(6) The present invention will be described hereinafter with reference to the accompanying drawings and particular embodiments, but the invention is not limited thereto.
(7) As shown in
(8) Step S1, identifying image information of a currently played frame image to be adjusted;
(9) Step S2, obtaining a matched target color temperature value according to the image information; and
(10) Step S3, adjusting a white balance parameter of the frame image to be adjusted according to the target color temperature value.
(11) It should be noted that the method for adjusting white balance can be applied to a display, but can also be applied to a TV.
(12) In this embodiment, by identifying the image information of the currently played frame image to be adjusted, and obtaining the matched. target color temperature value according to the image information, the white balance parameter of the frame image to be adjusted is automatically adjusted according to the target color temperature value, the purpose of correspondingly adjusting the white balance parameter of the currently played frame image contents in real time can be achieved, so that the sense of tableau of the image is more realistic, and the visual effect is enhanced.
(13) In a preferred embodiment, the Step S1 of identifying image information of the currently played frame image to be adjusted comprises:
(14) S11, dividing the currently played frame image to be adjusted into a preset number of image blocks to obtain a color temperature value for each block of image; S12, obtaining a target number of white blocks with the largest proportion of the color temperature value among the preset number of image blocks.
(15) The following description is intended for purposes of illustration only and is not intended to limit the scope of the invention, the frame image to be adjusted is segmented by using the local dimming technique.
(16) In a preferred embodiment, the Step S12 of obtaining a target number of white blocks with the largest proportion of the color temperature value among the preset number of image blocks comprises:
(17) generating a three-dimensional curve for the white balance color temperature according to the white balance parameters of the display under at least three color temperature values, comprising:
(18) obtaining a red gain and a blue gain of the display at each color temperature value;
(19) generating a three-dimensional curve for the white balance color temperature by using an interpolation method, according to the red gain and the blue gain corresponding to each color temperature value.
(20) In this embodiment, given that size, resolution, brightness and chromaticity and other factors of the TVs may be different, each TV has its own white balance parameters. Common white balance parameters used in the TVs are listed as follows: R (Red) gain, G (Green) gain, B (Blue) gain, R offset, U offset, and B offset. Since offset, one of the white balance parameters, has small impact on the white balance, the offset can be set to a default value by using the gain. G has a greater effect on the brightness, so the white balance parameters are adjusted by adjusting R and B.
(21) The following description is intended for purposes of illustration only and is not intended to limit the scope of the invention, obtaining the values of the white balance parameters, R gain and B gain of the TV at the seven color temperatures of 6500/7500/8500/9300/1000/11000/12000 to obtain 7 sets of correction parameters (i.e, R gain, B gain), the 7 sets of correction parameters obtain a white balance color temperature three-dimensional curve through an interpolation method. The white balance color temperature three-dimensional curve consists of the R gain, the B gain, and the color temperature.
(22) calculating a mean value of components of each white block in a RGB channel, and obtaining a color temperature value of each white block according to the mean value of the component of the white block in the RGB channel and the three-dimensional curve for the white balance color temperature; and
(23) counting the number of the white blocks corresponding to each color temperature value in the preset number of image blocks according to the color temperature value corresponding to each white block, to obtain a target number of white blocks with the largest proportion of the color temperature value.
(24) It should be noted that all the white blocks mentioned in the above steps are effective white blocks.
(25) In this embodiment, the frame image to be adjusted is segmented into M×N (M and N are positive integrals) blocks, for example.
(26) First of all, counting the number of the white blocks in the M×N blocks and a mean value of components of each white block in a RGB channel;
(27) then, obtaining the effective white blocks according to the R gain and the B gain (gray blocks are ineffective white blocks);
(28) obtaining a color temperature value of each effective white block according to the white balance color temperature three-dimensional curve, and obtaining the color temperature value of the white blocks with the largest proportion of the color temperature, wherein the current color temperature value is the color temperature value of the white blocks.
(29) For example, there are 100 effective white blocks in 25×25=625 blocks, wherein the color temperature value of 80 white blocks is 9300K, that is, the color temperature value of the white block with the largest proportion of the color temperature value is 9300K.
(30) S13, obtaining a target number of color blocks with the largest proportion of the color temperature value of the color blocks among the preset number of image blocks according to the number of the color blocks corresponding to each preset color temperature value.
(31) Furthermore, the preset color temperature value comprises at least three values;
(32) when the preset color temperature value comprises three values, the preset color temperature value comprises 6500K, 9300K, and 12000K.
(33) In this embodiment, the number of the white blocks is obtained, and the remaining are color blocks with color information (i.e., color areas). The color areas can count the proportions of the three colors, R, G and B, and can divide the three colors into 6 blocks of main colors, RED, GREEN, BLUE, CYAN, MAGENTA, and YELLOW. The trend of the color tone of the color is Obtained by getting the proportions of the six main primary colors. RED and YELLOW are oriented as warm color (6500K), BLUE and CYAN are oriented as cold color (12000K), MAGENTA and GREEN are oriented as 9300K. Matching each color block with three color temperature values, obtaining the color temperature value with the largest proportion of the color block, and counting the number of color blocks corresponding to the color temperature value (i.e., the target number of color blocks).
(34) In a preferred embodiment, the Step S2 of obtaining a matched target color temperature value according to the image information comprises:
(35) comparing the target number of the white blocks and the target number of the color blocks, to obtain a color temperature value corresponding to image blocks whose target number is greater than that of the remaining image blocks, and the color temperature value refers to the target color temperature value.
(36) In this embodiment, the size of target number of white blocks is compared with the size of target number of color blocks, the target number with a larger value is selected, and the color temperature value of the image blocks corresponding to the target number of the image blocks with the larger value is considered as the target color temperature value, so as to adjust the white balance parameter of the display under this color temperature value. Therefore, the purpose of automatically adjusting the white balance parameter of the image contents when playing the image can be achieved, so that the sense of tableau of the image is more realistic, the visual effect of users is enhanced, and the original scenario effects of images are restored.
(37) As shown in
(38) an identifying unit 1 for identifying image information of a currently played frame image to be adjusted;
(39) an obtaining unit 2 for obtaining a matched target color temperature value according to the image information; and
(40) an adjusting unit 3 for adjusting a white balance parameter of the frame image to be adjusted according to the target color temperature value.
(41) It should be noted that the system for adjusting white balance can be applied to a TV, and can also be applied to a display the system can be configured to adjust a white balance parameter of an image when a TV play is playing on the TV; and the white balance parameter of the image is adjusted according to the image contents displayed on the display.
(42) In this embodiment, by identifying the image information of the currently played frame image to be adjusted, and obtaining the matched target color temperature value according to the image information, the white balance parameter of the frame image to be adjusted is automatically adjusted according to the target color temperature value, the purpose of correspondingly adjusting the white balance parameter of the currently played frame image contents in real time can be achieved, so that the sense of tableau of the image is more realistic, and the visual effect is enhanced.
(43) In a preferred embodiment, the identifying unit 1 comprises:
(44) a division unit for dividing the currently played frame image to be adjusted into a preset number of image blocks;
(45) a first obtaining module for obtaining a target number of white blocks with the largest proportion of the color temperature value among the preset number of image blocks; and
(46) a second obtaining module for obtaining a target number of color blocks with the largest proportion of the color temperature value of the color blocks among the preset number of image blocks according to the number of the color blocks corresponding to a preset color temperature value.
(47) Furthermore, the first obtaining module is configured to generate a three-dimensional curve for the white balance color temperature according to the white balance parameters of the display under at least three color temperature values;
(48) the first obtaining module is further configured to calculate a mean value of components of each white block in a RGB channel, and obtaining a color temperature value of each white block according to the mean value of the component of the white block in the RGB channel and the three-dimensional curve for the white balance color temperature; and
(49) the first obtaining module is further configured to count the number of the white blocks corresponding to each color temperature value in the preset number of image blocks according to the color temperature value corresponding to each white block, to obtain a target number of white blocks with the largest proportion of the color temperature value.
(50) In a preferred embodiment, the obtaining unit 2 is configured to compare the target number of the white blocks and the target number of the color blocks, to obtain a color temperature value corresponding to image blocks whose target number is greater than that of the remaining image blocks, and the color temperature value refers to the target color temperature value.
(51) The invention further comprises a display comprising the above-mentioned system for adjusting white balance.
(52) The above descriptions are only the preferred embodiments of the invention, not thus limiting the embodiments and scope of the invention. Those skilled in the art should be able to realize that the schemes obtained from the content of specification and drawings of the invention are within the scope of the invention.