CN113766206A - White balance adjusting method, device and storage medium - Google Patents

White balance adjusting method, device and storage medium Download PDF

Info

Publication number
CN113766206A
CN113766206A CN202010486145.2A CN202010486145A CN113766206A CN 113766206 A CN113766206 A CN 113766206A CN 202010486145 A CN202010486145 A CN 202010486145A CN 113766206 A CN113766206 A CN 113766206A
Authority
CN
China
Prior art keywords
color temperature
temperature information
determining
weight value
information
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Pending
Application number
CN202010486145.2A
Other languages
Chinese (zh)
Inventor
张钧凯
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Guangdong Oppo Mobile Telecommunications Corp Ltd
Original Assignee
Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Guangdong Oppo Mobile Telecommunications Corp Ltd filed Critical Guangdong Oppo Mobile Telecommunications Corp Ltd
Priority to CN202010486145.2A priority Critical patent/CN113766206A/en
Publication of CN113766206A publication Critical patent/CN113766206A/en
Pending legal-status Critical Current

Links

Images

Classifications

    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N9/00Details of colour television systems
    • H04N9/64Circuits for processing colour signals
    • H04N9/73Colour balance circuits, e.g. white balance circuits or colour temperature control
    • HELECTRICITY
    • H04ELECTRIC COMMUNICATION TECHNIQUE
    • H04NPICTORIAL COMMUNICATION, e.g. TELEVISION
    • H04N23/00Cameras or camera modules comprising electronic image sensors; Control thereof
    • H04N23/80Camera processing pipelines; Components thereof
    • H04N23/84Camera processing pipelines; Components thereof for processing colour signals
    • H04N23/88Camera processing pipelines; Components thereof for processing colour signals for colour balance, e.g. white-balance circuits or colour temperature control

Landscapes

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

Abstract

An embodiment of the application provides a white balance adjustment method, a white balance adjustment device and a storage medium, wherein the white balance adjustment method comprises the following steps: respectively determining first color temperature information acquired by a color temperature sensor, second color temperature information of a shot image and brightness information; determining a preset weight value based on the first color temperature information, the brightness information and/or the field angle of the color temperature sensor; determining target color temperature information according to a preset weight value, the first color temperature information and the second color temperature information; and adjusting the white balance of the photographed image using the target color temperature information.

Description

