IP Library Granted Patent US 10,701,329
Granted Patent B2
US 10,701,329 · App. 16/268,678 · Granted Jun 30, 2020

White balance parameter determination method and white balance adjustment method, device, and storage medium thereof

Inventors: Sumin Zhu (Shanghai, CN); Yudi Zhuang (Shanghai, CN)
Assignee: SHANGHAI XIAOYI TECHNOLOGY CO., LTD.
H04N9/735H04N5/23229H04N9/045H04N9/77
View Patent ↗
Loading inventors, assignments & file history…
Monitor This Case
Get email alerts when status or documents change.
Order Certified Copies
Most orders are placed with the USPTO same day — all within 24 business hours.
Order via The Patent Place →
Pre-filled with this patent's details
Quick Facts
Patent No.
US 10,701,329
App. No.
16/268,678
Granted
Jun 30, 2020
Kind
B2
Abstract

A white balance parameter determination method and white balance adjustment method, device, and storage medium, the parameter determination method including: obtaining raw images captured by a camera device in each of a set of color temperature categories; calculating a red average value (Ravg) and a blue average value (Bavg) of each raw image; determining a red adjustment value according to a first difference value between the Ravg of each raw image and a Ravg of a golden set and determining a blue adjustment value according to a second difference value between the Bavg of each raw image and a Bavg of the golden set; and determining a final red adjustment value using the red adjustment value and a preset red adjustment value in a preset parameter table and determining a final blue adjustment value using the blue adjustment value and a preset blue adjustment value in the preset parameter table.

Claims (85)

1. A white balance parameter determination method, comprising:

obtaining raw images captured by a camera device in each of a set of color temperature categories, each color temperature category having a different color temperature value range;

calculating a red average value (Ravg) and a blue average value (Bavg) of each raw image, with a green average value (Gavg) of each raw image being a preset value;

in each color temperature category, determining a red adjustment value according to a first difference value between the Ravg of each raw image and a Ravg of a golden set and determining a blue adjustment value according to a second difference value between the Bavg of each raw image and a Bavg of the golden set; and

in each color temperature category, determining a final red adjustment value using the red adjustment value and a preset red adjustment value in a preset parameter table and determining a final blue adjustment value using the blue adjustment value and a preset blue adjustment value in the preset parameter table, the final red adjustment value and final blue adjustment value in each color temperature category forming a final parameter table to be used for white balance adjustment.

2. The white balance parameter determination method of claim 1 , wherein determining the red adjustment value and determining the blue adjustment value further comprise:

if a color temperature of a light source in a color temperature category is less than a first preset value, then determining the red adjustment value according to a product of a first preset coefficient and the first difference value and determining the blue adjustment value according to a product of a second preset coefficient and the second difference value, wherein

the second preset coefficient is greater than the first preset coefficient.

3. The white balance parameter determination method of claim 2 , wherein determining the red adjustment value further comprises:

if the first difference value is less than a preset threshold, then calculating a product of the first difference value and a first subcoefficient to be the red adjustment value; and

if the first difference value is greater than or equal to the preset threshold, then calculating a product of the first difference value and a second subcoefficient to be the red adjustment value, wherein

the first subcoefficient is greater than the second subcoefficient.

4. The white balance parameter determination method of claim 3 , wherein the red adjustment value is calculated according to:

r=2x/3, if the first difference value is between 0 and 300, where r represents the red adjustment value and x represents the first difference value;

r=x/3+100, if the first difference value is greater than or equal to 300; and

the blue adjustment value is calculated according to:

b=10y/3, where b represents the blue adjustment value and y represents the second difference value.

5. The white balance parameter determination method of claim 2 , wherein determining the red adjustment value and determining the blue adjustment value further comprise:

if a color temperature of a light source in a color temperature category is greater than a second preset value, then the red adjustment value is determined according to a product of a third preset coefficient and the first difference value and the blue adjustment value is determined according to a product of a third preset coefficient and the second difference value.

6. The white balance parameter determination method of claim 5 , wherein the red adjustment value or the blue adjustment value is calculated according to:

r=2x/5 or b=2y/5, where r represents the red adjustment value, x represents the first difference value, b represents the blue adjustment value, and y represents the second difference value.

7. The white balance parameter determination method of claim 1 , wherein the final parameter table further comprises:

