Color correction method and device, equipment and medium

By obtaining the brightness change amount in the display screen and determining the target display lookup table, the problem of inaccurate color when the display screen is less than the maximum brightness is solved, and high color accuracy is achieved at any brightness.

CN119418628APending Publication Date: 2025-02-11VIVO MOBILE COMM CO LTD

Patent Information

Application Number
CN202411813041.2
Authority / Receiving Office
CN · China
Patent Type
Applications(China)
Current Assignee / Owner
Filing Date
2024-12-10
Publication Date
2025-02-11

Smart Images

  • Figure CN119418628A_ABST
    Figure CN119418628A_ABST
Patent Text Reader

Abstract

The invention discloses a color correction method and device, equipment and a medium, and belongs to the technical field of display. The method comprises the following steps: acquiring the brightness variation of a display screen of the electronic equipment; under the condition that the brightness variation is larger than a preset threshold value, a first display lookup table associated with a first preset brightness value and a second display lookup table associated with a second preset brightness value are obtained, the current brightness value of the display screen is smaller than the first preset brightness value, and the current brightness value is larger than the second preset brightness value; determining a target display lookup table corresponding to the current brightness value according to the current brightness value, the first preset brightness value, the second preset brightness value, the first display lookup table and the second display lookup table; and according to the target display lookup table, updating the gray-scale values of the three primary colors of the pixel points in the display screen.
Need to check novelty before this filing date? Find Prior Art

Description

Technical Field

[0001] The present application belongs to the field of display technology, and specifically relates to a color correction method, device, equipment and medium. Background Art

[0002] With the continuous development of technology, electronic devices serve as the main tools for communication, taking pictures, watching movies, live broadcasting and work. As the main tools, electronic devices cannot do without a good display screen. One of the evaluation criteria for a good display screen is the high color accuracy of the display screen.

[0003] In the exemplary technology, a display lookup table is calibrated at maximum brightness in an electronic device. The display lookup table is used to map the native white color temperature and color gamut area of ​​the display screen to the standard color temperature and standard color gamut area, ensuring that the color accuracy of the display screen at maximum brightness reaches the optimal value.

[0004] However, since the display screen is current driven, there is an impedance drop problem, which results in different impedance drops. Therefore, when the brightness of the display screen decreases, the impedance drop also decreases. The mapping relationship of red, green and blue at maximum brightness will change the color temperature and color gamut area obtained at relatively small brightness. In other words, the display screen cannot guarantee color accuracy at other brightness levels less than the maximum brightness. Summary of the invention

[0005] The purpose of the embodiments of the present application is to provide a color correction method, device, equipment and medium to solve the problem that the color accuracy of the display screen cannot be guaranteed at other brightness levels less than the maximum brightness.

[0006] In a first aspect, an embodiment of the present application provides a color correction method, comprising:

[0007] Obtaining a brightness change of a display screen of an electronic device;

[0008] When the brightness change is greater than a preset threshold, obtaining a first display lookup table associated with a first preset brightness value and a second display lookup table associated with a second preset brightness value, the current brightness value of the display screen is less than the first preset brightness value, and the current brightness value is greater than the second preset brightness value;

[0009] Determine a target display lookup table corresponding to the current brightness value according to the current brightness value, the first preset brightness value, the second preset brightness value, the first display lookup table, and the second display lookup table;

[0010] The grayscale values ​​of the three primary colors of the pixel points in the display screen are updated according to the target display lookup table.

[0011] In a second aspect, an embodiment of the present application provides a color correction device, the device comprising:

[0012] A first acquisition module, used to acquire a brightness change of a display screen of an electronic device;

[0013] A second acquisition module, configured to acquire, when the brightness change is greater than a preset threshold, a first display lookup table associated with a first preset brightness value and a second display lookup table associated with a second preset brightness value, and a current brightness value of the display screen is less than the first preset brightness value, and the current brightness value is greater than the second preset brightness value;

[0014] a determination module, configured to determine a target display lookup table corresponding to the current brightness value according to the current brightness value, the first preset brightness value, the second preset brightness value, the first display lookup table, and the second display lookup table;

[0015] An updating module is used to update the grayscale values ​​of the three primary colors of the pixel points in the display screen according to the target display lookup table.

[0016] In a third aspect, an embodiment of the present application provides an electronic device, which includes a processor and a memory, wherein the memory stores programs or instructions that can be run on the processor, and when the program or instructions are executed by the processor, the steps of the method described in the first aspect are implemented.

[0017] In a fourth aspect, an embodiment of the present application provides a readable storage medium, on which a program or instruction is stored, and when the program or instruction is executed by a processor, the steps of the method described in the first aspect are implemented.

[0018] In a fifth aspect, an embodiment of the present application provides a chip, comprising a processor and a communication interface, wherein the communication interface is coupled to the processor, and the processor is used to run a program or instruction to implement the method described in the first aspect.

[0019] In a sixth aspect, an embodiment of the present application provides a computer program product, which is stored in a storage medium and is executed by at least one processor to implement the method described in the first aspect.

[0020] In an embodiment of the present application, when the brightness change of the display screen of the electronic device is greater than a preset threshold, a first display lookup table associated with a first preset brightness value and a second display lookup table associated with a second preset brightness value are obtained, and a target display lookup table corresponding to the current brightness value is determined through the current brightness value of the display screen, the first preset brightness value, the second preset brightness value, the first display lookup table, and the second display lookup table, and then the grayscale values ​​of the three primary colors of the pixel points in the display screen are updated through the target display lookup table. In the present application, when the brightness of the display plane changes greatly, a target display lookup table adapted to the current brightness value is obtained through two display lookup tables of a first preset brightness value greater than the current brightness value and a second preset brightness value less than the current brightness value. After the display screen uses the target display lookup table for color correction at the current brightness value, the color temperature of the display screen is the standard color temperature and the color gamut area of ​​the display screen is the standard color gamut area, thereby improving the color accuracy of the display screen at any brightness. BRIEF DESCRIPTION OF THE DRAWINGS

