Image processing method and device for accomplishing white balance regulation, computer-readable storage medium and computer device
First Claim
1. An image processing method, comprising:
- processing each frame of image in multiple continuous frames of images to determine a number of light sources of each frame of image;
determining whether a difference between a number of light sources of a kth frame of image and a number of light sources of a (k+1)th frame of image is equal to 0, wherein k is a positive integer; and
responsive to determining that the difference is unequal to 0, determining a color temperature of the (k+1)th frame of image to be a color temperature of the kth frame of image, and processing the (k+1)th frame of image according to the color temperature of the (k+1)th frame of image;
wherein the operation of processing each frame of image in the multiple continuous frames of images to determine the number of the light sources of each frame of image further comprises;
determining a high-luminance region and a medium-luminance region according to a luminance distribution extending outwards from a center of a light source along a radial direction of the light source; and
determining a color of the light source by subtracting pixel averages of primary color channels of the medium-luminance region from pixel averages of primary color channels of the high-luminance region;
the method further comprises;
responsive to determining that the difference is equal to 0, performing white balance processing on an mth frame of image according to a color temperature of the mth frame of image, the mth frame of image comprising the kth frame of image or the (k+1)th frame of image, wherein m is be a positive integer and m≥
k.
1 Assignment
0 Petitions
Accused Products
Abstract
An image processing method is provided. The image processing method includes: each frame of image in multiple continuous frames of images is processed to determine a number of light sources of each frame of image; it is determined whether a difference between a number of light sources of a kth frame of image and a number of light sources of a (k+1)th frame of image is equal to 0; and when the difference is unequal to 0, a color temperature of the (k+1)th frame of image is determined to be a color temperature of the kth frame of image and the (k+1)th frame of image is processed according to the color temperature of the (k+1)th frame of image. An image processing device, a computer-readable storage medium and a computer device are further provided.
34 Citations
13 Claims
-
1. An image processing method, comprising:
-
processing each frame of image in multiple continuous frames of images to determine a number of light sources of each frame of image; determining whether a difference between a number of light sources of a kth frame of image and a number of light sources of a (k+1)th frame of image is equal to 0, wherein k is a positive integer; and responsive to determining that the difference is unequal to 0, determining a color temperature of the (k+1)th frame of image to be a color temperature of the kth frame of image, and processing the (k+1)th frame of image according to the color temperature of the (k+1)th frame of image; wherein the operation of processing each frame of image in the multiple continuous frames of images to determine the number of the light sources of each frame of image further comprises; determining a high-luminance region and a medium-luminance region according to a luminance distribution extending outwards from a center of a light source along a radial direction of the light source; and determining a color of the light source by subtracting pixel averages of primary color channels of the medium-luminance region from pixel averages of primary color channels of the high-luminance region; the method further comprises; responsive to determining that the difference is equal to 0, performing white balance processing on an mth frame of image according to a color temperature of the mth frame of image, the mth frame of image comprising the kth frame of image or the (k+1)th frame of image, wherein m is be a positive integer and m≥
k. - View Dependent Claims (2, 3)
-
-
4. An image processing device, comprising:
-
a processor; a plurality of program modules, when, executed by the processor, cause the device to perform predefined functions, the plurality of program modules further comprising; a first processing module, configured to process each frame of image in multiple continuous frames of images to determine a number of light sources of each frame of image; a judgment module, configured to determine whether a difference between a number of light sources of a kth frame of image and a number of light sources of a (k+1)th frame of image is equal to 0, wherein k is a positive integer; and a second processing module, configured to, responsive to determining that the difference is unequal to 0, determine a color temperature of the (k+1)th frame of image to be a color temperature of the kth frame of image and process the (k+1)th frame of image according to the color temperature of the (k+1)th frame of image. - View Dependent Claims (5, 6, 7, 8, 9)
-
-
10. Anon-transitory computer-readable storage medium, comprising one or more computer-executable instructions that, when executed by one or more processors, cause the one or more processors to execute an image processing method, the method comprising:
-
processing each frame of image in multiple continuous frames of images to determine a number of light sources of each frame of image; determining whether a difference between a number of light sources of a kth frame of image and a number of light sources of a (k+1)th frame of image is equal to 0, wherein k is a positive integer; and responsive to determining that the difference is unequal to 0, determining a color temperature of the (k+1)th frame of image to be a color temperature of the kth frame of image, and processing the (k+1)th frame of image according to the color temperature of the (k+1)th frame of image; wherein the operation of processing each frame of image in the multiple continuous frames of images to determine the number of the light sources of each frame of image further comprises; determining a high-luminance region and a medium-luminance region according to a luminance distribution extending outwards from a center of a light source along a radial direction of the light source; and determining a color of the light source by subtracting pixel averages of primary color channels of the medium-luminance region from pixel averages of primary color channels of the high-luminance region; the method further comprises; responsive to determining that the difference is equal to 0, performing white balance processing on an mth frame of image according to a color temperature of the mth frame of image, the mth frame of image comprising the kth frame of image or the (k+1)th frame of image, wherein m is be a positive integer and m≥
k.
-
-
11. A computer device, comprising:
- a memory and a processor, the memory storing a computer-executable instruction that, when executed by the processor, causes the processor to execute an image processing method, the method comprising;
processing each frame of image in multiple continuous frames of images to determine a number of light sources of each frame of image; determining whether a difference between a number of light sources of a kth frame of image and a number of light sources of a (k+1)th frame of image is equal to 0, wherein k is a positive integer; and responsive to determining that the difference is unequal to 0, determining a color temperature of the (k+1)th frame of image to be a color temperature of the kth frame of image, and processing the (k+1)th frame of image according to the color temperature of the (k+1)th frame of image; wherein the operation of processing each frame of image in the multiple continuous frames of images to determine the number of the light sources of each frame of image further comprises; determining a high-luminance region and a medium-luminance region according to a luminance distribution extending outwards from a center of a light source along a radial direction of the light source; and determining a color of the light source by subtracting pixel averages of primary color channels of the medium-luminance region from pixel averages of primary color channels of the high-luminance region; the method further comprises; responsive to determining that the difference is equal to 0, performing white balance processing on an mth frame of image according to a color temperature of the mth frame of image, the mth frame of image comprising the kth frame of image or the (k+1)th frame of image, wherein m is be a positive integer and m≥
k. - View Dependent Claims (12, 13)
- a memory and a processor, the memory storing a computer-executable instruction that, when executed by the processor, causes the processor to execute an image processing method, the method comprising;
Specification