White balance adjusting method, device and storage medium
Technical Field
The present application relates to the field of communications, and in particular, to a method and an apparatus for adjusting white balance, and a storage medium.
Background
When a terminal with a shooting function is used for shooting, a color value acquired by a color image and the real color of an object deviate, a human visual system has color constancy and can acquire the invariant characteristic of the surface color of the object under the changing illumination environment and imaging condition, but the imaging equipment does not have the adjusting function, different illumination environments can cause the acquired image color and the real color to deviate to a certain extent, a proper color balance (correction) algorithm needs to be selected, and the influence of the illumination environment on color display is eliminated. The gray world algorithm is the most commonly used balancing algorithm.
However, the gray world algorithm is easy to have obvious misjudgment in some special scenes. In a pure color scene, since the pure color structure has no contrast with other colors, scattered points are presented on the gray world algorithm, and it is difficult to predict the linear light source trend, so the possibility of wrong judgment is quite high. In a mixed light source scene without a human face reference basis, a correct light source in the environment cannot be obtained, effect adjustment can only be relied on, the mixed light source is weighed through a weighting mode, the front and the back of white balance are inconsistent, and the problems of low accuracy and poor effect of white balance adjustment are caused.
Disclosure of Invention
The embodiment of the application provides a white balance adjustment method, a white balance adjustment device and a storage medium, which can improve the accuracy and the adjustment effect of white balance adjustment.
The technical scheme of the application is realized as follows:
the embodiment of the application provides a white balance adjusting method, which comprises the following steps:
respectively determining first color temperature information acquired by a color temperature sensor, second color temperature information of a shot image and brightness information;
determining a preset weight value based on the first color temperature information, the brightness information and/or a field angle of the color temperature sensor;
determining target color temperature information according to the preset weight value, the first color temperature information and the second color temperature information; and adjusting the white balance of the shot image by using the target color temperature information.
In the above method, the determining a preset weight value based on the first color temperature information and the brightness information includes:
searching a first confidence value corresponding to the first color temperature information from a corresponding relation between preset color temperature and confidence, wherein the confidence in the corresponding relation between the preset color temperature and the confidence is preset according to the error rate between the preset color temperature information and standard color temperature information acquired by the color temperature sensor;
determining the first confidence value as the preset weight value.
In the above method, the determining a preset weight value based on the brightness information includes:
comparing the brightness information with a preset brightness threshold value to obtain a comparison result;
and determining a preset weight value corresponding to the brightness information from the corresponding relation between the preset brightness and the weight value according to the comparison result.
In the above method, the determining a preset weight value based on the first color temperature information and the brightness information includes:
determining a spectral energy distribution based on the first color temperature information and the brightness information;
determining a current shooting light source according to the spectral energy distribution;
and determining the preset weight value according to the current shooting light source.
In the above method, the determining a preset weight value according to the field angle of the color temperature sensor includes:
and determining a preset weight value corresponding to the field angle from the corresponding relation between the preset field angle and the weight value.
In the above method, the determining second color temperature information of the captured image includes:
acquiring R/G, B/G of the shot image and R/G, B/G of a color temperature sensor respectively;
the second color temperature information is determined according to R/G, B/G of the photographed image and R/G, B/G of a color temperature sensor.
In the above method, the determining the second color temperature information according to R/G, B/G of the photographed image and R/G, B/G of a color temperature sensor includes:
determining a first distance between R/G, B/G of the photographed image and R/G, B/G of a color temperature sensor;
determining a weight value of the first distance according to the corresponding relation between the distance and the weight value;
obtaining a target R/G, B/G according to the weight value of the first distance and the R/G, B/G of the shot image;
converting the target R/G, B/G into the second color temperature information.
An embodiment of the present application provides a white balance adjustment device, including:
the determining unit is used for respectively determining first color temperature information acquired by the color temperature sensor, second color temperature information of a shot image and brightness information; determining a preset weight value based on the first color temperature information, the brightness information and/or a field angle of the color temperature sensor; determining target color temperature information according to the preset weight value, the first color temperature information and the second color temperature information;
and the white balance adjusting unit is used for adjusting the white balance of the shot image by utilizing the target color temperature information.
An embodiment of the present application provides a white balance adjustment device, including: a processor, a memory, and a communication bus; the processor implements the above-described method when executing the running program stored in the memory.
The embodiment of the present application provides a storage medium, on which a computer program is stored, wherein the computer program is implemented by a processor, and when the computer program is executed by the processor, the method is implemented.
The embodiment of the application provides a white balance adjusting method, a white balance adjusting device and a storage medium, wherein the method comprises the following steps: respectively determining first color temperature information acquired by a color temperature sensor, second color temperature information of a shot image and brightness information; determining a preset weight value based on the first color temperature information, the brightness information and/or the field angle of the color temperature sensor; determining target color temperature information according to a preset weight value, the first color temperature information and the second color temperature information; and adjusting the white balance of the photographed image using the target color temperature information. Adopt above-mentioned implementation scheme, white balance adjusting device is based on the first color temperature information that the colour temperature sensor gathered, the luminance information of shooting image and/or the angle of vision of colour temperature sensor, confirm and preset the weighted value, and utilize and preset the weighted value and adjust the weight of first color temperature information and second color temperature information respectively, and then make the accuracy of the target colour temperature information that determines according to first color temperature information and second color temperature information high, from this, when utilizing target colour temperature information to adjust the white balance of shooting image, can improve the accuracy and the adjustment effect of white balance adjustment.
Drawings
Fig. 1 is a flowchart of a white balance adjustment method according to an embodiment of the present application;
FIG. 2 is a schematic diagram of an exemplary two-dimensional coordinate system provided by an embodiment of the present application;
fig. 3 is a first schematic structural diagram of a white balance adjustment apparatus according to an embodiment of the present disclosure;
fig. 4 is a schematic structural diagram of a white balance adjustment apparatus according to an embodiment of the present application.
Detailed Description
It should be understood that the specific embodiments described herein are merely illustrative of the present application. And are not intended to limit the present application.
Example one
An embodiment of the present application provides a white balance adjustment method, as shown in fig. 1, the method may include:
s101, respectively determining first color temperature information acquired by a color temperature sensor, second color temperature information of a shot image and brightness information.
The white balance adjusting method provided in the embodiment of the application can be applied to a terminal with an image acquisition function, the terminal comprises an image acquisition unit and a color temperature sensor, and the terminal can be implemented in various forms. For example, the terminal described in the present invention may include a mobile terminal such as a mobile phone, a tablet computer, a notebook computer, a palmtop computer, a Personal Digital Assistant (PDA), a Portable Media Player (PMP), a navigation device, a wearable device, a smart band, a pedometer, and the like, and a fixed terminal such as a Digital TV, a desktop computer, and the like. The terminal may include: a photographing unit, an audio input unit, an audio output unit, a display unit, a user input unit, a memory, a processor, and a power supply.
The white balance adjustment method provided in the embodiment of the present application can also be applied to a white balance adjustment device having a white balance adjustment function.
In the embodiment of the application, a white balance adjusting device respectively acquires R/G, B/G of a shot image and R/G, B/G of a color temperature sensor; second color temperature information is determined based on R/G, B/G of the photographed image and R/G, B/G of the color temperature sensor.
In the embodiment of the application, the white balance adjusting device firstly divides the shot image into M multiplied by N image blocks, wherein the number of the image blocks is related to the actual white balance adjusting device, when M and N are 1, the shot image does not need to be divided, and the three-channel response of the shot image is directly calculated based on a white balance algorithm; when M and N are not all 1, the captured image needs to be segmented according to a certain segmentation strategy, for example, the segmentation strategy is to segment the captured image into rectangular image blocks in M rows and N columns, or segment the original image into foreground or background according to a captured object in the captured image, which is specifically selected according to an actual situation, and this embodiment of the present application is not specifically limited. Then, the white balance adjustment device determines the target image block from the M × N image blocks.
In practical application, a human visual system has color constancy, and can acquire the invariant characteristic of the surface color of an object under the changing illumination environment and imaging conditions, but an imaging device does not have the function of such color constancy, different illumination environments can cause the deviation of the acquired image color from the real color to a certain extent, and a proper color balance (correction) algorithm needs to be selected to eliminate the influence of the illumination environment on color display. Therefore, the white balance is needed to make the imaging device correctly conform to the result of human eye observation under various light sources. The gray world algorithm is the most commonly used white balance algorithm.
Illustratively, three-channel responses of each pixel point in the target image block are calculated by using a gray world algorithm, and the three-channel responses refer to Red (R) channel responses, Green (G) channel responses and Blue (B) channel responses of the pixels in the target image block. As the G response of the camera sensor is far higher than the R response and the B response, the representation can be simplified to be represented by R/G and B/G, and the average value of the R/G and the B/G of all pixel points in the target image block is obtained to obtain the R/G, B/G of the shot image.
In the embodiment of the application, the white balance adjusting device determines the R/G, B/G of the color temperature sensor based on the color temperature curve, wherein the color temperature curve can be a Planck curve, the color temperature information is obtained through the color temperature sensor, the position corresponding to the Planck curve is calibrated on an R/G and B/G coordinate system in advance according to the color temperature information, so that the color temperature and the R/G and B/G coordinate corresponding relation table can be established according to the Planck curve, after the color temperature is detected by using the color temperature sensor, the corresponding relation table can be established according to the corresponding relation between the color temperature calibrated in the Planck curve and the correction parameter, and the R/G and B/G values of the color temperature sensor can be directly calculated by searching the corresponding relation table.
In the embodiment of the application, the white balance adjusting device determines the second color temperature information according to the R/G, B/G of the shot image and the R/G, B/G of the color temperature sensor by the following steps: the white balance adjustment means determines a first distance between R/G, B/G of the photographed image and R/G, B/G of the color temperature sensor; determining a weight value of the first distance according to the corresponding relation between the distance and the weight value; obtaining a target R/G, B/G according to the weight value of the first distance and the R/G, B/G of the shot image; the target R/G, B/G is converted into second color temperature information.
FIG. 2 is a schematic diagram of two-dimensional coordinates of a sensor space in an embodiment of the present application, where in FIG. 2, an abscissa of a coordinate system is R/G, a total coordinate is B/G, Ts is a coordinate point corresponding to R/G, B/G of a captured image, Os is a coordinate point corresponding to R/G, B/G of a color temperature sensor, and a first distance D between the two-dimensional coordinate points is calculated through a Euclidean distance calculation formula.
Specifically, the first distance is calculated as formula (1)
Figure BDA0002519137640000061
Wherein x1 and y1 are R/G, B/G of the shot image, and x2 and y2 are R/G, B/G of the color temperature sensor.
In the embodiment of the application, a distance and weight value corresponding relation is set in the white balance adjusting device, and the white balance adjusting device determines the weight value of the first distance from the distance and weight value corresponding relation; then multiplying the weight value of the first distance with the R/G, B/G of the shot image to obtain a target R/G, B/G; finally, the target R/G, B/G is converted into second color temperature information using a color temperature conversion formula.
In the embodiment of the application, the white balance adjusting device acquires the brightness information of the shot image according to the automatic exposure.
And S102, determining a preset weight value based on the first color temperature information, the brightness information and/or the field angle of the color temperature sensor.
After the white balance adjusting device respectively determines first color temperature information collected by the color temperature sensor and second color temperature information of a shot image, the white balance adjusting device determines a preset weight value between the first color temperature information and the second color temperature information, the preset weight value is used for adjusting the ratio of the first color temperature information to the second color temperature information when the target color temperature information is calculated, and specifically, the white balance adjusting device determines the preset weight value based on the first color temperature information, the second color temperature information of the shot image and/or the field angle of the color temperature sensor.
In an optional embodiment, the white balance adjustment device searches a first confidence value corresponding to the first color temperature information from a corresponding relation between a preset color temperature and a confidence level, wherein the confidence level in the corresponding relation between the preset color temperature and the confidence level is preset according to an error rate between the preset color temperature information and standard color temperature information acquired by the color temperature sensor; then, the white balance adjustment device determines the first confidence value as a preset weight value.
In the embodiment of the application, a white balance adjusting device shoots an image in advance, a color temperature sensor is used for obtaining preset color temperature information, then the white balance adjusting device determines standard color temperature information by using an illuminometer, the white balance adjusting device calculates error rates of the color temperature sensor according to the preset color temperature information and the standard color temperature information, different confidence degrees are designed according to the different error rates, at the moment, the white balance adjusting device sets corresponding confidence degrees for the color temperature information under different shooting light sources respectively, corresponding relations between the preset color temperature and the confidence degrees are obtained, after the white balance adjusting device determines first color temperature information collected by the color temperature sensor, the white balance adjusting device searches a first confidence value corresponding to the first color temperature information from the corresponding relations between the preset color temperature and the confidence degrees, and the first confidence value is determined as a preset weight value.
In an optional embodiment, a brightness threshold is set inside the white balance adjustment device, and the white balance adjustment device compares the brightness information with a preset brightness threshold to obtain a comparison result; and determining a preset weight value corresponding to the brightness information from the corresponding relation between the preset brightness and the weight value according to the comparison result.
In the embodiment of the application, when the white balance adjusting device determines that the brightness information is lower than the preset brightness threshold, the white balance adjusting device depends more on the first color temperature sensor acquired by the color temperature sensor, and at the moment, the white balance adjusting device sets a larger weight value for the first color temperature information acquired by the color temperature sensor; on the contrary, when the white balance adjusting device determines that the brightness information is higher than the preset brightness threshold, the white balance adjusting device sets a smaller weight value for the first color temperature information.
Further, after the white balance adjusting device acquires the first color temperature information and the brightness information, the white balance adjusting device may further determine spectral energy distribution based on the first color temperature information and the brightness information, and since spectral energy distributions of different shooting light sources are different, the white balance may determine a current shooting light source according to the spectral energy distribution, and then determine a preset weight value according to the current shooting light source.
Specifically, the white balance adjustment device determines first Color Temperature information by using Correlated Color Temperature (CCT), determines spectral energy distribution of the light source on the determination area through far Infrared (IR) information and luminance information obtained from the automatic exposure, and determines the current photographing light source according to the spectral energy distribution.
In the embodiment of the application, different shooting scenes can be determined by the current shooting light source, and if the color temperature collected by the color temperature sensor under different shooting scenes has different error rates, the white balance adjusting device sets corresponding weight values for the different shooting light sources, and the white balance adjusting device determines the preset weight value according to the current shooting light source, so that the accuracy of the preset weight value can be improved.
In an optional embodiment, the white balance adjustment device determines a preset weight value corresponding to the field angle from a corresponding relationship between the preset field angle and the weight value.
In the embodiment of the application, the viewing angle and the distance of the color temperature sensor are in a two-dimensional relationship, that is, the larger the viewing angle of the color temperature sensor is, the closer the distance is, and at this time, the white balance adjusting device sets a smaller weight value for the first color temperature information collected by the color temperature sensor.
It should be noted that, the above-mentioned several optional methods for determining preset weight values provided in the embodiments of the present application are only provided, and other ways of setting different preset weight values for different shooting scenes by using relevant parameters of the color temperature sensor are still protected by the present application, and the methods are specifically selected according to actual situations, and the embodiments of the present application are not specifically limited.
S103, determining target color temperature information according to a preset weight value, the first color temperature information and the second color temperature information; and adjusting the white balance of the photographed image using the target color temperature information.
After the white balance adjusting device determines the preset weight value, the white balance adjusting device determines target color temperature information according to the preset weight value, the first color temperature information and the second color temperature information, and then the white balance adjusting device adjusts the white balance of the shot image by using the target color temperature information.
In the embodiment of the present application, the white balance adjustment apparatus calculates the target color temperature information using formula (2).
TFinal=(1-α)×STATST+α×SensorT (2)
Wherein, TFinalRepresenting target color temperature information, STATSTAs second color temperature information, SensorTThe first color temperature information is collected by the color temperature sensor, and alpha is a preset weighted value.
Illustratively, as shown in FIG. 3,
it can be understood that, the white balance adjusting device determines the preset weight value based on the first color temperature information collected by the color temperature sensor, the brightness information of the shot image and/or the field angle of the color temperature sensor, and respectively adjusts the weights of the first color temperature information and the second color temperature information by using the preset weight value, so that the accuracy of the target color temperature information determined according to the first color temperature information and the second color temperature information is high, and therefore, when the target color temperature information is used for adjusting the white balance of the shot image, the accuracy and the adjusting effect of the white balance adjustment can be improved.
Example two
An embodiment of the present application provides a white balance adjustment device 1, and as shown in fig. 3, the white balance adjustment device 1 includes:
the determining unit 10 is configured to determine first color temperature information acquired by the color temperature sensor, second color temperature information of a shot image, and luminance information, respectively; determining a preset weight value based on the first color temperature information, the brightness information and/or a field angle of the color temperature sensor; determining target color temperature information according to the preset weight value, the first color temperature information and the second color temperature information;
and a white balance adjusting unit 11, configured to adjust white balance of the captured image by using the target color temperature information.
Optionally, the apparatus 1 further comprises: a search unit;
the searching unit is used for searching a first confidence value corresponding to the first color temperature information from a corresponding relation between preset color temperatures and confidence degrees, and the confidence degrees in the corresponding relation between the preset color temperatures and the confidence degrees are preset according to the error rate between the preset color temperature information and standard color temperature information collected by the color temperature sensor;
the determining unit 10 is further configured to determine the first confidence value as the preset weight value.
Optionally, the apparatus 1 further comprises: a comparison unit:
the comparison unit is used for comparing the brightness information with a preset brightness threshold value to obtain a comparison result;
the determining unit 10 is further configured to determine a preset weight value corresponding to the brightness information from a corresponding relationship between preset brightness and the weight value according to the comparison result.
Optionally, the determining unit 10 is further configured to determine a spectral energy distribution based on the first color temperature information and the brightness information; determining a current shooting light source according to the spectral energy distribution; and determining the preset weight value according to the current shooting light source.
Optionally, the determining unit 10 is further configured to determine a preset weight value corresponding to the field angle from a preset corresponding relationship between the field angle and the weight value.
Optionally, the apparatus 1 further comprises: an acquisition unit;
the acquisition unit is used for respectively acquiring R/G, B/G of the shot image and R/G, B/G of a color temperature sensor;
the determining unit 10 is further configured to determine the second color temperature information according to R/G, B/G of the captured image and R/G, B/G of a color temperature sensor.
Optionally, the apparatus 1 further comprises: a color temperature conversion unit;
the determination unit 10 is further used for determining a first distance between R/G, B/G of the shot image and R/G, B/G of a color temperature sensor; determining a weight value of the first distance according to the corresponding relation between the distance and the weight value; obtaining a target R/G, B/G according to the weight value of the first distance and the R/G, B/G of the shot image;
the color temperature conversion unit is used for converting the target R/G, B/G into the second color temperature information.
The white balance adjusting device provided by the embodiment of the application respectively determines first color temperature information acquired by a color temperature sensor, second color temperature information of a shot image and brightness information; determining a preset weight value based on the first color temperature information, the brightness information and/or the field angle of the color temperature sensor; determining target color temperature information according to a preset weight value, the first color temperature information and the second color temperature information; and adjusting the white balance of the photographed image using the target color temperature information. Therefore, in the white balance adjusting device provided by the embodiment, the preset weight value is determined by the white balance adjusting device based on the first color temperature information collected by the color temperature sensor, the brightness information of the shot image and/or the field angle of the color temperature sensor, and the weights of the first color temperature information and the second color temperature information are respectively adjusted by using the preset weight value, so that the accuracy of the target color temperature information determined according to the first color temperature information and the second color temperature information is high, and therefore, when the white balance of the shot image is adjusted by using the target color temperature information, the accuracy and the adjusting effect of the white balance adjustment can be improved.
Fig. 4 is a schematic diagram of a composition structure of a white balance adjustment device 1 according to an embodiment of the present application, and in practical applications, based on the same disclosure concept of the foregoing embodiment, as shown in fig. 4, the white balance adjustment device 1 of the present embodiment includes: a processor 12, a memory 13, and a communication bus 14.
In a Specific embodiment, the determining unit 10, the white balance adjusting unit 11, the searching unit, the comparing unit, the obtaining unit and the color temperature converting unit may be implemented by a Processor 12 located on the white balance adjusting apparatus 1, and the Processor 12 may be at least one of an Application Specific Integrated Circuit (ASIC), a Digital Signal Processor (DSP), a Digital Signal Processing Device (DSPD), a Programmable Logic image Processing Device (PLD), a Field Programmable Gate Array (FPGA), a CPU, a controller, a microcontroller and a microprocessor. It is understood that the electronic device for implementing the above-mentioned processor function may be other devices, and the embodiment is not limited in particular.
In the embodiment of the present application, the communication bus 14 is used for realizing connection communication between the processor 12 and the memory 13; the processor 12 implements the following data scheduling method when executing the execution program stored in the memory 13:
respectively determining first color temperature information acquired by a color temperature sensor, second color temperature information of a shot image and brightness information; determining a preset weight value based on the first color temperature information, the brightness information and/or a field angle of the color temperature sensor; determining target color temperature information according to the preset weight value, the first color temperature information and the second color temperature information; and adjusting the white balance of the shot image by using the target color temperature information.
In the above method, the processor 12 is further configured to search a first confidence value corresponding to the first color temperature information from a corresponding relationship between a preset color temperature and a confidence level, where the confidence level in the corresponding relationship between the preset color temperature and the confidence level is preset according to an error rate between the preset color temperature information and standard color temperature information acquired by the color temperature sensor; determining the first confidence value as the preset weight value.
In the above method, the processor 12 is further configured to compare the brightness information with a preset brightness threshold to obtain a comparison result; and determining a preset weight value corresponding to the brightness information from the corresponding relation between the preset brightness and the weight value according to the comparison result.
In the above method, the processor 12 is further configured to determine a spectral energy distribution based on the first color temperature information and the brightness information; determining a current shooting light source according to the spectral energy distribution; and determining the preset weight value according to the current shooting light source.
In the above method, the processor 12 is further configured to determine a preset weight value corresponding to the field angle from a preset corresponding relationship between the field angle and the weight value.
In the above method, the processor 12 is further configured to obtain R/G, B/G of the captured image and R/G, B/G of the color temperature sensor, respectively; the second color temperature information is determined according to R/G, B/G of the photographed image and R/G, B/G of a color temperature sensor.
In the above method, the processor 12 is further configured to determine a first distance between R/G, B/G of the captured image and R/G, B/G of a color temperature sensor; determining a weight value of the first distance according to the corresponding relation between the distance and the weight value; obtaining a target R/G, B/G according to the weight value of the first distance and the R/G, B/G of the shot image; converting the target R/G, B/G into the second color temperature information.
The present embodiment provides a storage medium, on which a computer program is stored, where the computer readable storage medium stores one or more programs, where the one or more programs are executable by one or more processors and applied to a white balance adjustment device, and the computer program implements the white balance adjustment method according to the first embodiment.
It should be noted that, in this document, the terms "comprises," "comprising," or any other variation thereof, are intended to cover a non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements does not include only those elements but may include other elements not expressly listed or inherent to such process, method, article, or apparatus. Without further limitation, an element defined by the phrase "comprising an … …" does not exclude the presence of other like elements in a process, method, article, or apparatus that comprises the element.
Through the above description of the embodiments, those skilled in the art will clearly understand that the method of the above embodiments can be implemented by software plus a necessary general hardware platform, and certainly can also be implemented by hardware, but in many cases, the former is a better implementation manner. Based on such understanding, the technical solutions of the present disclosure may be embodied in the form of a software product, which is stored in a storage medium (e.g., ROM/RAM, magnetic disk, optical disk) and includes instructions for enabling an image display device (e.g., a mobile phone, a computer, a server, an air conditioner, or a network device) to execute the method according to the embodiments of the present disclosure.
The above description is only a preferred embodiment of the present application, and is not intended to limit the scope of the present application.