[0021] Figure 1 is a schematic diagram of a scene of a color correction method according to an exemplary embodiment;

[0022] Figure 2 is one of the flowchart diagrams of a color correction method according to an exemplary embodiment;

[0023] Figure 3 is a second flowchart of a color correction method according to an exemplary embodiment;

[0024] Figure 4 is a third flowchart of a color correction method according to an exemplary embodiment;

[0025] Figure 5 is a fourth flowchart of a color correction method according to an exemplary embodiment;

[0026] Figure 6 is a structural block diagram of a color correction device according to an exemplary embodiment;

[0027] Figure 7 is a structural block diagram of an electronic device according to an exemplary embodiment;

[0028] Figure 8 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application. DETAILED DESCRIPTION

[0029] The following will be combined with the drawings in the embodiments of the present application to clearly describe the technical solutions in the embodiments of the present application. Obviously, the described embodiments are part of the embodiments of the present application, rather than all the embodiments. All other embodiments obtained by ordinary technicians in this field based on the embodiments in the present application belong to the scope of protection of this application.

[0030] The terms "first", "second", etc. in the specification and claims of the present application are used to distinguish similar objects, and are not used to describe a specific order or sequence. It should be understood that the data used in this way can be interchangeable under appropriate circumstances, so that the embodiments of the present application can be implemented in an order other than those illustrated or described here, and the objects distinguished by "first", "second", etc. are generally of one type, and the number of objects is not limited. For example, the first object can be one or more. In addition, "and / or" in the specification and claims represents at least one of the connected objects, and the character " / " generally indicates that the objects associated with each other are in an "or" relationship.

[0031] With the continuous development of technology, electronic devices serve as the main tools for communication, taking pictures, watching movies, live broadcasting and work. As the main tools, electronic devices cannot do without a good display screen. One of the evaluation criteria for a good display screen is the high color accuracy of the display screen.

[0032] In the exemplary technology, a display lookup table is calibrated at maximum brightness in an electronic device. The display lookup table is used to map the native white color temperature and color gamut area of ​​the display screen to the standard color temperature and standard color gamut area, ensuring that the color accuracy of the display screen at maximum brightness reaches the optimal value.

[0033] However, since the display screen is current driven, there is an impedance drop problem, which results in different impedance drops. Therefore, when the brightness of the display screen decreases, the impedance drop also decreases. The mapping relationship of red, green and blue at maximum brightness will change the color temperature and color gamut area obtained at relatively small brightness. In other words, the display screen cannot guarantee color accuracy at other brightness levels less than the maximum brightness.

[0034] In response to the problem that the display screen cannot guarantee color accuracy at brightness levels lower than the maximum brightness,

[0035] When the brightness of the display plane changes greatly, a target display lookup table adapted to the current brightness value is obtained through two display lookup tables of a first preset brightness value greater than the current brightness value and a second preset brightness value less than the current brightness value. After the display screen uses the target display lookup table for color correction at the current brightness value, the color temperature of the display screen is the standard color temperature and the color gamut area of ​​the display screen is the standard color gamut area, thereby improving the color accuracy of the display screen at any brightness.

[0036] Reference Figure 1 , a schematic diagram of a scene of the color correction method provided by the present application is described. Figure 1 As shown, the brightness of the display screen 110 of the electronic device 100 at the previous moment was A, and the brightness of the display screen 110 at the current moment is B. When the absolute value of the difference between A and B (the absolute value of the difference is the brightness change) is greater than the preset threshold, the display lookup table 1 and the display lookup table 2 are obtained. The display lookup table 1 is a display lookup table associated with a first preset brightness value, and the first preset brightness value is greater than the current brightness of the display screen 110; the display lookup table 2 is a display lookup table associated with a second preset brightness value, and the second preset brightness value is less than the current brightness value. The electronic device 100 obtains a target display lookup table of the current brightness value based on the display lookup table 1 and the display lookup table 2, and then performs a target display lookup table on the pixel points in the display screen based on the target display lookup table.

[0037] The following combination includes Figure 1 With reference to the accompanying drawings, the color correction method, device, equipment and medium provided in the embodiments of the present application are described in detail through specific embodiments and their application scenarios.

[0038] The color correction method provided in the embodiment of the present application can be applied to the application scenario of displaying images on a display screen.

[0039] Combine the following Figure 1 The color correction method provided in the embodiment of the present application is described in detail.

[0040] Reference Figure 2 , Figure 2 This is one of the flow charts of the color correction method provided by this application, such as Figure 2 As shown, the color correction method includes the following steps:

[0041] Step S201, obtaining a brightness change of a display screen of an electronic device.

[0042] In this embodiment, the execution subject is an electronic device provided with a display screen, such as a mobile phone, a computer, a tablet, a television, etc. For ease of description, the execution subject is referred to as a device below.

[0043] When the device is displaying a picture, it will collect the brightness value of the display screen of the device periodically or in real time. The device obtains the brightness value collected last time and the brightness value collected currently, and the brightness value collected currently is defined as the current brightness value. The device calculates the difference between the current brightness value and the brightness value collected last time, and the absolute value of the difference is defined as the brightness change. A preset threshold is set in the device. After obtaining the brightness change, the device compares the brightness change with the preset threshold. The preset threshold can be any suitable value.

[0044] Step S202, when the brightness change is greater than the preset threshold, obtain a first display lookup table associated with the first preset brightness value and a second display lookup table associated with the second preset brightness value, and display the current brightness value of the screen less than the first preset brightness value, and the current brightness value is greater than the second preset brightness value.

