CN114697629A - White balance processing method and device, storage medium and terminal equipment - Google Patents
White balance processing method and device, storage medium and terminal equipment Download PDFInfo
- Publication number
- CN114697629A CN114697629A CN202011568579.3A CN202011568579A CN114697629A CN 114697629 A CN114697629 A CN 114697629A CN 202011568579 A CN202011568579 A CN 202011568579A CN 114697629 A CN114697629 A CN 114697629A
- Authority
- CN
- China
- Prior art keywords
- video image
- color temperature
- white balance
- brightness
- parameter
- 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.)
- Granted
Links
Images
Classifications
-
- H—ELECTRICITY
- H04—ELECTRIC COMMUNICATION TECHNIQUE
- H04N—PICTORIAL COMMUNICATION, e.g. TELEVISION
- H04N9/00—Details of colour television systems
- H04N9/64—Circuits for processing colour signals
- H04N9/73—Colour balance circuits, 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)
- Controls And Circuits For Display Device (AREA)
Abstract
The application discloses a white balance processing method, a white balance processing device, a storage medium and terminal equipment, wherein the white balance processing method comprises the steps of obtaining an environmental parameter corresponding to a video image to be processed and a display parameter of display equipment; and performing white balance processing on the video image to be processed based on the environmental parameter and the display parameter to obtain an output image. When the to-be-processed video image is subjected to white balance processing, the environmental parameters and the backlight parameters are used as reference factors, so that the influence of the display parameters of the display equipment on the to-be-processed video image can be avoided, and the image quality of an output image displayed on the display equipment can be improved.
Description
Technical Field
The present application relates to the field of display technologies, and in particular, to a white balance processing method and apparatus, a storage medium, and a terminal device.
Background
Along with the quick transmission of the intelligent terminal, the intelligent terminal can be generally connected with the shooting device and plays a video image shot by the shooting device in real time. However, the camera is affected by the display interface of the terminal device during the process of shooting the image, so that the video image shot by the camera has the problem of color distortion.
Disclosure of Invention
The technical problem to be solved by the present application is to provide a white balance processing method, device, storage medium and terminal device, aiming at the defects of the prior art.
In order to solve the above technical problem, a first aspect of the embodiments of the present application provides a white balance processing method, including:
acquiring an environment parameter corresponding to a video image to be processed and a display parameter of a display device, wherein the environment parameter is an environment parameter when the video image to be processed is shot, and the display device is used for displaying the video image to be processed;
and carrying out white balance processing on the video image to be processed based on the environment parameter and the display parameter to obtain an output image.
According to the white balance processing method, the shooting device corresponding to the video image to be processed is connected with the display equipment, and the display equipment is used for synchronously playing the video image shot by the shooting device in real time.
The white balance processing method, wherein the environment parameters comprise environment brightness and environment color temperature values, and the display parameters comprise backlight brightness and backlight color temperature values; the white balance processing the to-be-processed video image based on the environmental parameter and the display parameter to obtain an output image specifically includes:
determining a brightness parameter corresponding to the video image based on the ambient brightness and the backlight brightness, wherein the brightness parameter is used for reflecting a brightness difference between the ambient brightness and the backlight brightness;
and performing white balance processing on the video image to be processed to obtain an output image based on the brightness parameter, the environment color temperature value and the backlight color temperature value.
The white balance processing method, wherein the process of obtaining the ambient brightness specifically includes:
acquiring the light sensitivity, the aperture value and the shutter speed configured by a shooting device for shooting the video image to be processed;
the ambient brightness is determined based on the acquired sensitivity, aperture value, and shutter speed.
The white balance processing method, wherein the determining, based on the ambient brightness and the backlight brightness, a brightness parameter corresponding to the video image specifically includes:
a ratio of the backlight brightness to the ambient brightness is determined, and a brightness parameter is determined based on the ratio.
The white balance processing method, wherein the performing white balance processing on the video image to be processed based on the brightness parameter, the ambient color temperature value, and the backlight color temperature value to obtain an output image specifically includes:
determining a target color temperature value based on the brightness parameter, the environment color temperature value and the backlight color temperature value;
and taking the target color temperature value as a color temperature value of a video image to be processed, and carrying out white balance processing on the video image to be processed to obtain an output image.
The white balance processing method, wherein the determining a target color temperature value based on the brightness parameter, the ambient color temperature value, and the backlight color temperature value specifically includes:
determining a first weight coefficient corresponding to the environment color temperature value and a second weight coefficient corresponding to the backlight color temperature value according to the brightness parameter;
determining the target color temperature value based on the ambient color temperature value, the first weight coefficient, the backlight color temperature, and the second weight coefficient.
A second aspect of the embodiments of the present application provides a white balance processing apparatus, including:
the device comprises an acquisition module, a processing module and a display module, wherein the acquisition module is used for acquiring environmental parameters corresponding to a video image to be processed and display parameters of display equipment, the environmental parameters are environmental parameters when the video image to be processed is shot, and the display equipment is used for displaying the video image to be processed;
and the processing module is used for carrying out white balance processing on the video image to be processed based on the environment parameter and the display parameter so as to obtain an output image.
A third aspect of embodiments of the present application provides a computer-readable storage medium storing one or more programs, which are executable by one or more processors to implement steps in a white balance processing method as described in any one of the above.
A fourth aspect of embodiments of the present application provides a display device, including: a processor, a memory, and a communication bus; the memory has stored thereon a computer readable program executable by the processor;
the communication bus realizes connection communication between the processor and the memory;
the processor, when executing the computer readable program, implements the steps in the white balance processing method as described in any one of the above.
Has the advantages that: compared with the prior art, the white balance processing method, the device, the storage medium and the terminal equipment are provided, and the white balance processing method comprises the steps of obtaining an environmental parameter corresponding to a video image to be processed and a display parameter of the display equipment; and performing white balance processing on the video image to be processed based on the environmental parameter and the display parameter to obtain an output image. When the to-be-processed video image is subjected to white balance processing, the environmental parameters and the backlight parameters are used as reference factors, so that the influence of the display parameters of the display equipment on the to-be-processed video image can be avoided, and the image quality of an output image displayed on the display equipment can be improved.
Drawings
In order to more clearly illustrate the technical solutions in the embodiments of the present application, the drawings needed to be used in the description of the embodiments are briefly introduced below, and it is obvious that the drawings in the following description are only some embodiments of the present application, and it is obvious for those skilled in the art that other drawings can be obtained according to the drawings without any inventive work.
Fig. 1 is a flowchart of a white balance processing method provided in the present application.
Fig. 2 is a flowchart illustrating a white balance processing method provided in the present application.
Fig. 3 is a schematic structural diagram of a white balance processing apparatus according to the present application.
Fig. 4 is a schematic structural diagram of a display device provided in the present application.
Detailed Description
In order to make the purpose, technical solution, and effects of the present application clearer and clearer, the present application will be further described in detail below with reference to the accompanying drawings and examples. 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.
As used herein, the singular forms "a", "an", "the" and "the" are intended to include the plural forms as well, unless the context clearly indicates otherwise. It will be further understood that the terms "comprises" and/or "comprising," when used in this specification, specify the presence of stated features, integers, steps, operations, elements, and/or components, but do not preclude the presence or addition of one or more other features, integers, steps, operations, elements, components, and/or groups thereof. It will be understood that when an element is referred to as being "connected" or "coupled" to another element, it can be directly connected or coupled to the other element or intervening elements may also be present. Further, "connected" or "coupled" as used herein may include wirelessly connected or wirelessly coupled. As used herein, the term "and/or" includes all or any element and all combinations of one or more of the associated listed items.
It will be understood by those within the art that, unless otherwise defined, all terms (including technical and scientific terms) used herein have the same meaning as commonly understood by one of ordinary skill in the art to which this application belongs. It will be further understood that terms, such as those defined in commonly used dictionaries, should be interpreted as having a meaning that is consistent with their meaning in the context of the prior art and will not be interpreted in an idealized or overly formal sense unless expressly so defined herein. In addition, it should be understood that, the sequence numbers and sizes of the steps in this embodiment do not mean the execution sequence, and the execution sequence of each process is determined by the function and the inherent logic of the process, and should not constitute any limitation on the implementation process of the embodiment of the present application.
The inventor finds that with the rapid transmission of the intelligent terminal, the intelligent terminal can be generally connected with the shooting device and plays the video image shot by the shooting device in real time. However, when the shooting device shoots an image, the shooting device shoots the image in real time and synchronously displays the shot image on the display device, and the display device has a delay in the process of displaying the shot image, so that when the ambient brightness is less than the display brightness of the display device, the light and shadow of the display device when the previous shot image is displayed can affect the shooting scene tone of the current shot image, so that the shooting scene tone of the current shot image is changed; when the shooting device detects that the color tone change of the shooting scene modifies the color temperature of the shot image to generate color roll, the problem of color distortion of the video image shot by the shooting device is caused.
In order to solve the above problem, in the embodiment of the present application, an environmental parameter corresponding to a video image to be processed and a display parameter of a display device are obtained; and performing white balance processing on the video image to be processed based on the environmental parameter and the display parameter to obtain an output image. When the to-be-processed video image is subjected to white balance processing, the environmental parameters and the backlight parameters are used as reference factors, so that the influence of the display parameters of the display equipment on the to-be-processed video image can be avoided, and the image quality of an output image displayed on the display equipment can be improved.
The following further describes the content of the application by describing the embodiments with reference to the attached drawings.
The present embodiment provides a white balance processing method, which may apply a display device connected to and displaying a video image captured by a capturing apparatus, for example, a camera, a television, and a camera connected to the television; the camera is used for shooting video images, and the television is used for displaying the video images shot by the camera. The shooting device shoots video images in real time, and the display equipment synchronously displays the video images shot by the shooting device in real time, in other words, the shooting device displays the video images shot in real time on the display equipment in real time so as to display the video images shot in real time through the display equipment.
The shooting device and the display device may be connected through a data line (e.g., a USB data item) or through wireless communication (e.g., WIFI communication), and the shooting device may also be built in the display device as a built-in component of the display device, for example, if the display device is a television with a built-in camera, the display device is a television, and the shooting device is a camera. Certainly, in practical applications, the photographing device and the display device may also communicate in a manner, for example, the photographing device and the display device are both connected to a cloud, and the communication between the photographing device and the display device is realized through the cloud; the embodiment does not necessarily describe, and all the modes that the photographing device can be connected with the display device are within the protection scope of the present application.
As shown in fig. 1 and fig. 2, the white balance processing method provided in this embodiment specifically includes:
and S10, acquiring the environment parameters corresponding to the video image to be processed and the display parameters of the display equipment.
Specifically, the environment parameter is an environment parameter when the shooting device shoots the video image to be processed, and is used for reflecting environment information when the video image to be processed is shot; the display parameter may be a display parameter when the display device displays the video image to be processed. The environment parameters may include environment brightness and an environment color temperature value, and the display parameters may include backlight brightness and a backlight color temperature value, where the display device is configured to display a video image to be processed, and the display device is configured to synchronously play a video image shot by the shooting device in real time. The display assembly is provided with a display for displaying pictures, and the display device can be a television terminal, a mobile terminal (such as a smart phone) and the like.
In an implementation manner of this embodiment, the shooting device corresponding to the video image to be processed is connected to the display device, and the display device is configured to synchronously play the video image shot by the shooting device in real time, for example, the display device may be a television terminal, and the shooting device is a camera. Therefore, the application scene of the embodiment can be that the television terminal is connected with the camera, the camera shoots the video image in real time, and the display device carries out white balance processing on the camera to adjust the color temperature of the shot video image in the process of displaying the video image shot by the camera in real time, so that the shooting device outputs the output image. Therefore, the problem that color roll occurs in the video image shot by the shooting device due to the influence of the backlight brightness and the backlight color temperature value of the display equipment in the shooting process can be avoided, the image quality of the shot video image can be improved, and the image instruction of the video image displayed by the display equipment can be improved.
In addition, in practical applications, the white balance processing method provided by the present embodiment may be configured in a camera, and the white balance processing method is used as a white balance processing device, and when the white balance processing needs to be performed on the camera, the white balance processing device is started to execute the white balance processing method provided by the present embodiment. The white balance is an index for describing the accuracy of white color generated by mixing red, green and blue three primary colors in the display equipment, is generated along with the reality of reproduced color of the electronic image, and can be used for color restoration and color tone processing through white balance adjustment.
The ambient color temperature value may be an ambient color temperature value of an environment where the photographing device is located, where the color temperature is a physical quantity used for defining a color of a light source in the lighting optics, that is, a black body is heated to a temperature, a color of light emitted by the black body is the same as a color of light emitted by the light source, and the temperature heated by the black body is referred to as a color temperature of the light source, which is referred to as a color temperature of the light source for short. The units are expressed in "K" (Kelvin temperature units). In this embodiment, the color temperature may be represented in the form of color temperature coordinates, where the color temperature coordinates are coordinates of standard points of a blackbody locus, the color temperature coordinates include a first color coordinate and a second color coordinate, and may be represented in the form of (x, y), where x represents the first color temperature coordinate, and y represents the second color temperature coordinate. In addition, the corresponding relation between the color temperature and the color temperature coordinate is preset, for example, the color temperature coordinate corresponding to the color temperature 2500k is (0.4771,0.4134), and the like.
And S20, based on the environment parameter and the display parameter, performing white balance processing on the video image to be processed to obtain an output image.
Specifically, the white balance processing refers to adjusting a color temperature of a video image to improve color reality of a shot image, where the color reality refers to a similarity between an object color of an object carried by the video image and a real color of the object. For example, the object in the video image is a white shirt, and the similarity is the similarity between the color of the white shirt appearing in the video image and the color of the white shirt itself. The output image is an image for displaying on the display device, and in this embodiment, the white balance processing may perform white balance processing on the photographing device so that a video image photographed by the photographing device is the output image.
In one implementation manner of this embodiment, the environment parameter includes an environment brightness and an environment color temperature value, and the display parameter includes a backlight brightness and a backlight color temperature value; the white balance processing the to-be-processed video image based on the environmental parameter and the display parameter to obtain an output image specifically includes:
determining a brightness parameter corresponding to the video image based on the ambient brightness and the backlight brightness;
and performing white balance processing on the video image to be processed to obtain an output image based on the brightness parameter, the environment color temperature value and the backlight color temperature value.
Specifically, the brightness parameter is used to reflect a brightness difference between an ambient brightness and a backlight brightness, where the ambient brightness may be an ambient brightness of an environment where the camera is located, and the backlight brightness is a backlight brightness of the display device. The ambient brightness may be determined based on configuration parameters configured by the camera itself, where the configuration parameters may include sensitivity, aperture value, and shutter speed. And accordingly. In an implementation manner of this embodiment, the obtaining process of the ambient brightness specifically includes:
acquiring the light sensitivity, the aperture value and the shutter speed configured by a shooting device for shooting the video image to be processed;
the ambient brightness is determined based on the acquired sensitivity, aperture value, and shutter speed.
Specifically, the shutter speed is used to reflect the camera shutter opening time, for example, a shutter speed of 4 indicates that the shutter opening time is 1/4 seconds, and for example, a shutter speed of 125 indicates that the shutter opening time is 1/125 seconds. The aperture is used to reflect the size of the aperture of the camera, wherein the aperture value can be represented by F, such as F1.8, F2.8, F8, F22, F32, etc., and the smaller the number, the larger the aperture indicating that the aperture is open, such as F1.8 is larger than F32. The aperture value corresponds to the light entering amount of the camera, and when the aperture is small, the light entering amount of the camera is small; conversely, when the aperture is large, the amount of light entering the camera is large. Sensitivity refers to the degree of sensitivity of a camera to light, and the higher the sensitivity, the stronger the sensitivity to light, whereas the lower the sensitivity, the lower the sensitivity to light. English notation of sensitivity is ISO, and sensitivity can be expressed as ISO100, ISO200 … … ISO1600, ISO25600, or the like, where the larger the number after ISO, the higher the sensitivity; conversely, the smaller the number after ISO, the lower the sensitivity.
In one implementation of this embodiment, the sensitivity, the aperture value, and the shutter speed may be configuration parameters configured for the photographing device, and when the sensitivity, the aperture value, and the shutter speed need to be acquired, the configuration parameters configured for the photographing device are read, and the sensitivity, the aperture value, and the shutter speed of the photographing device are acquired through the configuration parameters. In addition, the photographing device adjusts the sensitivity, the aperture value and the shutter speed during the photographing process, wherein the adjustment process of the sensitivity, the aperture value and the shutter speed may be: the photographing apparatus collects ambient light to obtain an optical signal (for example, the optical signal is collected by an optical sensor, etc.), converts the optical signal into an electrical signal, converts the electrical signal into an analog signal (i.e., an image), and adjusts one or more of sensitivity, an aperture value, and a shutter speed when a target brightness difference between an image brightness and a preset value is greater than a preset threshold value, so that the target brightness difference between the image brightness and the preset value is less than or equal to the preset threshold value.
In one implementation of this embodiment, after acquiring the sensitivity, the aperture value, and the shutter speed, the sensitivity, the aperture value, the shutter speed, and the ambient brightness satisfy an equation: av + Tv ═ Sv + Bv, where Av denotes an aperture value, Tv denotes a shutter speed, Sv denotes sensitivity, and Bv denotes ambient brightness. Based on the above equation, a calculation formula of the ambient brightness can be derived, wherein the calculation formula of the ambient brightness can be expressed as: bv ═ Av + Tv-Sv.
In an implementation manner of this embodiment, before the obtaining of the environment parameter corresponding to the video image to be processed and the display parameter of the display device, the method includes:
detecting whether a video image shot by a shooting device in real time is played through display equipment;
and if the video image shot by the shooting device in real time is detected to be played through the display equipment, acquiring the environmental parameters corresponding to the shooting device and the display parameters of the display equipment.
Specifically, the detecting whether the video image shot by the shooting device in real time is played through the display device refers to detecting whether the display device plays the video image shot by the shooting device in real time synchronously, wherein the detecting operation can be realized by the display device, that is, the display device detects whether the display device plays the video image shot by the shooting device in real time, and if the display device plays the video image shot by the shooting device in real time, the display device sends real feedback information to the shooting device; and if the video image shot by the shooting device in real time is not played, sending feedback information carrying false information to the shooting device so that the shooting device determines whether to acquire the environment parameter corresponding to the video image to be processed and the display parameter of the display equipment based on the feedback information. In addition, the backlight color temperature value of the display device and the backlight brightness of the display device can also be determined by the display device reading its own configuration parameters.
For example, the following steps are carried out: the shooting device is connected with the display equipment through a USB data line, and when the display equipment detects that the display equipment is connected with the shooting device and detects that a player configured by the display equipment plays video images, the display equipment determines a video source corresponding to the video images through the player; if the video source is the shooting device, the display device plays the video image shot by the shooting device in real time, and sends real feedback information to the shooting device. In addition, when it is not detected that the video image shot by the camera in real time is played through the display device, the camera continues to detect whether the video image shot by the camera in real time is played through the display device.
In an implementation manner of this embodiment, the determining, based on the ambient brightness and the backlight brightness, a brightness parameter corresponding to the video image specifically includes:
a ratio of the backlight brightness to the ambient brightness is determined, and a brightness parameter is determined based on the ratio.
Specifically, the ambient brightness is the ambient brightness of the environment where the photographing apparatus is located, the backlight brightness is the backlight brightness of the display device, and the ratio is used for reflecting the difference between the ambient brightness and the backlight brightness of the display device, where the ratio is equal to the backlight brightness/the ambient brightness. In this embodiment, the brightness parameter may be determined based on a ratio of the backlight brightness to the ambient brightness, and in other implementations of this embodiment, the brightness parameter is determined based on a ratio of the ambient brightness to the backlight brightness, and may also be based on a difference between the ambient brightness and the backlight brightness, which is not described here.
In this embodiment, the formula for calculating the brightness parameter may be:
B_scale=100*B_tv/B_scene
where B _ scale represents the brightness parameter, B _ tv represents the backlight brightness, and/B _ scene represents the ambient brightness.
In an implementation manner of this embodiment, the performing, based on the luminance parameter, the ambient color temperature value, and the backlight color temperature value, white balance processing on the video image to be processed to obtain an output image specifically includes:
determining a target color temperature value based on the brightness parameter, the environment color temperature value and the backlight color temperature value;
and taking the target color temperature value as a color temperature value of a video image to be processed, and carrying out white balance processing on the video image to be processed to obtain an output image.
Specifically, the target color temperature value is used as a color temperature value of a video image captured by the capturing device, where the video image is a video image captured by the capturing device when the ambient brightness and the ambient color temperature are obtained. It can be understood that, after a shooting device finishes shooting a first video image, the shooting device may acquire a brightness parameter, the ambient color temperature value, and the backlight color temperature value, determine a target color temperature value based on the brightness parameter, the ambient color temperature value, and the backlight color temperature value, and use the determined color temperature value as a color temperature value corresponding to a second video image, where the second video image and the first video image are two consecutive images, and a shooting time of the second video image is later than a shooting time of the first video image.
In an implementation manner of this embodiment, the determining a target color temperature value based on the luminance parameter, the ambient color temperature value, and the backlight color temperature value specifically includes:
determining a first weight coefficient corresponding to the environment color temperature value and a second weight coefficient corresponding to the backlight color temperature value according to the brightness parameter;
determining the target color temperature value based on the ambient color temperature value, the first weight coefficient, the backlight color temperature, and the second weight coefficient.
Specifically, the first weight coefficient is used for reflecting the importance degree of the environmental color temperature value, and the second weight coefficient is used for reflecting the importance degree of the backlight color temperature value. In one implementation manner of this embodiment, the first weight coefficient and the second weight coefficient may both be a value between 0 and 1, and the sum of the first weight coefficient and the second weight coefficient is 1, where the value between 0 and 1 includes 0 and 1.
In one implementation, the first weighting factor may be equal to a ratio of a luminance parameter to 100, and the second weighting factor may be equal to a ratio of 100 to a difference between the luminance parameter and 100, so that as the luminance parameter decreases, an influence of a backlight color temperature value on a color temperature of a captured image decreases, and a color temperature value of each captured video image may be smoothly transited by proportionally decreasing a weight value of the backlight color temperature.
Based on this, the calculation formula of the target color temperature value can be as follows:
CCT_out=CCT_tv*B_scale/100+CCT_scene*(100-B_scale)/100
wherein, B _ scale represents a brightness parameter, CCT _ out represents a target color temperature, CCT _ scene is an ambient color temperature value, and CCT _ tv is a backlight color temperature value.
In summary, the present embodiment provides a white balance processing method, where the white balance processing method includes acquiring an environmental parameter corresponding to a video image to be processed and a display parameter of a display device; and performing white balance processing on the video image to be processed based on the environmental parameter and the display parameter to obtain an output image. When the to-be-processed video image is subjected to white balance processing, the environmental parameters and the backlight parameters are used as reference factors, so that the influence of the display parameters of the display equipment on the to-be-processed video image can be avoided, and the image quality of an output image displayed on the display equipment can be improved.
Based on the white balance processing method, the present embodiment provides a color temperature adjusting device, as shown in fig. 3, the color temperature adjusting device includes:
an obtaining module 100, configured to obtain an environmental parameter corresponding to a video image to be processed and a display parameter of a display device, where the environmental parameter is an environmental parameter when the video image to be processed is shot, and the display device is configured to display the video image to be processed;
a processing module 200, configured to perform white balance processing on the video image to be processed based on the environment parameter and the display parameter to obtain an output image.
It should be noted that the working process of the color temperature adjusting apparatus provided in this embodiment is the same as the working process of the color temperature adjusting method, and details are not repeated here, and the working process of the color temperature adjusting method may be specifically defined.
Based on the white balance processing method described above, the present embodiment provides a computer-readable storage medium storing one or more programs, which are executable by one or more processors, to implement the steps in the white balance processing method described above in the embodiments.
Based on the white balance processing method, the present application further provides a terminal device, as shown in fig. 4, including at least one processor (processor) 20; a display screen 21; and a memory (memory)22, and may further include a communication Interface (Communications Interface)23 and a bus 24. The processor 20, the display 21, the memory 22 and the communication interface 23 can communicate with each other through the bus 24. The display screen 21 is configured to display a user guidance interface preset in the initial setting mode. The communication interface 23 may transmit information. The processor 20 may call logic instructions in the memory 22 to perform the methods in the embodiments described above.
Furthermore, the logic instructions in the memory 22 may be implemented in software functional units and stored in a computer readable storage medium when sold or used as a stand-alone product.
The memory 22, which is a computer-readable storage medium, may be configured to store a software program, a computer-executable program, such as program instructions or modules corresponding to the methods in the embodiments of the present disclosure. The processor 20 executes the functional application and data processing, i.e. implements the method in the above-described embodiments, by executing the software program, instructions or modules stored in the memory 22.
The memory 22 may include a storage program area and a storage data area, wherein the storage program area may store an operating system, an application program required for at least one function; the storage data area may store data created according to the use of the display device, and the like. Further, the memory 22 may include a high speed random access memory and may also include a non-volatile memory. For example, a variety of media that can store program codes, such as a usb disk, a removable hard disk, a Read-Only Memory (ROM), a Random Access Memory (RAM), a magnetic disk, or an optical disk, may also be transient storage media.
In addition, the specific processes loaded and executed by the storage medium and the instruction processors in the terminal device are described in detail in the method, and are not stated herein.
Finally, it should be noted that: the above embodiments are only used to illustrate the technical solutions of the present application, and not to limit the same; although the present application has been described in detail with reference to the foregoing embodiments, it should be understood by those of ordinary skill in the art that: the technical solutions described in the foregoing embodiments may still be modified, or some technical features may be equivalently replaced; and such modifications or substitutions do not depart from the spirit and scope of the corresponding technical solutions in the embodiments of the present application.
Claims (10)
1. A white balance processing method, characterized by comprising:
acquiring an environment parameter corresponding to a video image to be processed and a display parameter of a display device, wherein the environment parameter is an environment parameter when the video image to be processed is shot, and the display device is used for displaying the video image to be processed;
and carrying out white balance processing on the video image to be processed based on the environment parameter and the display parameter to obtain an output image.
2. The white balance processing method according to claim 1, wherein a camera corresponding to the video image to be processed is connected to the display device, and the display device is configured to synchronously play the video image captured by the camera in real time.
3. The white balance processing method according to claim 1, wherein the environment parameters include an environment brightness and an environment color temperature value, and the display parameters include a backlight brightness and a backlight color temperature value; the white balance processing the to-be-processed video image based on the environmental parameter and the display parameter to obtain an output image specifically includes:
determining a brightness parameter corresponding to the video image based on the ambient brightness and the backlight brightness, wherein the brightness parameter is used for reflecting a brightness difference between the ambient brightness and the backlight brightness;
and performing white balance processing on the video image to be processed to obtain an output image based on the brightness parameter, the environment color temperature value and the backlight color temperature value.
4. The white balance processing method according to claim 3, wherein the obtaining process of the ambient brightness specifically includes:
acquiring the light sensitivity, the aperture value and the shutter speed configured by a shooting device for shooting the video image to be processed;
the ambient brightness is determined based on the acquired sensitivity, aperture value, and shutter speed.
5. The white balance processing method according to claim 3, wherein the determining, based on the ambient brightness and the backlight brightness, a brightness parameter corresponding to the video image specifically includes:
a ratio of the backlight brightness to the ambient brightness is determined, and a brightness parameter is determined based on the ratio.
6. The white balance processing method according to claim 3, wherein the performing white balance processing on the video image to be processed to obtain an output image based on the brightness parameter, the ambient color temperature value, and the backlight color temperature value specifically comprises:
determining a target color temperature value based on the brightness parameter, the environment color temperature value and the backlight color temperature value;
and taking the target color temperature value as a color temperature value of a video image to be processed, and carrying out white balance processing on the video image to be processed to obtain an output image.
7. The white balance processing method according to claim 6, wherein the determining a target color temperature value based on the luminance parameter, the ambient color temperature value, and the backlight color temperature value specifically comprises:
determining a first weight coefficient corresponding to the environment color temperature value and a second weight coefficient corresponding to the backlight color temperature value according to the brightness parameter;
determining the target color temperature value based on the ambient color temperature value, the first weight coefficient, the backlight color temperature, and the second weight coefficient.
8. A white balance processing apparatus, characterized by comprising:
the device comprises an acquisition module, a processing module and a display module, wherein the acquisition module is used for acquiring environmental parameters corresponding to a video image to be processed and display parameters of display equipment, the environmental parameters are environmental parameters when the video image to be processed is shot, and the display equipment is used for displaying the video image to be processed;
and the processing module is used for carrying out white balance processing on the video image to be processed based on the environment parameter and the display parameter so as to obtain an output image.
9. A computer-readable storage medium storing one or more programs, the one or more programs being executable by one or more processors to implement the steps in the white balance processing method according to any one of claims 1 to 7.
10. A terminal device, comprising: a processor, a memory, and a communication bus; the memory has stored thereon a computer readable program executable by the processor;
the communication bus realizes connection communication between the processor and the memory;
the processor, when executing the computer readable program, implements the steps in the white balance processing method according to any one of claims 1 to 7.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011568579.3A CN114697629B (en) | 2020-12-25 | 2020-12-25 | White balance processing method and device, storage medium and terminal equipment |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN202011568579.3A CN114697629B (en) | 2020-12-25 | 2020-12-25 | White balance processing method and device, storage medium and terminal equipment |
Publications (2)
Publication Number | Publication Date |
---|---|
CN114697629A true CN114697629A (en) | 2022-07-01 |
CN114697629B CN114697629B (en) | 2023-10-20 |
Family
ID=82129707
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN202011568579.3A Active CN114697629B (en) | 2020-12-25 | 2020-12-25 | White balance processing method and device, storage medium and terminal equipment |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN114697629B (en) |
Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008092334A (en) * | 2006-10-03 | 2008-04-17 | Sony Corp | Imaging apparatus, camera, and image processing method |
KR20110054145A (en) * | 2009-11-17 | 2011-05-25 | 연세대학교 산학협력단 | Apparatus and method for compensating color of image, and the recording media storing the program performing the said method |
JP2011166491A (en) * | 2010-02-10 | 2011-08-25 | Nec Corp | Method, apparatus and program for adjustment of image quality in display section using camera for mobile device |
US20110317028A1 (en) * | 2010-06-24 | 2011-12-29 | Sony Corporation | Image processing apparatus, image taking apparatus, image processing method and image processing program |
CN107911683A (en) * | 2017-11-28 | 2018-04-13 | 广东欧珀移动通信有限公司 | Image white balancing treatment method, device, storage medium and electronic equipment |
WO2019076087A1 (en) * | 2017-10-20 | 2019-04-25 | 深圳Tcl数字技术有限公司 | Television and display image effect control method therefor, and computer-readable storage medium |
CN110113534A (en) * | 2019-05-13 | 2019-08-09 | Oppo广东移动通信有限公司 | A kind of image processing method, image processing apparatus and mobile terminal |
-
2020
- 2020-12-25 CN CN202011568579.3A patent/CN114697629B/en active Active
Patent Citations (7)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JP2008092334A (en) * | 2006-10-03 | 2008-04-17 | Sony Corp | Imaging apparatus, camera, and image processing method |
KR20110054145A (en) * | 2009-11-17 | 2011-05-25 | 연세대학교 산학협력단 | Apparatus and method for compensating color of image, and the recording media storing the program performing the said method |
JP2011166491A (en) * | 2010-02-10 | 2011-08-25 | Nec Corp | Method, apparatus and program for adjustment of image quality in display section using camera for mobile device |
US20110317028A1 (en) * | 2010-06-24 | 2011-12-29 | Sony Corporation | Image processing apparatus, image taking apparatus, image processing method and image processing program |
WO2019076087A1 (en) * | 2017-10-20 | 2019-04-25 | 深圳Tcl数字技术有限公司 | Television and display image effect control method therefor, and computer-readable storage medium |
CN107911683A (en) * | 2017-11-28 | 2018-04-13 | 广东欧珀移动通信有限公司 | Image white balancing treatment method, device, storage medium and electronic equipment |
CN110113534A (en) * | 2019-05-13 | 2019-08-09 | Oppo广东移动通信有限公司 | A kind of image processing method, image processing apparatus and mobile terminal |
Also Published As
Publication number | Publication date |
---|---|
CN114697629B (en) | 2023-10-20 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN108683862B (en) | Imaging control method, imaging control device, electronic equipment and computer-readable storage medium | |
CN108337433B (en) | Photographing method, mobile terminal and computer readable storage medium | |
CN108668093B (en) | HDR image generation method and device | |
CN105049718A (en) | Image processing method and terminal | |
CN111083458B (en) | Brightness correction method, system, equipment and computer readable storage medium | |
CN112669758B (en) | Display screen correction method, device, system and computer readable storage medium | |
CN107509044A (en) | Image combining method, device, computer-readable recording medium and computer equipment | |
CN103888667B (en) | Image capturing apparatus and control method thereof | |
CN112218065B (en) | Image white balance method, system, terminal device and storage medium | |
CN110708463B (en) | Focusing method, focusing device, storage medium and electronic equipment | |
JP2000350232A (en) | White balance device, correcting method for white balance, and storage medium | |
CN115065814B (en) | Screen color accuracy detection method and device | |
JP2017059927A (en) | User terminal, color correction system, and color correction method | |
CN111918047A (en) | Photographing control method and device, storage medium and electronic equipment | |
CN111866369A (en) | Image processing method and device | |
CN114697629B (en) | White balance processing method and device, storage medium and terminal equipment | |
CN112995633B (en) | Image white balance processing method and device, electronic equipment and storage medium | |
JP7455656B2 (en) | Image processing device, image processing method, and program | |
CN109584313B (en) | Camera calibration method and device, computer equipment and storage medium | |
JP5858735B2 (en) | Color correction apparatus and color correction method | |
JP2020191546A (en) | Image processing apparatus, image processing method, and program | |
CN117596489B (en) | Image processing method, image processing apparatus, electronic device, and storage medium | |
CN109379521A (en) | Camera calibration method, device, computer equipment and storage medium | |
CN111800626B (en) | Photographing consistency evaluation method and device, mobile terminal and storage medium | |
CN115348433A (en) | Image processing method, image processing apparatus, and computer-readable 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 | ||
GR01 | Patent grant | ||
GR01 | Patent grant |