Claims (10)

1. A white balance adjustment method, characterized in that the method comprises:
respectively determining first color temperature information acquired by a color temperature sensor, second color temperature information of a shot image and brightness information;
determining a preset weight value based on the first color temperature information, the brightness information and/or a field angle of the color temperature sensor;
determining target color temperature information according to the preset weight value, the first color temperature information and the second color temperature information; and adjusting the white balance of the shot image by using the target color temperature information.
2. The method according to claim 1, wherein the determining a preset weight value based on the first color temperature information and the brightness information comprises:
searching a first confidence value corresponding to the first color temperature information from a corresponding relation between preset color temperature and confidence, wherein the confidence in the corresponding relation between the preset color temperature and the confidence is preset according to the error rate between the preset color temperature information and standard color temperature information acquired by the color temperature sensor;
determining the first confidence value as the preset weight value.
3. The method of claim 1, wherein determining a preset weight value based on the brightness information comprises:
comparing the brightness information with a preset brightness threshold value to obtain a comparison result;
and determining a preset weight value corresponding to the brightness information from the corresponding relation between the preset brightness and the weight value according to the comparison result.
4. The method according to claim 1, wherein the determining a preset weight value based on the first color temperature information and the brightness information comprises:
determining a spectral energy distribution based on the first color temperature information and the brightness information;
determining a current shooting light source according to the spectral energy distribution;
and determining the preset weight value according to the current shooting light source.
5. The method of claim 1, wherein the determining a preset weight value according to a field angle of the color temperature sensor comprises:
and determining a preset weight value corresponding to the field angle from the corresponding relation between the preset field angle and the weight value.
6. The method of claim 1, wherein determining second color temperature information for the captured image comprises:
acquiring R/G, B/G of the shot image and R/G, B/G of a color temperature sensor respectively;
the second color temperature information is determined according to R/G, B/G of the photographed image and R/G, B/G of a color temperature sensor.
7. The method of claim 6, wherein the determining the second color temperature information from the R/G, B/G of the captured image and the R/G, B/G of a color temperature sensor comprises:
determining a first distance between R/G, B/G of the photographed image and R/G, B/G of a color temperature sensor;
determining a weight value of the first distance according to the corresponding relation between the distance and the weight value;
obtaining a target R/G, B/G according to the weight value of the first distance and the R/G, B/G of the shot image;
converting the target R/G, B/G into the second color temperature information.
8. A white balance adjustment device, characterized by comprising:
the determining unit is used for respectively determining first color temperature information acquired by the color temperature sensor, second color temperature information of a shot image and brightness information; determining a preset weight value based on the first color temperature information, the brightness information and/or a field angle of the color temperature sensor; determining target color temperature information according to the preset weight value, the first color temperature information and the second color temperature information;
and the white balance adjusting unit is used for adjusting the white balance of the shot image by utilizing the target color temperature information.
9. A white balance adjustment device, characterized by comprising: a processor, a memory, and a communication bus; the processor, when executing the execution program stored in the memory, implements the method of any of claims 1-7.
10. A storage medium on which a computer program is stored which, when being executed by a processor, carries out the method according to any one of claims 1 to 7.
CN202010486145.2A 2020-06-01 2020-06-01 White balance adjusting method, device and storage medium Pending CN113766206A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CN202010486145.2A CN113766206A (en) 2020-06-01 2020-06-01 White balance adjusting method, device and storage medium

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CN202010486145.2A CN113766206A (en) 2020-06-01 2020-06-01 White balance adjusting method, device and storage medium