[0045] The device stores a display lookup table associated with a first preset brightness value, which is defined as a first display lookup table, and the device stores a display lookup table associated with a second preset brightness value, which is defined as a second display lookup table. The first preset brightness value is a larger brightness value, and the second preset brightness value is a smaller brightness value. The first preset brightness value is close to or equal to the maximum brightness of the display screen, and the second preset brightness value is close to or equal to the minimum brightness of the display screen. Exemplarily, the first preset brightness value is 600nit, and the second preset brightness value is 100nit. Both the first display lookup table and the second display lookup table can be 3D display lookup tables.

[0046] When the device determines that the brightness change is greater than the preset threshold, it can be determined that the brightness fluctuation of the display screen is large, which will affect the color accuracy of the display screen, and thus the color of the display screen needs to be corrected. In this regard, the device obtains the first display lookup table and the second display lookup table. It should be noted that the current brightness value of the display screen is less than the first preset brightness value and greater than the second preset brightness value.

[0047] When the brightness change is less than a preset threshold, the brightness fluctuation of the display screen is small, which has little impact on the color accuracy of the display screen, and there is no need to correct the color of the display screen.

[0048] Step S203 , determining a target display lookup table corresponding to the current brightness value according to the current brightness value, the first preset brightness value, the second preset brightness value, the first display lookup table, and the second display lookup table.

[0049] After obtaining the first display lookup table and the second display lookup table, the device determines a target display lookup table corresponding to the current brightness value based on the current brightness value, the first preset brightness value, the second preset brightness value, the first display lookup table, and the second display lookup table.

[0050] Exemplarily, the device may obtain the target display lookup table by a difference method.

[0051] Specifically, Among them, L0 is the target display lookup table, L1 is the first display lookup table, L2 is the second display lookup table, R0 is the current brightness value, R1 is the first preset brightness value, and R2 is the second preset brightness value.

[0052] Step S204, updating the grayscale values ​​of the three primary colors of the pixels in the display screen according to the target display lookup table.

[0053] After obtaining the target display lookup table, the device updates the grayscale values ​​of the three primary colors of the pixel points in the display screen through the target display lookup table.

[0054] After testing, using the color correction method provided in this embodiment, the color temperature of the display screen of the device at different brightnesses is the standard color temperature, and the color gamut area of ​​the display screen of the device at different brightnesses is the standard color gamut area, ensuring the color accuracy of the display screen at different brightnesses.

[0055] In this embodiment, when the brightness change of the display screen of the electronic device is greater than a preset threshold, a first display lookup table associated with a first preset brightness value and a second display lookup table associated with a second preset brightness value are obtained, and a target display lookup table corresponding to the current brightness value is determined through the current brightness value of the display screen, the first preset brightness value, the second preset brightness value, the first display lookup table, and the second display lookup table, and then the grayscale values ​​of the three primary colors of the pixel points in the display screen are updated through the target display lookup table. In this embodiment, when the brightness of the display plane changes greatly, a target display lookup table adapted to the current brightness value is obtained through two display lookup tables of a first preset brightness value greater than the current brightness value and a second preset brightness value less than the current brightness value. After the display screen uses the target display lookup table for color correction at the current brightness value, the color temperature of the display screen is the standard color temperature and the color gamut area of ​​the display screen is the standard color gamut area, thereby improving the color accuracy of the display screen at any brightness.

[0056] Reference Figure 3 , Figure 3 This is the second flow chart of the color correction method provided by this application, based on Figure 2 In the embodiment shown, before step S201, the following steps are further included:

[0057] Step S301: setting at least two different target brightness values, each of which includes a first preset brightness value and a second preset brightness value.

[0058] In this embodiment, the device obtains at least two brightness values ​​within the display brightness range of the display screen as target brightness values. Each target brightness value includes the first preset brightness value and the second preset brightness value mentioned above.

[0059] In one example, when setting at least two target brightness values, one target brightness value is close to or equal to the maximum brightness value of the display screen, one target brightness value is close to or equal to the minimum brightness value of the display screen, and the other target brightness values ​​are between the maximum brightness value and the minimum brightness value.

[0060] In another example, the brightness value range of the display screen is divided into a plurality of brightness intervals, and the upper limit value and the lower limit value of each brightness interval are used as the target brightness value.

[0061] Step S302: Generate a display lookup table corresponding to each target brightness value.

[0062] After setting a plurality of target brightness values, the device generates a display lookup table corresponding to each target brightness value.

[0063] Exemplarily, some display screens are configured with a maximum display lookup table at the maximum brightness value, and some display screens are configured with a minimum display lookup table at the medium and low brightness values. The display lookup table of each target brightness value between the maximum brightness and the medium and low brightness values ​​can be obtained by interpolation. Specifically, the display lookup table of the target brightness value = the maximum display lookup table + (target brightness value - medium and low brightness value) The medium-low brightness value refers to a brightness value close to the minimum brightness value, that is, the difference between the medium-low brightness value and the minimum brightness value is less than a preset difference.

[0064] Step S303: associate and store each target brightness value with the corresponding display lookup table.

[0065] After obtaining each target brightness value, the device associates and stores each target brightness value with a display lookup table corresponding to the target brightness value.

[0066] In this embodiment, the device sets at least two different target brightness values, generates a display lookup table corresponding to each target brightness value, and then associates and stores each target brightness value with the corresponding display lookup table, so that the device can ensure the color accuracy of the display screen at different brightnesses.

[0067] Reference Figure 4 , Figure 4 This is the third flow chart of the color correction method provided by this application, based on Figure 3 In the illustrated embodiment, step S302 includes:

[0068] Step S401, determining a set color gamut corresponding to the display screen and a white point corresponding to the set color gamut.

[0069] In this embodiment, the device calibrates the target brightness value to obtain a display lookup table under the target brightness value.

[0070] Exemplarily, the device first adjusts the brightness value of the display screen to the target brightness value, and determines the set color gamut of the display screen. The set color gamut refers to the color gamut set by the display screen for calibration under the target brightness value. The device then obtains the white point corresponding to the set color gamut, and the white point is set based on the set color gamut.

