White balance correction method and apparatus, terminal device, and storage medium
By establishing a correspondence between Gain component values and color coordinate changes in display devices, the target color coordinates and calibration display parameters for white balance correction can be quickly determined, solving the problems of long white balance correction time and high cost in the production process of display devices, and achieving fast and efficient white balance correction.
Patent Information
- Application Number
- CN202210793280.0
- Authority / Receiving Office
- CN · China
- Patent Type
- Patents(China)
- Current Assignee / Owner
- Filing Date
- 2022-07-05
- Publication Date
- 2025-11-11
- Estimated Expiration
- 2042-07-05
AI Technical Summary
The white balance calibration process for existing display devices requires a long time and has a high production cost.
By collecting the color coordinates of the target screen under initial and subsequent display parameters, the correspondence between the Gain component value and the change in color coordinates is established, and the target color coordinates and correction display parameters for white balance correction are quickly determined.
It enables rapid white balance correction, shortens the working time in the production process, and reduces production costs.
Smart Images

Figure CN117392959B_ABST
Abstract
Description
Technical Field
[0001] The embodiments of the present invention relate to the field of display technology, and in particular to white balance correction methods, apparatus, terminal devices and storage media. Background Technology
[0002] In the display industry, due to fluctuations in the consistency of backlight and LCD screen, it is impossible to guarantee the overall color temperature consistency of display devices during the factory production process. That is, when display devices in a batch that have just completed hardware production are displayed, some units may appear to have a warmer tone, while others may appear to have a cooler tone. In order to ensure the color temperature consistency of the final display devices and achieve good color reproduction of the displayed image, white balance calibration is required after hardware production.
[0003] When using existing white balance correction technology, the inventors found that existing solutions for white balance correction in standard / cool / warm modes directly measure the white point coordinates of the display device to be corrected, then make logical judgments based on the relative position of the target coordinates, and perform R gain / G gain / B gain reduction correction one by one, and then remeasure the white point coordinates, repeating the above process until the white balance correction specification range is met. The total correction time is about 20-30 seconds. The white balance correction required in the production process of the display device is time-consuming and has high production costs. Summary of the Invention
[0004] This invention provides a white balance calibration method, apparatus, terminal equipment, and storage medium to solve the technical problem that white balance calibration in the existing display equipment manufacturing process requires a long time and has a high production cost.
[0005] In a first aspect, embodiments of the present invention provide a white balance correction method, comprising:
[0006] The first color coordinates of the reference point of the target screen when it is displayed under the initial display parameters are collected. The initial display parameters include three Gain component values.
[0007] The reference point of the target screen is collected and displayed under three subsequent display parameters, which correspond to the three second color coordinates. The three subsequent display parameters are obtained by adjusting the three Gain component values sequentially from the initial display parameters.
[0008] Based on the first color coordinate and each second color coordinate, confirm the correspondence between the change in each Gain component value and the change in the color coordinate;
[0009] Obtain the target color coordinates for white balance correction. Based on the relative position of the target color coordinates and the first color coordinates, and using the initial display parameters as a reference, confirm the correction display parameters corresponding to the target color coordinates through the correspondence.
[0010] Secondly, embodiments of the present invention also provide a white balance correction device, comprising:
[0011] The first acquisition unit is used to acquire the first color coordinates of the reference point of the target screen when it is displayed under the initial display parameters. The initial display parameters include three Gain component values.
[0012] The second acquisition unit is used to acquire the three second color coordinates corresponding to the reference point of the target screen when it is displayed under three subsequent display parameters. The three subsequent display parameters are obtained by adjusting the three Gain component values sequentially from the initial display parameters.
[0013] The relationship confirmation unit is used to confirm the correspondence between the change in each Gain component value and the change in the color coordinate based on the first color coordinate and each second color coordinate;
[0014] The target correction unit is used to obtain the target color coordinates for white balance correction. Based on the relative position of the target color coordinates and the first color coordinates, and using the initial display parameters as a reference, the correction display parameters corresponding to the target color coordinates are determined through the correspondence.
[0015] Thirdly, embodiments of the present invention also provide a terminal device, including:
[0016] One or more processors;
[0017] Memory, used to store one or more computer programs;
[0018] When the one or more computer programs are executed by the one or more processors, the terminal device implements the white balance correction method as described in the first aspect.
[0019] Fourthly, embodiments of the present invention also provide a computer-readable storage medium having a computer program stored thereon, which, when executed by a processor, implements the white balance correction method as described in the first aspect.
[0020] The aforementioned white balance correction method, apparatus, terminal device, and storage medium, during the white balance correction process, acquire the first color coordinates of the reference point of the target screen when displayed under initial display parameters, the initial display parameters including three Gain component values; acquire the three second color coordinates corresponding to the reference point of the target screen when displayed under three subsequent display parameters, the three subsequent display parameters being obtained by sequentially adjusting the three Gain component values from the initial display parameters; based on the first color coordinates and each second color coordinate, confirm the correspondence between the change in each Gain component value and the change in the color coordinates; obtain the target color coordinates for white balance correction, and based on the relative position of the target color coordinates and the first color coordinates, using the initial display parameters as a reference, confirm the correction display parameters corresponding to the target color coordinates through the correspondence. During white balance calibration, the color coordinates of the reference point under four display parameters are detected. One color coordinate is used as the reference, and the other three color coordinates are used as controls. Based on the color coordinates of each control and the reference, and the display parameters, the relationship between each component and color coordinate in the display parameters is established. Based on the relationship, the assignment relationship from the reference color coordinates to the white balance calibration target is quickly realized, thereby achieving rapid white balance calibration, shortening the time required for white balance calibration in the production process of display devices, and reducing production costs. Attached Figure Description
[0021] Figure 1 A flowchart of a white balance correction method provided in an embodiment of the present invention;
[0022] Figure 2 This is a schematic diagram of the initial display parameters and subsequent display parameters in a white balance correction method provided in an embodiment of the present invention;
[0023] Figure 3 This is a schematic diagram of a white balance correction device provided in an embodiment of the present invention;
[0024] Figure 4 This is a schematic diagram of the structure of a terminal device provided in an embodiment of the present invention. Detailed Implementation
[0025] The present invention will now be described in further detail with reference to the accompanying drawings and embodiments. It should be understood that the specific embodiments described herein are for illustrative purposes only and not for limiting the invention. Furthermore, it should be noted that, for ease of description, the accompanying drawings show only the parts relevant to the present invention and not the entire structure.
[0026] It should be noted that, due to space limitations, this application specification does not exhaustively list all possible implementation methods. Those skilled in the art should be able to conceive after reading this application specification that, as long as the technical features do not contradict each other, any combination of technical features can constitute an optional implementation method.
[0027] The embodiments are described in detail below.
[0028] Figure 1 This is a flowchart of a white balance correction method provided in an embodiment of the present invention. The white balance correction method is used in a terminal device. As shown in the figure, the white balance correction method includes:
[0029] Step S101: Collect the first color coordinates of the reference point of the target screen when it is displayed under the initial display parameters. The initial display parameters include three Gain component values.
[0030] When display devices based on liquid crystal display modules display images, if they are displayed directly in the state they were in when the production was completed, the colors of the displayed images may vary between different units. For example, when displaying images with the display parameters corresponding to white and expecting to display a white image, some units may display a warmer tone, while others may display a cooler tone. Therefore, it is necessary to perform white balance correction on the image colors in the display device to achieve good color reproduction.
[0031] In this scheme, the target screen to be adjusted is first controlled to display under initial display parameters. For the display device, the goal of white balance correction includes the correction of standard white. Therefore, in this scheme, the initial display parameters can be set to (128, 128, 128) or (256, 256, 256), depending on the data processing bit depth of the target screen. The overall white balance correction process begins when the target screen is displaying white or close to white. The three values in the initial display parameters represent the R Gain component value, G Gain component value, and B Gain component value, respectively. Of course, the initial display parameters can also be set to other values, such as (127, 128, 129). To ensure the accuracy of subsequent correspondences, the initial display parameters can be set to display parameters close to white.
[0032] Color coordinates, also known as color representation coordinates, are the coordinates of a color. They are typically identified using X and Y coordinates. Color coordinates allow you to pinpoint a point on a chromaticity diagram, precisely representing the color. Color coordinates are acquired by a color analyzer, thus converting visually perceived color into recorded color data. The color analyzer doesn't necessarily acquire color data from the entire screen; instead, it uses its sensors to collect data from a specific area of the screen. This area serves as a reference point. The shape and size of the reference point are, to some extent, constrained by the shape and size of the color analyzer's sensor. If the sensor's sensing surface is rectangular, the reference point corresponds to a rectangular area; if it's circular, the reference point corresponds to a circular area. Of course, the shape of the sensing surface can be reconfigured in this solution based on specific design needs or the characteristics of the display device, for example, configuring it as a circle with a radius of 3cm.
[0033] For display devices, according to general visual physiology, the center of the screen is the focus of the user's visual attention. Therefore, the reference point can be the center of the target screen, or it can be another area of the target screen. Generally speaking, the reference point is an area of a predetermined shape and size located at the center of the target screen or other positions.
[0034] Taking a reference point as an area of a preset size located at the center of the target screen as an example, step S101 may include steps S1011 and S1012:
[0035] Step S1011: Control the target screen to display under the initial display parameters.
[0036] During white balance calibration, the target screen to be tested is controlled to display under initial display parameters, such as (128,128,128). Theoretically, a standard white dot should be displayed under these initial display parameters, but in reality, due to the limitations of the hardware itself, the theoretical display effect cannot be achieved.
[0037] Step S1012: Collect the color coordinates of the preset-size area displayed at the center of the target screen as the first color coordinates.
[0038] In the initial display state, a color analyzer is used to collect color data from a preset-sized area at the center of the target screen, obtaining color coordinates as the first color coordinates. For example, the first color coordinates corresponding to the initial display parameters (128, 128, 128) are (x0, y0). The first color coordinates are the starting point for white balance correction. The target color coordinates need to be obtained based on these coordinates. In fact, this involves confirming the actual display parameters corresponding to the target color coordinates, which deviate from the theoretical display parameters corresponding to the target color coordinates.
[0039] Step S102: Collect the three second color coordinates of the reference point of the target screen when it is displayed under the three subsequent display parameters. The three subsequent display parameters are obtained by adjusting the three Gain component values sequentially from the initial display parameters.
[0040] Based on the initial display parameters, adjusting the three Gain component values individually yields three new display parameters, which are the three subsequent display parameters. Displaying the image using these three subsequent display parameters results in three secondary color coordinates. For example, if the initial display parameters are (128, 128, 128), adjusting the R Gain component value by 28 individually results in new display parameters of (100, 128, 128). Displaying the image using these new parameters yields a secondary color coordinate (xr, yr). To prevent saturation during calibration, the Gain component values can be decreased sequentially, i.e., the three Gain component values can be reduced one by one.
[0041] It should be noted that steps S101 and S102 are only used to describe the need to collect the first color coordinate and the second color coordinate. The step numbering and the order of description are only for the convenience of description and do not mean that the first color coordinate must be collected first. In practice, the first color coordinate can be collected first and then the second color coordinate, or the second color coordinate can be collected first and then the first color coordinate, or the first color coordinate can be collected between the collection of a certain second color coordinate. The goal is to collect one first color coordinate and three second color coordinates as a whole.
[0042] Step S103: Based on the first color coordinate and each second color coordinate, confirm the correspondence between the change in each Gain component value and the change in the color coordinate.
[0043] Based on the specific changes in the first chromatic coordinate to each second chromatic coordinate, and the corresponding changes in the Gain component values that caused these changes, a mathematical model can be established to connect the causes and results of chromatic coordinate changes. This model represents the correspondence between the change in each Gain component value and the change in the chromatic coordinate. Overall, this correspondence describes the quantitative impact of each unit adjustment of the Gain component value on the chromatic coordinate values.
[0044] In implementing this solution, step S103 may include steps S1031 and S1032:
[0045] Step S1031: Based on the first color coordinate and each second color coordinate, determine the difference between the coordinate components of the first color coordinate and each second color coordinate.
[0046] The first and second color coordinates in the chromaticity diagram both include two coordinate components: an x-axis and a y-axis. The difference between the corresponding coordinate components is calculated. For example, the first color coordinates (x0, y0) and the second color coordinates (xr, yr) mentioned earlier correspond to the following differences between their two coordinate components: Δxr = |x0 - xr| and Δyr = |y0 - yr|. The change in the R Gain component value, ΔGain_R, has been confirmed as 28. Therefore, the calculation process for the change ΔGain_R under the previously described conditions is: Gain_R0 = 128, Gain_R = 100, ΔGain_R = Gain_R0 - Gain_R = 28.
[0047] Step S1032: Based on the ratio of the difference to the change in the corresponding Gain component value, determine the change in the coordinate component corresponding to the unit change in each Gain component value.
[0048] Based on the ratio of the difference to the change in the Gain component value, we can determine the change in the coordinate component corresponding to a unit change in the Gain component value. In other words, each unit change in the Gain component value can lead to multiple degrees of change in the coordinate components of the chromatic coordinates. For example, the effect of a unit change in the Gain component value on the coordinate components of the chromatic coordinates, corresponding to the horizontal axis, is represented as k_x_R, and can be calculated as k_x_R = Δxr / ΔGain_R = |x0 - xr| / (Gain_R0 - Gain_R); the effect on the vertical axis is represented as k_y_R, and can be calculated as k_y_R = Δyr / ΔGain_R = |y0 - yr| / (Gain_R0 - Gain_R).
[0049] The process of determining the influence of the Gain component value on the color coordinates using the first and second color coordinates and the corresponding Gain component values in this scheme can be found in [reference needed]. Figure 2 .like Figure 2 As shown, P w P represents the position of the first color coordinate corresponding to the first display parameter in the chromaticity diagram. r The second display parameter, obtained by adjusting only the R Gain component value in the first display parameter, corresponds to the position of the second color coordinates in the chromaticity diagram; P g The second display parameter, obtained by adjusting only the G Gain component value in the first display parameter, corresponds to the position of the second color coordinates in the chromaticity diagram; P b This refers to the second display parameter obtained by adjusting only the B Gain component value in the first display parameter, and the corresponding second color coordinates' position in the chromaticity diagram. Figure 2As shown in the chromaticity diagram, it can be observed that adjustments to the R Gain component value primarily affect the X-coordinate, as do adjustments to the G Gain component value, while adjustments to the B Gain component value simultaneously affect both the X and Y coordinates. This scheme quantifies this influence relationship based on the changes in the X and Y coordinates caused by the changes in each component value, thus obtaining the data foundation for achieving rapid correction in this scheme.
[0050] Step S104: Obtain the target color coordinates for white balance correction. Based on the relative position of the target color coordinates and the first color coordinates, and using the initial display parameters as a reference, confirm the correction display parameters corresponding to the target color coordinates through the correspondence.
[0051] For a specific target screen, white balance calibration may need to be performed in three modes: standard, cool, and warm. Of course, depending on the actual configuration, there may be other white balance calibration modes, each with different target color coordinates. For example, in standard mode white balance calibration, the target color coordinates might be the theoretical color coordinates (x`, y`) corresponding to the display parameters (128, 128, 128) in the chromaticity diagram (e.g., CIE 1931 color space). However, when actually displayed at (128, 128, 128), the actual color coordinates are (x0, y0). In this case, it's necessary to confirm the display parameters when the target screen actually displays color coordinates (x`, y`) as the corresponding calibration display parameters in standard mode. The calibration process can be viewed as the target screen needing to control the change from (x0, y0) to (x`, y`). Since the change in color coordinates is actually affected by changes in display parameters, this change control can achieve precise and rapid control based on the correspondence between the change in Gain component values and the change in color coordinates.
[0052] In implementing this solution, step S104 may include steps S1041-S1043:
[0053] Step S1041: Obtain the target color coordinates for white balance correction, and confirm the relative position of the target color coordinates and the first color coordinates in the CIE 1931 color space.
[0054] Step S1042: Based on the influence area corresponding to the Gain component value, confirm the influence component value corresponding to the relative position.
[0055] The white balance correction process in this scheme involves adjusting the initial display parameters based on the initial display parameters corresponding to the first color coordinate, according to the correspondence between the changes in Gain component values and the changes in color coordinates. This yields corrected display parameters, and the target screen displays the target color coordinates when these corrected parameters are applied. The specific Gain component value adjusted during this correction process is determined by the relative position of the target color coordinates to the first color coordinate in the CIE 1931 color space. As mentioned earlier, adjustments to the R Gain component value primarily affect the X coordinate, as do adjustments to the G Gain component value, while adjustments to the B Gain component value simultaneously affect both the X and Y coordinates. Corresponding to these influence areas, if the target color coordinate is below the first color coordinate, the G Gain component value generally needs to be decreased (i.e., the G Gain component value is the influencing component value); if the target color coordinate is to the right of the first color coordinate, the R Gain component value generally needs to be increased (i.e., the R Gain component value is the influencing component value). When the target color coordinate is diagonally upwards from the first color coordinate, a mixed adjustment is required, involving vector addition of multiple component values.
[0056] Step S1043: Based on the initial display parameters, confirm the corrected display parameters corresponding to the target color coordinates according to the correspondence between the influence component values.
[0057] For example, according to steps S1041 and S1042, the target color coordinates (x`, y`) are located to the left of the first color coordinates (x0, y0). The value of the influencing component is confirmed to be the R Gain component value. Based on the initial display parameters (128, 128, 128), the R Gain component value needs to be reduced from the first color coordinates (x0, y0) to the target color coordinates (x`, y`). According to the correspondence k_x_R of the R Gain component value, the adjustment range of the specific R Gain component value (the first 128) in the initial display parameters (128, 128, 128) is (x0-x`) / k_x_R.
[0058] The above method, during white balance calibration, acquires the first color coordinates of a reference point on the target screen when displayed under initial display parameters, which include three Gain component values; acquires the three second color coordinates of the reference point on the target screen when displayed under three subsequent display parameters, which are obtained by sequentially adjusting the three Gain component values from the initial display parameters; confirms the correspondence between the change in each Gain component value and the change in the color coordinate based on the first color coordinates and each second color coordinate; obtains the target color coordinates for white balance calibration, and confirms the calibration display parameters corresponding to the target color coordinates based on the relative position of the target color coordinates and the first color coordinates, using the initial display parameters as a reference, through the correspondence. During white balance calibration, the color coordinates of the reference point under four display parameters are detected. Using one color coordinate as a reference and the other three as controls, the change relationship between each component and color coordinate in the display parameters is established based on the color coordinates of each control and reference, and the display parameters. Based on this change relationship, the assignment relationship from the reference color coordinates to the white balance calibration target is quickly realized, thereby achieving rapid white balance calibration, shortening the time required for white balance calibration in the display device production process, and reducing production costs.
[0059] Figure 3 This is a schematic diagram of a white balance correction device provided in an embodiment of the present invention. (Reference) Figure 3 The white balance correction device, used in terminal equipment, includes a first acquisition unit 210, a second acquisition unit 220, a relationship confirmation unit 230, and a target correction unit 240.
[0060] The system includes: a first acquisition unit 210, used to acquire the first color coordinates of the reference point of the target screen when it is displayed under initial display parameters, which include three Gain component values; a second acquisition unit 220, used to acquire the three second color coordinates of the reference point of the target screen when it is displayed under three subsequent display parameters, which are obtained by adjusting the three Gain component values sequentially from the initial display parameters; a relationship confirmation unit 230, used to confirm the correspondence between the change in each Gain component value and the change in each color coordinate based on the first color coordinates and each second color coordinate; and a target correction unit 240, used to acquire the target color coordinates for white balance correction, and based on the relative position of the target color coordinates and the first color coordinates, using the initial display parameters as a reference, confirming the correction display parameters corresponding to the target color coordinates through the correspondence.
[0061] Based on the above embodiments, the relationship confirmation unit 230 includes:
[0062] The difference confirmation module is used to confirm the difference between the coordinate components of the first color coordinate and each second color coordinate based on the first color coordinate and each second color coordinate.
[0063] The ratio confirmation module is used to confirm the change in the coordinate component corresponding to a unit change in each Gain component value based on the ratio of the difference to the change in the corresponding Gain component value.
[0064] Based on the above embodiments, the reference point is a region of a preset size located at the center of the target screen;
[0065] Correspondingly, the first acquisition unit 210 includes:
[0066] The initial display module is used to control the target screen to display under the initial display parameters;
[0067] The initial acquisition module is used to acquire the color coordinates of a preset-sized area at the center of the target screen as the first color coordinates.
[0068] Based on the above embodiments, the region is a rectangular region or a circular region.
[0069] Based on the above embodiments, the target correction unit 240 includes:
[0070] The relative position confirmation module is used to obtain the target color coordinates for white balance correction and confirm the relative position of the target color coordinates and the first color coordinates in the CIE 1931 color space.
[0071] The influence component value confirmation module is used to confirm the influence component value corresponding to the relative position based on the influence area corresponding to the gain component value.
[0072] The parameter confirmation module is used to confirm the corrected display parameters corresponding to the target color coordinates based on the initial display parameters and the corresponding relationship of the influence component values.
[0073] Based on the above embodiments, the initial display parameters are (128,128,128) or (256,256,256).
[0074] The white balance correction device provided in this embodiment of the invention is included in a terminal device and can be used to execute any of the white balance correction methods provided in the above embodiments, possessing corresponding functions and beneficial effects.
[0075] It is worth noting that in the above embodiments of the white balance correction device, the various units and modules included are only divided according to functional logic, but are not limited to the above division, as long as the corresponding functions can be achieved; in addition, the specific names of each functional unit are only for easy differentiation and are not used to limit the scope of protection of the present invention.
[0076] Figure 4 This is a schematic diagram of the structure of a terminal device provided in an embodiment of the present invention. Figure 4As shown, the terminal device includes a processor 310, a memory 320, an input device 330, an output device 340, and a communication device 350; the number of processors 310 in the terminal device can be one or more. Figure 4 Taking a processor 310 as an example; the processor 310, memory 320, input device 330, output device 340, and communication device 350 in the terminal device can be connected via a bus or other means. Figure 4 Taking the example of a connection between China and Israel via a bus.
[0077] The memory 320, as a computer-readable storage medium, can be used to store software programs, computer-executable programs, and modules, such as the program instructions / modules corresponding to the white balance correction method in this embodiment of the invention (e.g., the first acquisition unit 210, the second acquisition unit 220, the relationship confirmation unit 230, and the target correction unit 240 in the white balance correction device). The processor 310 executes various functional applications and data processing of the terminal device by running the software programs, instructions, and modules stored in the memory 320, thereby implementing the aforementioned white balance correction method.
[0078] The memory 320 may primarily include a program storage area and a data storage area. The program storage area may store the operating system and applications required for at least one function; the data storage area may store data created based on the use of the terminal device. Furthermore, the memory 320 may include high-speed random access memory and non-volatile memory, such as at least one disk storage device, flash memory device, or other non-volatile solid-state storage device. In some instances, the memory 320 may further include memory remotely located relative to the processor 310, which can be connected to the terminal device via a network. Examples of such networks include, but are not limited to, the Internet, intranets, local area networks, mobile communication networks, and combinations thereof.
[0079] Input device 330 can be used to receive input digital or character information, and to generate key signal inputs related to user settings and function control of the terminal device. Output device 340 may include display devices such as a display screen.
[0080] The aforementioned terminal equipment includes a white balance correction device, which can be used to perform any white balance correction method and has corresponding functions and beneficial effects.
[0081] This invention also provides a computer-readable storage medium storing a computer program thereon. When executed by a processor, the computer program implements the relevant operations in the white balance correction method provided in any embodiment of this application, and has corresponding functions and beneficial effects.
[0082] Those skilled in the art will understand that embodiments of this application may be provided as methods, systems, or computer program products.
[0083] Therefore, this application may take the form of a completely hardware embodiment, a completely software embodiment, or an embodiment combining software and hardware aspects. Furthermore, this application may take the form of a computer program product implemented on one or more computer-usable storage media (including but not limited to disk storage, CD-ROM, optical storage, etc.) containing computer-usable program code. This application is described with reference to flowchart illustrations and / or block diagrams of methods, apparatus (systems), and computer program products according to embodiments of this application. It should be understood that each block of the flowchart illustrations and / or block diagrams, and combinations of blocks in the flowchart illustrations and / or block diagrams, can be implemented by computer program instructions. These computer program instructions can be provided to a processor of a general-purpose computer, special-purpose computer, embedded processor, or other programmable data processing apparatus to produce a machine, such that the instructions, which execute via the processor of the computer or other programmable data processing apparatus, produce implementations of the flowchart... Figure 1 One or more processes and / or boxes Figure 1 The computer program instructions may also be stored in a computer-readable storage medium that can direct a computer or other programmable data processing device to operate in a particular manner, such that the instructions stored in the computer-readable storage medium produce an article of manufacture including instruction means, which are implemented in a process Figure 1 One or more processes and / or boxes Figure 1 The functions specified in one or more boxes. These computer program instructions may also be loaded onto a computer or other programmable data processing apparatus to cause a series of operational steps to be performed on the computer or other programmable apparatus to produce a computer-implemented process, thereby providing instructions that execute on the computer or other programmable apparatus for implementing the process. Figure 1 One or more processes and / or boxes Figure 1 The steps of the function specified in one or more boxes.
[0084] In a typical configuration, a computing device includes one or more processors (CPUs), input / output interfaces, network interfaces, and memory. Memory may include non-persistent memory in computer-readable media, such as random access memory (RAM) and / or non-volatile memory, such as read-only memory (ROM) or flash RAM. Memory is an example of computer-readable media.
[0085] Computer-readable media includes both permanent and non-permanent, removable and non-removable media that can store information using any method or technology. Information can be computer-readable instructions, data structures, modules of programs, or other data. Examples of computer storage media include, but are not limited to, phase-change memory (PRAM), static random access memory (SRAM), dynamic random access memory (DRAM), other types of random access memory (RAM), read-only memory (ROM), electrically erasable programmable read-only memory (EEPROM), flash memory or other memory technologies, CD-ROM, digital versatile optical disc (DVD) or other optical storage, magnetic tape, magnetic magnetic disk storage or other magnetic storage devices, or any other non-transferable medium that can be used to store information accessible by a computing device. As defined herein, computer-readable media does not include transient computer-readable media, such as modulated data signals and carrier waves.
[0086] It should also be noted that the terms "comprising," "including," or any other variations thereof are intended to cover non-exclusive inclusion, such that a process, method, article, or apparatus that comprises a list of elements includes not only those elements but also other elements not expressly listed, or elements inherent to such process, method, article, or apparatus. Unless otherwise specified, an element defined by the phrase "comprising one..." does not exclude the presence of other identical elements in the process, method, article, or apparatus that includes that element.
[0087] Note that the above description is merely a preferred embodiment of the present invention and the technical principles employed. Those skilled in the art will understand that the present invention is not limited to the specific embodiments described herein, and various obvious changes, readjustments, and substitutions can be made without departing from the scope of protection of the present invention. Therefore, although the present invention has been described in detail through the above embodiments, the present invention is not limited to the above embodiments, and may include many other equivalent embodiments without departing from the concept of the present invention, the scope of which is determined by the scope of the appended claims.
Claims
1. A white balance correction method, characterized in that, include: The first color coordinates of the reference point of the target screen when it is displayed under the initial display parameters are collected, and the initial display parameters include three Gain component values; The reference point of the target screen is collected and displayed under three subsequent display parameters, which correspond to three second color coordinates. The three subsequent display parameters are obtained by sequentially adjusting the three Gain component values of the initial display parameters. Based on the first color coordinate and each of the second color coordinates, confirm the correspondence between the change in each Gain component value and the change in the color coordinate; Obtain the target color coordinates for white balance correction. Based on the relative position of the target color coordinates and the first color coordinates, and using the initial display parameters as a reference, determine the correction display parameters corresponding to the target color coordinates through the correspondence. The step of determining the correspondence between the change in each Gain component value and the change in the color coordinate based on the first color coordinate and each of the second color coordinates includes: Based on the first chromatic coordinate and each of the second chromatic coordinates, determine the difference between the coordinate components of the first chromatic coordinate and each of the second chromatic coordinates; Based on the ratio of the difference to the change in the corresponding Gain component value, the change in the coordinate component corresponding to the unit change in each Gain component value is determined.
2. The white balance correction method according to claim 1, characterized in that, The reference point is a region of a preset size located at the center of the target screen; Correspondingly, the first color coordinates of the reference point on the target screen when displayed under the initial display parameters include: Control the target screen to display under the initial display parameters; The color coordinates of the preset-size area at the center of the target screen are collected as the first color coordinates.
3. The white balance correction method according to claim 2, characterized in that, The area can be rectangular or circular.
4. The white balance correction method according to any one of claims 1-3, characterized in that, The process of obtaining the target color coordinates for white balance correction, based on the relative position of the target color coordinates and the first color coordinates, and using the initial display parameters as a reference, determines the correction display parameters corresponding to the target color coordinates through the correspondence, including: Obtain the target color coordinates for white balance correction, and confirm the relative position of the target color coordinates and the first color coordinates in the CIE 1931 color space; Based on the influence region corresponding to the Gain component value, the influence component value corresponding to the relative position is determined; Based on the initial display parameters, the corrected display parameters corresponding to the target color coordinates are determined according to the correspondence between the influence component values.
5. The white balance correction method according to claim 1, characterized in that, The initial display parameters are (128, 128, 128) or (256, 256, 256).
6. A white balance correction device, characterized in that, include: The first acquisition unit is used to acquire the first color coordinates of the reference point of the target screen when it is displayed under the initial display parameters, wherein the initial display parameters include three Gain component values. The second acquisition unit is used to acquire the three second color coordinates corresponding to the reference point of the target screen when it is displayed under three subsequent display parameters. The three subsequent display parameters are obtained by adjusting the three Gain component values sequentially from the initial display parameters. The relationship confirmation unit is used to confirm the correspondence between the change in each Gain component value and the change in the color coordinate based on the first color coordinate and each of the second color coordinates; The target correction unit is used to obtain the target color coordinates for white balance correction, and based on the relative position of the target color coordinates and the first color coordinates, and using the initial display parameters as a reference, to confirm the correction display parameters corresponding to the target color coordinates through the correspondence. The relationship confirmation unit includes: The difference confirmation module is used to confirm the difference between the coordinate components of the first color coordinate and each of the second color coordinates based on the first color coordinate and each of the second color coordinates. The ratio confirmation module is used to confirm the change in the coordinate component corresponding to the unit change in each Gain component value based on the ratio of the difference to the change in the corresponding Gain component value.
7. A terminal device, characterized in that, include: One or more processors; Memory, used to store one or more computer programs; When the one or more computer programs are executed by the one or more processors, the terminal device implements the white balance correction method as described in any one of claims 1-5.
8. A computer-readable storage medium having a computer program stored thereon, characterized in that, When the computer program is executed by the processor, it implements the white balance correction method as described in any one of claims 1-5.
Citation Information
Patent Citations
White balance debugging method and apparatus
CN106507082A
Screen calibration method and device, electronic equipment and storage medium
CN114067741A