Publications (1)

Publication Number Publication Date
CN113766206A true CN113766206A (en) 2021-12-07

Family

ID=78782688

Family Applications (1)

Application Number Title Priority Date Filing Date
CN202010486145.2A Pending CN113766206A (en) 2020-06-01 2020-06-01 White balance adjusting method, device and storage medium

Country Status (1)

Country Link
CN (1) CN113766206A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114554170A (en) * 2022-03-08 2022-05-27 三星半导体(中国)研究开发有限公司 Method of multi-sensor white balance synchronization and electronic device using the same

Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030063197A1 (en) * 2001-09-14 2003-04-03 Tadashi Sugiki Illumination light color estimating method of obtaining white balance and image sensing apparatus
CN107343143A (en) * 2017-06-30 2017-11-10 广东欧珀移动通信有限公司 A kind of image processing method, device, terminal and computer-readable recording medium
CN110602473A (en) * 2019-10-24 2019-12-20 维沃移动通信有限公司 White balance calibration method and device

Patent Citations (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US20030063197A1 (en) * 2001-09-14 2003-04-03 Tadashi Sugiki Illumination light color estimating method of obtaining white balance and image sensing apparatus
CN107343143A (en) * 2017-06-30 2017-11-10 广东欧珀移动通信有限公司 A kind of image processing method, device, terminal and computer-readable recording medium
CN110602473A (en) * 2019-10-24 2019-12-20 维沃移动通信有限公司 White balance calibration method and device

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN114554170A (en) * 2022-03-08 2022-05-27 三星半导体(中国)研究开发有限公司 Method of multi-sensor white balance synchronization and electronic device using the same

Similar Documents

Publication Publication Date Title
CN108174118B (en) Image processing method and device and electronic equipment
JP5398156B2 (en) WHITE BALANCE CONTROL DEVICE, ITS CONTROL METHOD, AND IMAGING DEVICE
KR102346522B1 (en) Image processing device and auto white balancing metohd thereof
CN108419028B (en) Image processing method, image processing device, computer-readable storage medium and electronic equipment
US9959601B2 (en) Distortion rectification method and terminal
US20100149372A1 (en) Image data processing with multiple cameras
CN108234971B (en) White balance parameter determines method, white balance adjustment method and device, storage medium, terminal
TWI532385B (en) White balance method and apparatus thereof
CN108616700B (en) Image processing method and device, electronic equipment and computer readable storage medium
CN109191403A (en) Image processing method and device, electronic equipment, computer readable storage medium
WO2023016320A1 (en) Image processing method and apparatus, and device and medium
EP4093015A1 (en) Photographing method and apparatus, storage medium, and electronic device
CN113766206A (en) White balance adjusting method, device and storage medium
CN107464225B (en) Image processing method, image processing device, computer-readable storage medium and mobile terminal
WO2023015993A9 (en) Chromaticity information determination method and related electronic device
CN110099207B (en) Effective image calculation method for overcoming camera instability
CN112995633B (en) Image white balance processing method and device, electronic equipment and storage medium
CN113497927B (en) White balance adjustment method, device, terminal and storage medium
CN114286000B (en) Image color processing method and device and electronic equipment
CN115514948B (en) Image adjusting method and electronic device
WO2022067761A1 (en) Image processing method and apparatus, capturing device, movable platform, and computer readable storage medium
CN113271450B (en) White balance adjusting method, image processing device and image processing system
CN114339028A (en) Photographing method, electronic device and computer-readable storage medium
CN115514947B (en) Algorithm for automatic white balance of AI (automatic input/output) and electronic equipment
CN112995634B (en) Image white balance processing method and device, electronic equipment and storage medium

Legal Events

Date Code Title Description
PB01 Publication
PB01 Publication
SE01 Entry into force of request for substantive examination
SE01 Entry into force of request for substantive examination