[0071] Specifically, by setting the color gamut, the coordinates of the three vertices of red, green, and blue in the hue gamut can be determined, and the vertex refers to the limit value. For example, the red vertex coordinate refers to the coordinate value corresponding to the limit value of red in the set color gamut. The red vertex coordinate is (TargetRx, TargetRy), the green vertex coordinate is (TargetGx, TargetGy), and the blue vertex coordinate is (TargetBx, TargetBy). The white point coordinate is (TargetWx, TargetWy), and the brightness value of the white point is TargetLw.

[0072] Step S402, determining the first color coordinates of each color point in the set color gamut according to the coordinates of the white point and the brightness value.

[0073] After determining the white point, the device determines the color coordinates of each color point in the set color gamut based on the coordinates of the white point and the brightness value, and the color coordinates of the color point are defined as first color coordinates.

[0074] Exemplarily, the device determines the brightness values ​​of the three primary colors of each color point in the set color gamut and the total brightness value of the color point based on the coordinates and brightness value of the white point. Specifically, given the coordinates and brightness value of the white point, the brightness values ​​LRn, LGn, LBn of the three primary colors of the color point and the total brightness value Lc of the color point can be calculated by the formula corresponding to the color matching equation. The three primary colors are red, green and blue, and the brightness value of red in the color point is LRn, the brightness value of green in the color point is LGn, and the brightness value of blue in the color point is LBn.

[0075] The device determines the first color coordinates of the color point through the brightness values ​​of the three primary colors and the total brightness value of the color point. Exemplarily, a matrix is ​​constructed through the brightness values ​​LRn, LGn, LBn of the three primary colors and the total brightness value Lc of the color point, and the device then determines the tristimulus values ​​[Xc, Yc, Zc] of the color point based on the matrix, the coordinates of the red vertex, the coordinates of the green vertex, the coordinates of the blue vertex, and the coordinates of the white point. The calculation method of the tristimulus values ​​is as follows:

[0076]

[0077] After obtaining the tristimulus values ​​of the color point, the device can obtain the first color coordinates corresponding to the color point based on the tristimulus values, as follows:

[0078]

[0079] Wherein, Cx and Cy constitute the first color coordinate.

[0080] In this embodiment, the brightness values ​​of the three primary colors of each color point in the set color gamut and the total brightness value of the color point are determined by the coordinates and brightness value of the white point, and then based on the brightness values ​​of the three primary colors of the color point and the total brightness value, the first color coordinates of the color point can be accurately determined.

[0081] Step S403, obtaining the display screen, the second color coordinates of the red picture displayed based on the initial color gamut, the third color coordinates of the green picture displayed based on the initial color gamut, and the fourth color coordinates of the blue picture displayed based on the initial color gamut.

[0082] After obtaining the first color coordinates, the device obtains the second color coordinates of the red picture displayed on the display screen in the initial color gamut, the third color coordinates of the green picture displayed based on the initial color gamut, and the fourth color coordinates of the blue picture displayed based on the initial color gamut. The second color coordinates, the third color coordinates, and the fourth color coordinates are obtained by testing and stored in the device.

[0083] Specifically, the display screen is in the original color gamut (initial color gamut), the display screen is switched to a red screen, and the color coordinates of the display screen displaying the red screen are measured to obtain the second color coordinates; the display screen is in the original color gamut (initial color gamut), the display screen is switched to a green screen, and the color coordinates of the display screen displaying the green screen are measured to obtain the third color coordinates; the display screen is in the original color gamut (initial color gamut), the display screen is switched to a blue screen, and the color coordinates of the display screen displaying the blue screen are measured to obtain the fourth color coordinates. The second color coordinates are (NativeRx, NativeRy), the third color coordinates are (NativeGx, NativeGy), and the fourth color coordinates are (NativeBx, NativeBy).

[0084] Step S404, determining the grayscale values ​​of the three primary colors of the color point according to the first color coordinate, the second color coordinate, the third color coordinate and the fourth color coordinate of the color point, and constructing a display lookup table corresponding to the target brightness value according to the grayscale values ​​of the three primary colors of each color point.

[0085] After obtaining the second color coordinates, the third color coordinates, and the fourth color coordinates, the device determines the grayscale value of the color point based on the second color coordinates, the third color coordinates, the fourth color coordinates, and the first color coordinates of the color point.

[0086] Exemplarily, the device determines the ratio parameters of the three primary colors of the color point based on the first color coordinate, the second color coordinate, the third color coordinate, and the fourth color coordinate, and the ratio parameters are specifically:

[0087]

[0088] After obtaining the ratio parameter, the device can determine the brightness values ​​of the three primary colors of the color point based on the total brightness value of the color point and the ratio parameter. The brightness values ​​of the three primary colors are LRnr, LGnr, and LBnr. Specifically, the brightness values ​​of the three primary colors can be calculated based on the mapping relationship between the brightness values ​​of the three primary colors of the color point and the total brightness value of the color point.

[0089] After obtaining the brightness values ​​of the three primary colors of the color point, the brightness values ​​of the three primary colors can be converted into the grayscale values ​​of the three primary colors. Specifically, the conversion can be performed through the mapping relationship between the brightness value and the grayscale value. It should be noted that the three primary colors refer to the red, green and blue colors of the pixels on the display screen, and the three primary colors refer to the red, green and blue of the pixels in theoretical calculations.

[0090] In this embodiment, the proportion parameters of the three primary colors of the color point are determined by the second color coordinate, the third color coordinate, the fourth color coordinate and the first color coordinate of the color point, so that the grayscale values ​​of the three primary colors of the color point can be accurately determined based on the proportion parameters and the total brightness value of the color point.

[0091] The device can obtain the grayscale values ​​of the three primary colors of each color point in the set color gamut in the above manner, and the grayscale values ​​of the three primary colors of each color point can be constructed into a display lookup table corresponding to the target brightness value.