a brightness dimension having a plurality of brightness levels; and

the final red adjustment value and the final blue adjustment value corresponding to each color temperature category and each of the plurality of brightness levels.

8. A white balance adjustment method, comprising:

obtaining raw images captured by a camera device in each of a set of color temperature categories, each color temperature category having a different color temperature value range;

calculating a red average value (Ravg) and a blue average value (Bavg) of each raw image, with a green average value (Gavg) of each raw image being a preset value;

in each color temperature category, determining a red adjustment value according to a first difference value between the Ravg of each raw image and a Ravg of a golden set and determining a blue adjustment value according to a second difference value between the Bavg of each raw image and a Bavg of the golden set;

in each color temperature category, determining a final red adjustment value using the red adjustment value and a preset red adjustment value in a preset parameter table and determining a final blue adjustment value using the blue adjustment value and a preset blue adjustment value in the preset parameter table, the final red adjustment value and final blue adjustment value in each color temperature category forming a final parameter table to be used for white balance adjustment;

obtaining an image to be adjusted with the camera device and a color temperature of a light source under which the image to be adjusted was captured;

determining the color temperature category to which the color temperature of the light source belongs and looking up in the final parameter table the final red adjustment value and the final blue adjustment value in the color temperature category; and

adjusting a red component and a blue component of each pixel in the image to be adjusted using the final red adjustment value and the final blue adjustment value.

9. The white balance adjustment method of claim 8 , wherein:

obtaining an image to be adjusted further comprises obtaining a brightness of the image to be adjusted;

the final parameter table further comprises:

a brightness dimension having a plurality of brightness levels; and

the final red adjustment value and the final blue adjustment value corresponding to each color temperature category and each of the plurality of brightness levels; and

looking up in the final parameter table further comprises looking up the final red adjustment value and the final blue adjustment value in the color temperature category and brightness level corresponding to the color temperature of the light source and the brightness of the image to be adjusted.

10. The white balance adjustment method of claim 8 , wherein adjusting the red component and blue component of each pixel comprises:

calculating a first product of the final red adjustment value and a red component of each pixel, and calculating a quotient of the first product and the preset value to be an adjusted red component of each pixel;

calculating a second product of the final blue adjustment value and a blue component of each pixel, and calculating a quotient of the second product and the preset value to be an adjusted blue component of each pixel.

11. A white balance adjustment device comprising:

a processor; and

a memory storage device storing instructions executable by the processor to:

obtain raw images captured by a camera device in each of a set of color temperature categories, each color temperature category having a different color temperature value range;

calculate a red average value (Ravg) and a blue average value (Bavg) of each raw image, with a green average value (Gavg) of each raw image being a preset value;

determine, in each color temperature category, a red adjustment value according to a first difference value between the Ravg of each raw image and a Ravg of a golden set and determining a blue adjustment value according to a second difference value between the Bavg of each raw image and a Bavg of the golden set; and

determine, in each color temperature category, a final red adjustment value using the red adjustment value and a preset red adjustment value in a preset parameter table and determining a final blue adjustment value using the blue adjustment value and a preset blue adjustment value in the preset parameter table, the final red adjustment value and final blue adjustment value in each color temperature category forming a final parameter table to be used for white balance adjustment.

12. The white balance adjustment device of claim 11 , wherein determining the red adjustment value and determining the blue adjustment value further comprise:

if a color temperature of a light source in a color temperature category is less than a first preset value, then determining the red adjustment value according to a product of a first preset coefficient and the first difference value and determining the blue adjustment value according to a product of a second preset coefficient and the second difference value, wherein

the second preset coefficient is greater than the first preset coefficient.

13. The white balance adjustment device of claim 12 , wherein determining the red adjustment value further comprises:

if the first difference value is less than a preset threshold, then calculating a product of the first difference value and a first subcoefficient to be the red adjustment value; and

if the first difference value is greater than or equal to the preset threshold, then calculating a product of the first difference value and a second subcoefficient to be the red adjustment value, wherein

the first subcoefficient is greater than the second subcoefficient.

14. The white balance adjustment device of claim 13 , wherein the red adjustment is calculated according to:

r=2x/3, if the first difference value is between 0 and 300, where r represents the red adjustment value and x represents the first difference value;

r=x/3+100, if the first difference value is greater than or equal to 300; and

the blue adjustment value is calculated according to:

b=10y/3, where b represents the blue adjustment value and y represents the second difference value.

15. The white balance adjustment device of claim 12 , wherein determining the red adjustment value and determining the blue adjustment value further comprise:

if a color temperature of a light source in a color temperature category is greater than a second preset value, then the red adjustment value is determined according to a product of a third preset coefficient and the first difference value and the blue adjustment value is determined according to a product of a third preset coefficient and the second difference value.

16. The white balance adjustment device of claim 15 , wherein the red adjustment value or the blue adjustment value is calculated according to:

r=2x/5 or b=2y/5, where r represents the red adjustment value, x represents the first difference value, b represents the blue adjustment value, and y represents the second difference value.

17. The white balance adjustment device of claim 11 , wherein the final parameter table further comprises:

a brightness dimension having a plurality of brightness levels; and

the final red adjustment value and the final blue adjustment value corresponding to each color temperature category and each of the plurality of brightness levels.

18. The white balance adjustment device of claim 11 , wherein the instructions executable by the processor further comprise instructions to:

obtain an image to be adjusted with the camera device and a color temperature of a light source under which the image to be adjusted was captured;

determine the color temperature category to which the color temperature of the light source belongs and looking up in the final parameter table the final red adjustment value and the final blue adjustment value in the color temperature category; and

adjust a red component and a blue component of each pixel in the image to be adjusted using the final red adjustment value and the final blue adjustment value.

19. The white balance adjustment device of claim 18 , wherein:

obtaining an image to be adjusted further comprises obtaining a brightness of the image to be adjusted;

the final parameter table further comprises:

a brightness dimension having a plurality of brightness levels; and

the final red adjustment value and the final blue adjustment value corresponding to each color temperature category and each of the plurality of brightness levels; and

looking up in the final parameter table further comprises looking up the final red adjustment value and the final blue adjustment value in the color temperature category and brightness level corresponding to the color temperature of the light source and the brightness of the image to be adjusted.

20. The white balance adjustment device of claim 18 , wherein adjusting the red component and blue component of each pixel comprises:

calculating a first product of the final red adjustment value and a red component of each pixel, and calculating a quotient of the first product and the preset value to be an adjusted red component of each pixel; and

calculating a second product of the final blue adjustment value and a blue component of each pixel, and calculating a quotient of the second product and the preset value to be an adjusted blue component of each pixel.

21. A non-transitory computer readable storage medium on which computer instructions are stored, the instructions executable by at least once processor to:

obtain raw images captured by a camera device in each of a set of color temperature categories, each color temperature category having a different color temperature value range;

calculate a red average value (Ravg) and a blue average value (Bavg) of each raw image, with a green average value (Gavg) of each raw image being a preset value;

determine, in each color temperature category, a red adjustment value according to a first difference value between the Ravg of each raw image and a Ravg of a golden set and determining a blue adjustment value according to a second difference value between the Bavg of each raw image and a Bavg of the golden set; and

determine, in each color temperature category, a final red adjustment value using the red adjustment value and a preset red adjustment value in a preset parameter table and determining a final blue adjustment value using the blue adjustment value and a preset blue adjustment value in the preset parameter table, the final red adjustment value and final blue adjustment value in each color temperature category forming a final parameter table to be used for white balance adjustment.

Assignments (4)
RELEASE OF SECURITY INTEREST Recorded Nov 5, 2024
From: EAST WEST BANK
To: KAMI VISION INCORPORATED
Reel/Frame 070792/0551 →
INTELLECTUAL PROPERTY SECURITY AGREEMENT Recorded Mar 28, 2022
From: KAMI VISION INCORPORATED
To: EAST WEST BANK
Reel/Frame 059512/0101 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Mar 1, 2022
From: SHANGHAI XIAOYI TECHNOLOGY CO., LTD.
To: KAMI VISION INC.
Reel/Frame 059275/0652 →
ASSIGNMENT OF ASSIGNOR'S INTEREST Recorded Jun 24, 2019
From: ZHU, SUMIN; ZHUANG, YUDI
To: SHANGHAI XIAOYI TECHNOLOGY CO., LTD.
Reel/Frame 049566/0451 →
Priority Claims (1)
CN 2018 1 0140911 · Feb 9, 2018 · national
Continuity (1)
Related Publication 20190253683A1 · Aug 15, 2019