[0092] In this embodiment, the device calibrates the color of the display screen based on the set color gamut corresponding to the display screen and the white point corresponding to the set color gamut, thereby obtaining a display lookup table of target brightness values ​​with high accuracy.

[0093] Reference Figure 5 , Figure 5 This is the fourth flow chart of the color correction method provided by this application, based on Figure 3 or Figure 4 In the illustrated embodiment, step S202 includes:

[0094] Step S501 , determining a preset brightness interval in which the current brightness value is located, wherein the preset brightness interval is obtained based on each target brightness value.

[0095] In this embodiment, the device constructs multiple preset brightness intervals based on multiple target brightness values. For example, the target brightness values ​​are 600nit, 500nit, 400nit, 300nit, 200nit and 100nit, respectively, and the preset brightness intervals are: (600, 500], (500, 400], (400, 300], (300, 200] and (200, 100]. After obtaining the current brightness value, the device determines the preset brightness interval in which the current brightness value is located.

[0096] Step S502: determine the display lookup table associated with the target brightness value in the preset brightness interval as the first display lookup table associated with the first preset brightness value, and the target brightness value is greater than the current brightness value.

[0097] Step S503: determining a target brightness value in the preset brightness interval that is smaller than the current brightness value as a second display lookup table associated with a second preset brightness value.

[0098] After determining the preset brightness interval, the device determines the display lookup table associated with the target brightness value greater than the current brightness value in the preset brightness interval as the first display lookup table associated with the first preset brightness value, and the target brightness value greater than the current brightness value in the preset brightness interval is the first preset brightness; the device then determines the display lookup table associated with the target brightness value less than the current brightness value in the preset brightness interval as the second display lookup table associated with the second preset brightness value, and the target brightness value less than the current brightness value in the preset brightness interval is the second preset brightness. For example, the current brightness value is 150nit, which is within the preset brightness interval (200, 100], and the preset brightness interval (200, 100] includes a target brightness value of 200nit and a target brightness value of 100nit, so the target brightness value of 200nit can be determined as the first preset brightness value, and the target brightness value of 100nit can be determined as the second preset brightness value.

[0099] In this embodiment, the device determines the preset brightness interval in which the current brightness value is located, and thus obtains the first preset brightness value and the second preset brightness value based on the preset brightness interval, avoiding the device from obtaining a larger target brightness value as the first preset brightness, and avoiding the device from obtaining a smaller target brightness value as the second preset brightness value, that is, based on the preset brightness interval, a target brightness value that is not too different from the current brightness value is obtained as the first preset brightness value and the second preset brightness value, so that the data in the display lookup table corresponding to the current brightness value obtained by interpolation can ensure the color accuracy of the display screen.

[0100] In one embodiment, a plurality of display lookup tables associated with target brightness values ​​are stored in the device. In order to avoid the device using the display lookup table associated with the target brightness value, after obtaining the target display lookup table, the device stores the target display lookup table in a setting module, and then updates the grayscale value of the pixel point in the display screen based on the target display lookup table in the setting module. The setting module is, for example, a data processor in the device.

[0101] In this embodiment, the display lookup table in the setting module is used to update the grayscale values ​​of the three primary colors of the pixel points in the display screen, avoiding the device from using the display lookup table associated with the target brightness value to update the grayscale values ​​of the three primary colors of the pixel points, that is, to ensure that the device can correct the color of the display screen with the correct display lookup table.

[0102] Based on the same inventive concept, the present application also provides a color correction device. Figure 6 The color correction device provided in the embodiment of the present application is described in detail.

[0103] Figure 6 The figure is a structural block diagram of a color correction device according to an exemplary embodiment.

[0104] like Figure 6 As shown, the color correction device 600 may be an electronic device having a display screen, and the color correction device 600 may include:

[0105] A first acquisition module 610 is used to acquire a brightness change of a display screen of an electronic device;

[0106] A second acquisition module 620 is used to acquire a first display lookup table associated with a first preset brightness value and a second display lookup table associated with a second preset brightness value when the brightness change is greater than a preset threshold value, and the current brightness value of the display screen is less than the first preset brightness value, and the current brightness value is greater than the second preset brightness value;

[0107] A determination module 630, configured to determine a target display lookup table corresponding to the current brightness value according to the current brightness value, the first preset brightness value, the second preset brightness value, the first display lookup table, and the second display lookup table;

[0108] The updating module 640 is used to update the grayscale values ​​of the three primary colors of the pixel points in the display screen according to the target display lookup table.

[0109] The color correction device 600 is described in detail below, as shown below:

[0110] In one embodiment, the color correction device 600 further includes:

[0111] A setting module, used for setting at least two different target brightness values, each of which includes a first preset brightness value and a second preset brightness value;

[0112] A construction module is used to generate a display lookup table corresponding to each target brightness value;

[0113] The storage module is used to associate and store each target brightness value with the corresponding display lookup table.

[0114] In one embodiment, the building block includes:

[0115] A first acquisition unit, used to determine a set color gamut corresponding to the display screen and a white point corresponding to the set color gamut;

[0116] A first determination unit, configured to determine a first color coordinate of each color point in a set color gamut according to the coordinates of the white point and the brightness value;

[0117] A second acquisition unit is used to acquire, on the display screen, a second color coordinate of a red picture displayed based on the initial color gamut, a third color coordinate of a green picture displayed based on the initial color gamut, and a fourth color coordinate of a blue picture displayed based on the initial color gamut;

[0118] A second determining unit, configured to determine grayscale values ​​of three primary colors of the color point according to the first color coordinate, the second color coordinate, the third color coordinate, and the fourth color coordinate of the color point;

[0119] The construction unit is used to construct a display lookup table corresponding to the target brightness value according to the grayscale values ​​of the three primary colors of each color point.

[0120] In one embodiment, the first determining unit includes:

[0121] A first determination subunit is used to determine the brightness values ​​of the three primary colors of each color point in the set color gamut and the total brightness value of the color point according to the coordinates and brightness value of the white point;

[0122] The second determination subunit is used to determine the first color coordinate of the color point according to the brightness values ​​of the three primary colors of the color point and the total brightness value.

[0123] In one embodiment, the second determining unit includes:

[0124] A third determination subunit, used to determine the ratio parameters of the three primary colors of the color point according to the first color coordinate, the second color coordinate, the third color coordinate and the fourth color coordinate of the color point;

[0125] A fourth determination subunit, configured to determine the brightness values ​​of the three primary colors of the color point according to the total brightness value of the color point and the ratio parameter;

[0126] The fifth determining subunit is used to determine the grayscale values ​​of the three primary colors of the color point according to the brightness values ​​of the three primary colors of the color point.

[0127] In one embodiment, the second acquisition module 620 includes:

[0128] A third determining unit, used to determine a preset brightness interval where the current brightness value is located, the preset brightness interval being obtained based on each target brightness value;

[0129] A third acquisition unit is used to determine the display lookup table associated with the target brightness value in the preset brightness interval as the first display lookup table associated with the first preset brightness value, and the target brightness value is greater than the current brightness value;

[0130] The fourth acquisition unit is used to determine the display lookup table associated with the target brightness value in the preset brightness interval as the first display lookup table associated with the first preset brightness value, and the target brightness value is greater than the current brightness value.

[0131] In one embodiment, the update module 630 includes:

[0132] A storage unit, used for storing the target display lookup table in the setting module;

[0133] The updating unit is used to update the grayscale values ​​of the three primary colors of the pixel points in the display screen according to the target display lookup table in the setting module.

[0134] The color correction device in the embodiment of the present application can be an electronic device, or a component in the electronic device, such as an integrated circuit or a chip. The electronic device can be a terminal, or other devices other than a terminal. Exemplarily, the electronic device can be a mobile phone, a tablet computer, a laptop computer, a PDA, a vehicle-mounted electronic device, a mobile Internet device (Mobile Internet Device, MID), an augmented reality (augmented reality, AR) / virtual reality (virtual reality, VR) device, a robot, a wearable device, an ultra-mobile personal computer (ultra-mobile personal computer, UMPC), a netbook or a personal digital assistant (personal digital assistant, PDA), etc., and can also be a server, a network attached storage (Network Attached Storage, NAS), a personal computer (personal computer, PC), a television (television, TV), a teller machine or a self-service machine, etc., which is not specifically limited in the embodiment of the present application.

[0135] The color correction device in the embodiment of the present application may be a device having an operating system. The operating system may be an Android operating system, an iOS operating system, or other possible operating systems, which are not specifically limited in the embodiment of the present application.

[0136] The color correction device provided in the embodiment of the present application can achieve Figure 1-6 The various processes implemented in the method embodiment achieve the same technical effect and will not be described again here to avoid repetition.

[0137] In some embodiments, Figure 7As shown, the embodiment of the present application also provides an electronic device 700, including a processor 701 and a memory 702, and the memory 702 stores a program or instruction that can be executed on the processor 701. When the program or instruction is executed by the processor 701, the various steps of the above-mentioned color correction method embodiment are implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0138] It should be noted that the electronic devices in the embodiments of the present application include the above-mentioned mobile electronic devices and non-mobile electronic devices.

[0139] Figure 8 A schematic diagram of the hardware structure of an electronic device to implement an embodiment of the present application.

[0140] The electronic device 800 includes but is not limited to: a radio frequency unit 801, a network module 802, an audio output unit 803, an input unit 804, a sensor 805, a display unit 806, a user input unit 807, an interface unit 808, a memory 809, and a processor 810 and other components.

[0141] Those skilled in the art will appreciate that the electronic device 800 may also include a power source (such as a battery) for supplying power to each component, and the power source may be logically connected to the processor 810 through a power management system, thereby implementing functions such as managing charging, discharging, and power consumption management through the power management system. Figure 8 The electronic device structure shown in the figure does not constitute a limitation on the electronic device. The electronic device may include more or fewer components than shown in the figure, or combine certain components, or arrange the components differently, which will not be described in detail here.

[0142] The processor 810 is used to obtain a brightness change of a display screen of an electronic device;

[0143] When the brightness change is greater than a preset threshold, obtaining a first display lookup table associated with a first preset brightness value and a second display lookup table associated with a second preset brightness value, and displaying that the current brightness value of the screen is less than the first preset brightness value, and the current brightness value is greater than the second preset brightness value;

[0144] Determine a target display lookup table corresponding to the current brightness value according to the current brightness value, the first preset brightness value, the second preset brightness value, the first display lookup table, and the second display lookup table;

[0145] Update the grayscale values ​​of the three primary colors of the pixels in the display screen according to the target display lookup table.

[0146] In some embodiments, the processor 810 is further configured to set at least two different target brightness values, each of which includes a first preset brightness value and a second preset brightness value;

[0147] Generate a display lookup table corresponding to each target brightness value;

[0148] Each target brightness value is associated with the corresponding display lookup table and stored.

[0149] In some embodiments, the processor 810 is further configured to determine a set color gamut corresponding to the display screen and a white point corresponding to the set color gamut;

[0150] Determine the first color coordinates of each color point in the set color gamut according to the coordinates of the white point and the brightness value;

[0151] Acquire the display screen, the second color coordinates of the red picture displayed based on the initial color gamut, the third color coordinates of the green picture displayed based on the initial color gamut, and the fourth color coordinates of the blue picture displayed based on the initial color gamut;

[0152] Determine the grayscale values ​​of the three primary colors of the color point according to the first color coordinate, the second color coordinate, the third color coordinate and the fourth color coordinate of the color point;

[0153] According to the grayscale values ​​of the three primary colors of each color point, a display lookup table corresponding to the target brightness value is constructed.

[0154] In some embodiments, the processor 810 is further configured to determine the brightness values ​​of the three primary colors of each color point in the set color gamut and the total brightness value of the color point according to the coordinates and brightness value of the white point;

[0155] The first color coordinate of the color point is determined according to the brightness values ​​of the three primary colors of the color point and the total brightness value.

[0156] In some embodiments, the processor 810 is further configured to:

[0157] Determine the ratio parameters of the three primary colors of the color point according to the first color coordinate, the second color coordinate, the third color coordinate and the fourth color coordinate of the color point;

[0158] Determine the brightness values ​​of the three primary colors of the color point according to the total brightness value of the color point and the ratio parameter;

[0159] According to the brightness values ​​of the three primary colors of the color point, the grayscale values ​​of the three primary colors of the color point are determined.

[0160] In some embodiments, the processing unit 810 is further used to determine a preset brightness interval in which the current brightness value is located, and the preset brightness interval is obtained based on each target brightness value;

[0161] Determine the display lookup table associated with the target brightness value in the preset brightness interval as the first display lookup table associated with the first preset brightness value, the target brightness value being greater than the current brightness value;

[0162] A target brightness value in the preset brightness interval that is smaller than the current brightness value is determined as a second display lookup table associated with a second preset brightness value.

[0163] In some embodiments, the processing unit 810 is further configured to store the target display lookup table in the setting module;

[0164] According to the target display lookup table in the setting module, the grayscale values ​​of the three primary colors of the pixel points in the display screen are updated.

[0165] It should be understood that in the embodiment of the present application, the input unit 804 may include a graphics processor (Graphics Processing Unit, GPU) 8041 and a microphone 8042, and the graphics processor 8041 processes the image data of the static picture or video obtained by the image capture device (such as a camera) in the video capture mode or the image capture mode. The display unit 806 may include a display panel 8061, and the display panel 8061 may be configured in the form of a liquid crystal display, an organic light emitting diode, etc. The user input unit 807 includes a touch panel 8071 and at least one of other input devices 8072. The touch panel 8071 is also called a touch screen. The touch panel 8071 may include two parts: a touch detection device and a touch controller. Other input devices 8072 may include, but are not limited to, a physical keyboard, function keys (such as volume control keys, switch keys, etc.), a trackball, a mouse, and a joystick, which will not be repeated here.

[0166] The memory 809 can be used to store software programs and various data. The memory 809 may mainly include a first storage area for storing programs or instructions and a second storage area for storing data, wherein the first storage area may store an operating system, an application program or instructions required for at least one function (such as a sound playback function, an image playback function, etc.), etc. In addition, the memory 809 may include a volatile memory or a non-volatile memory, or the memory 809 may include both volatile and non-volatile memories. Among them, the non-volatile memory may be a read-only memory (ROM), a programmable read-only memory (PROM), an erasable programmable read-only memory (EPROM), an electrically erasable programmable read-only memory (EEPROM), or a flash memory. The volatile memory may be a random access memory (RAM), a static random access memory (SRAM), a dynamic random access memory (DRAM), a synchronous dynamic random access memory (SDRAM), a double data rate synchronous dynamic random access memory (DDRSDRAM), an enhanced synchronous dynamic random access memory (ESDRAM), a synchronous link dynamic random access memory (SLDRAM) and a direct memory bus random access memory (DRRAM). The memory 809 in the embodiment of the present application includes but is not limited to these and any other suitable types of memory.

[0167] The processor 810 may include one or more processing units; in some embodiments, the processor 810 integrates an application processor and a modem processor, wherein the application processor mainly processes operations related to an operating system, a user interface, and application programs, and the modem processor mainly processes wireless communication signals, such as a baseband processor. It is understandable that the modem processor may not be integrated into the processor 810.

[0168] The embodiment of the present application also provides a readable storage medium, on which a program or instruction is stored. When the program or instruction is executed by a processor, each process of the above-mentioned color correction method embodiment is implemented, and the same technical effect can be achieved. To avoid repetition, it will not be repeated here.

[0169] The processor is the processor in the electronic device in the above embodiment. The readable storage medium includes a computer readable storage medium, such as a computer read-only memory, a random access memory, a magnetic disk or an optical disk.

[0170] The embodiment of the present application further provides a chip, which includes a processor and a communication interface, the communication interface and the processor are coupled, and the processor is used to run programs or instructions to implement the various processes of the above-mentioned color correction method embodiment, and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0171] It should be understood that the chip mentioned in the embodiments of the present application can also be called a system-level chip, a system chip, a chip system or a system-on-chip chip, etc.

[0172] An embodiment of the present application provides a computer program product, which is stored in a storage medium. The program product is executed by at least one processor to implement the various processes of the above-mentioned color correction method embodiment and can achieve the same technical effect. To avoid repetition, it will not be repeated here.

[0173] It should be noted that, in this article, the terms "comprise", "include" or any other variant thereof are intended to cover non-exclusive inclusion, so that the process, method, article or device including a series of elements includes not only those elements, but also includes other elements not explicitly listed, or also includes elements inherent to such process, method, article or device. In the absence of further restrictions, the elements defined by the sentence "comprise one..." do not exclude the presence of other identical elements in the process, method, article or device including the element. In addition, it should be pointed out that the scope of the methods and devices in the embodiments of the present application is not limited to performing functions in the order shown or discussed, and may also include performing functions in a substantially simultaneous manner or in reverse order according to the functions involved, for example, the described method may be performed in an order different from that described, and various steps may also be added, omitted, or combined. In addition, the features described with reference to certain examples may be combined in other examples.

[0174] Through the description of the above implementation methods, those skilled in the art can clearly understand that the above-mentioned embodiment methods can be implemented by means of software plus a necessary general hardware platform, and of course by hardware, but in many cases the former is a better implementation method. Based on such an understanding, the technical solution of the present application, or the part that contributes to the prior art, can be embodied in the form of a computer software product, which is stored in a storage medium (such as ROM / RAM, a disk, or an optical disk), and includes a number of instructions for a terminal (which can be a mobile phone, a computer, a server, or a network device, etc.) to execute the methods of each embodiment of the present application.

[0175] The embodiments of the present application are described above in conjunction with the accompanying drawings, but the present application is not limited to the above-mentioned specific implementation methods. The above-mentioned specific implementation methods are merely illustrative and not restrictive. Under the guidance of the present application, ordinary technicians in this field can also make many forms without departing from the purpose of the present application and the scope of protection of the claims, all of which are within the protection of the present application.

Claims

1. A color correction method, characterized in that: include: Obtaining a brightness change of a display screen of an electronic device; When the brightness change is greater than a preset threshold, obtaining a first display lookup table associated with a first preset brightness value and a second display lookup table associated with a second preset brightness value, the current brightness value of the display screen is less than the first preset brightness value, and the current brightness value is greater than the second preset brightness value; Determine a target display lookup table corresponding to the current brightness value according to the current brightness value, the first preset brightness value, the second preset brightness value, the first display lookup table, and the second display lookup table; The grayscale values ​​of the three primary colors of the pixel points in the display screen are updated according to the target display lookup table.

2. The method according to claim 1, characterized in that Before obtaining the first display lookup table associated with the first preset brightness value and the second display lookup table associated with the second preset brightness value, the method further includes: Setting at least two different target brightness values, each of the target brightness values ​​includes the first preset brightness value and the second preset brightness value; Generate a display lookup table corresponding to each target brightness value; Each of the target brightness values ​​is associated with a corresponding display lookup table and stored.

3. The method according to claim 2, characterized in that The generating a display lookup table corresponding to each target brightness value comprises: Determine a set color gamut corresponding to the display screen and a white point corresponding to the set color gamut; Determining the first color coordinates of each color point in the set color gamut according to the coordinates of the white point and the brightness value; Acquire a second color coordinate of a red picture displayed on the display screen based on an initial color gamut, a third color coordinate of a green picture displayed based on the initial color gamut, and a fourth color coordinate of a blue picture displayed based on the initial color gamut; Determine grayscale values ​​of three primary colors of the color point according to the first color coordinate, the second color coordinate, the third color coordinate, and the fourth color coordinate of the color point; According to the grayscale values ​​of the three primary colors of each of the color points, a display lookup table corresponding to the target brightness value is constructed.

4. The method according to claim 3, characterized in that The step of determining the first color coordinates of each color point in the set color gamut according to the coordinates of the white point and the brightness value includes: Determine the brightness values ​​of the three primary colors of each color point in the set color gamut and the total brightness value of the color point according to the coordinates and brightness value of the white point; The first color coordinate of the color point is determined according to the brightness values ​​of the three primary colors of the color point and the total brightness value.

5. The method according to claim 3, characterized in that: The step of determining the grayscale values ​​of the three primary colors of the color point according to the first color coordinate, the second color coordinate, the third color coordinate, and the fourth color coordinate of the color point includes: Determining a ratio parameter of three primary colors of the color point according to the first color coordinate, the second color coordinate, the third color coordinate, and the fourth color coordinate of the color point; Determining brightness values ​​of three primary colors of the color point according to the total brightness value of the color point and the ratio parameter; The grayscale values ​​of the three primary colors of the color point are determined according to the brightness values ​​of the three primary colors of the color point.

6. The method according to claim 2, characterized in that The step of obtaining a first display lookup table associated with a first preset brightness value and a second display lookup table associated with a second preset brightness value includes: Determine a preset brightness interval in which the current brightness value is located, wherein the preset brightness interval is obtained based on each of the target brightness values; Determine the display lookup table associated with the target brightness value in the preset brightness interval as the first display lookup table associated with the first preset brightness value, wherein the target brightness value is greater than the current brightness value; A target brightness value in the preset brightness interval that is smaller than the current brightness value is determined as a second display lookup table associated with a second preset brightness value.

7. The method according to any one of claims 1 to 6, characterized in that The updating of the grayscale values ​​of the three primary colors of the pixel points in the display screen according to the target display lookup table comprises: storing the target display lookup table in a setting module; The grayscale values ​​of the three primary colors of the pixels in the display screen are updated according to the target display lookup table in the setting module.

8. A color correction device, characterized in that: The device comprises: A first acquisition module, used to acquire a brightness change of a display screen of an electronic device; A second acquisition module, configured to acquire, when the brightness change is greater than a preset threshold, a first display lookup table associated with a first preset brightness value and a second display lookup table associated with a second preset brightness value, and a current brightness value of the display screen is less than the first preset brightness value, and the current brightness value is greater than the second preset brightness value; a determination module, configured to determine a target display lookup table corresponding to the current brightness value according to the current brightness value, the first preset brightness value, the second preset brightness value, the first display lookup table, and the second display lookup table; An updating module is used to update the grayscale values ​​of the three primary colors of the pixel points in the display screen according to the target display lookup table.

9. An electronic device, characterized in that: The method comprises a processor and a memory, wherein the memory stores a program or instruction that can be run on the processor, and when the program or instruction is executed by the processor, the steps of the color correction method according to any one of claims 1 to 7 are implemented.

10. A readable storage medium, characterized in that: The readable storage medium stores a program or instruction, and when the program or instruction is executed by a processor, the steps of the color correction method according to any one of claims 1 to 7 are implemented.

Citation Information

Patent Citations

  • Television color adjustment method and device

    CN105898252A

  • Medical displayer system for dynamically generating LUT table and method

    CN106354467A

  • Image display correcting method and device

    CN108447456A

  • Screen brightness control method and device and terminal equipment

    CN110473502A

  • Display calibration method and related device

    CN114677983A

Cited By

  • Defect compensation method and device of display panel, electronic equipment and storage medium

    CN120913507A